sketchbook
|
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <string.h>
#include "gamepad.h"
#include "n64.h"
#include <usbdrv.h>
Macros | |
#define | N64_DATA_PORT PORTB |
#define | N64_DATA_DDR DDRB |
#define | N64_DATA_PIN PINB |
#define | N64_DATA_BIT_A (1<<3) |
#define | N64_DATA_BIT_B (1<<4) |
#define | N64_CAL 95 |
#define | GCN64_REPORT_SIZE 5 |
Functions | |
void | _tmpdata2report (unsigned volatile char results[65], uint8_t reportID) |
void | _n64UpdateA (unsigned char tmp) |
void | _n64UpdateB (unsigned char tmp) |
Gamepad * | n64GetGamepad (void) |
Variables | |
Gamepad | N64Gamepad |
#define GCN64_REPORT_SIZE 5 |
#define N64_CAL 95 |
#define N64_DATA_BIT_A (1<<3) |
#define N64_DATA_BIT_B (1<<4) |
#define N64_DATA_DDR DDRB |
#define N64_DATA_PIN PINB |
#define N64_DATA_PORT PORTB |
void _n64UpdateA | ( | unsigned char | tmp | ) |
void _n64UpdateB | ( | unsigned char | tmp | ) |
void _tmpdata2report | ( | unsigned volatile char | results[65], |
uint8_t | reportID | ||
) |
Gamepad* n64GetGamepad | ( | void | ) |
Gamepad N64Gamepad |