blob: 8ca372034996ad643eadd460c6aadfbec8b199f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#pragma once
#include <stm32f0xx_hal.h>
#include <stm32f0xx_hal_i2c.h>
#include <stm32f0xx_hal_uart.h>
#define WS_PINOUT_I2C_SDA_PIN GPIO_PIN_9
#define WS_PINOUT_I2C_SDA_PORT GPIOB
#define WS_PINOUT_I2C_SCL_PIN GPIO_PIN_8
#define WS_PINOUT_I2C_SCL_PORT GPIOB
#define WS_PINOUT_USART1_RX_PIN GPIO_PIN_10
#define WS_PINOUT_USART1_RX_PORT GPIOA
#define WS_PINOUT_USART1_TX_PIN GPIO_PIN_9
#define WS_PINOUT_USART1_TX_PORT GPIOA
#define WS_PINOUT_USART2_RX_PIN GPIO_PIN_3
#define WS_PINOUT_USART2_RX_PORT GPIOA
#define WS_PINOUT_USART2_TX_PIN GPIO_PIN_2
#define WS_PINOUT_USART2_TX_PORT GPIOA
extern I2C_HandleTypeDef hi2c1;
extern UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart2;
void ws_io_setup();
void NMI_Handler();
void HardFault_Handler();
void SysTick_Handler();
void HAL_MspInit();
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c);
void HAL_UART_MspInit(UART_HandleTypeDef *huart);
|