mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-26 07:34:15 +01:00
24 lines
654 B
C
24 lines
654 B
C
#ifndef BTLDR_H__
|
|
#define BTLDR_H__
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
typedef volatile uint8_t * io8_t;
|
|
typedef volatile uint32_t * io32_t;
|
|
|
|
#define RAM (*((io8_t) 0x00000000))
|
|
#define GPIO (*((io32_t) 0x20000000))
|
|
#define GPIO_O (*((io8_t) 0x20000000))
|
|
#define GPIO_I (*((io8_t) 0x20000001))
|
|
#define GPIO_OE (*((io8_t) 0x20000002))
|
|
#define USB_SR (*((io8_t) 0x40000000))
|
|
#define USB_DR (*((io8_t) 0x40000004))
|
|
|
|
#define USB_SR_RXNE (1 << 0)
|
|
#define USB_SR_TXE (1 << 1)
|
|
|
|
|
|
#endif
|