diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-12-10 21:23:45 +0100 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-12-10 21:23:45 +0100 |
commit | e8c6f2b8aa1bd65bfe8d431ecf7358f12f5bf981 (patch) | |
tree | 7b8c55969fa9c9fdef92f49edb69819225e55e79 /src/rtc-test/include/stm_init.h | |
parent | af155a47288686f9577a2eb642dfe204ab0b5ef7 (diff) |
init, code testing the RTC on the dev-bridge board
Diffstat (limited to 'src/rtc-test/include/stm_init.h')
-rw-r--r-- | src/rtc-test/include/stm_init.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rtc-test/include/stm_init.h b/src/rtc-test/include/stm_init.h new file mode 100644 index 0000000..b9dbd10 --- /dev/null +++ b/src/rtc-test/include/stm_init.h @@ -0,0 +1,17 @@ +#ifndef __STM_INIT_H +#define __STM_INIT_H + +#include "stm32f4xx_hal.h" + +#define LED_PORT GPIOJ +#define LED_RED GPIO_PIN_1 +#define LED_YELLOW GPIO_PIN_2 +#define LED_GREEN GPIO_PIN_3 +#define LED_BLUE GPIO_PIN_4 + +extern UART_HandleTypeDef huart2; +extern I2C_HandleTypeDef hi2c2; +extern void stm_init(void); +extern void Error_Handler(void); + +#endif /* __STM_INIT_H */ |