diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-07-17 10:36:18 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-07-17 10:36:18 +0200 |
commit | 8dd5dd6b3992a6b6e72dc97bdf947c0746b6bf20 (patch) | |
tree | 247e5e0b189a1bbd2a27185653e83e69674f5e0e /src/uart-test/include/stm_init.h |
init
Diffstat (limited to 'src/uart-test/include/stm_init.h')
-rw-r--r-- | src/uart-test/include/stm_init.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/uart-test/include/stm_init.h b/src/uart-test/include/stm_init.h new file mode 100644 index 0000000..5a9476c --- /dev/null +++ b/src/uart-test/include/stm_init.h @@ -0,0 +1,18 @@ +#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 + +#define USART2_BAUD_RATE 921600 + +extern UART_HandleTypeDef huart2; +extern void stm_init(void); +extern void Error_Handler(void); + +#endif /* __STM_INIT_H */ |