diff options
Diffstat (limited to 'src/stm32f0/internal.h')
-rw-r--r-- | src/stm32f0/internal.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/stm32f0/internal.h b/src/stm32f0/internal.h new file mode 100644 index 00000000..5247a9c7 --- /dev/null +++ b/src/stm32f0/internal.h @@ -0,0 +1,16 @@ +#ifndef __STM32F0_INTERNAL_H +#define __STM32F0_INTERNAL_H +// Local definitions for STM32F0 code + +#include "stm32f0xx.h" + +#define GPIO(PORT, NUM) (((PORT)-'A') * 16 + (NUM)) +#define GPIO2PORT(PIN) ((PIN) / 16) + +extern uint8_t const avail_pins[]; + +void udelay(uint32_t usecs); +void gpio_init(void); +void TimerInit(void); + +#endif // internal.h |