2021-07-12 21:50:48 +02:00
|
|
|
/**
|
|
|
|
* Additional layer for hardware initialization.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STM32_BSP_HARDWARE_INIT_H_
|
|
|
|
#define STM32_BSP_HARDWARE_INIT_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2022-05-22 15:30:38 +02:00
|
|
|
#include <stdint.h>
|
2021-07-12 21:50:48 +02:00
|
|
|
|
|
|
|
#include <stm32h7xx_hal.h>
|
|
|
|
#include <stm32h7xx_hal_gpio.h>
|
|
|
|
#include <stm32h7xx_hal_uart.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Declaration of global hardware handlers here.
|
|
|
|
* Definition inside respective .cpp or .c files.
|
|
|
|
*/
|
|
|
|
extern UART_HandleTypeDef huart3;
|
|
|
|
extern GPIO_InitTypeDef gpio_uart_init_struct;
|
|
|
|
extern struct netif gnetif; /* network interface structure */
|
|
|
|
|
|
|
|
extern bool debugAvailable;
|
|
|
|
|
|
|
|
void performHardwareInit();
|
|
|
|
void Netif_Config(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* STM32_BSP_HARDWARE_INIT_H_ */
|