20 lines
422 B
C
Raw Normal View History

2021-08-12 21:07:47 +02:00
#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))
2021-08-20 19:51:55 +02:00
#define USB_SR (*((io8_t) 0x50000000))
#define USB_DR (*((io8_t) 0x50000004))
2021-08-15 21:49:02 +02:00
#define USB_SR_RXNE (1 << 0)
#define USB_SR_TXE (1 << 1)
2021-08-12 21:07:47 +02:00
#endif