From b822f389237981043a8033aa4232e8b084137b2c Mon Sep 17 00:00:00 2001 From: Eugene Krashtan Date: Mon, 11 Mar 2019 12:47:58 +0200 Subject: stm32f0: New target STM32F0 added. Signed-off-by: Eugene Krashtan --- src/stm32f0/internal.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/stm32f0/internal.h (limited to 'src/stm32f0/internal.h') 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 -- cgit v1.2.3-70-g09d2