stm32_serDes_protobuf_project/bsp/bsp.h

30 lines
577 B
C
Raw Normal View History

2024-03-28 17:51:39 +03:00
#ifndef BSP_H
#define BSP_H
2024-04-30 13:10:11 +03:00
2024-03-28 17:25:38 +03:00
#include "stm32f4xx.h"
#include "stm32f4xx_usart.h"
2024-05-04 17:20:57 +03:00
#include "stm32f4xx_gpio.h"
#include "stm32f4xx_rcc.h"
#include "stm32f4xx_dma.h"
2024-05-05 02:32:20 +03:00
#include "stm32f4xx_tim.h"
2024-05-13 15:02:23 +03:00
#include "stm32f4xx_flash.h"
2024-06-06 14:12:37 +03:00
#include "stm32f4xx_hal_eth.h"
2024-05-05 19:31:36 +03:00
#include "lwip/lwip.h"
2024-05-15 02:15:03 +03:00
typedef enum {
LINK_DOWN,
2024-06-11 19:59:25 +03:00
LINK_UP,
PACKET_RDY,
PACKET_NOT_RDY
2024-05-15 02:15:03 +03:00
} status_t;
typedef struct {
uint8_t link_status;
2024-06-11 19:59:25 +03:00
uint8_t udp_packet_rdy;
2024-05-15 02:15:03 +03:00
} lwip_status_t;
void boardInit();
lwip_status_t* getLwipStatus();
2024-06-11 01:26:20 +03:00
USART_TypeDef* get_dbg_uart();
2024-06-11 19:59:25 +03:00
void uart_send_data(const uint8_t*, uint8_t);
2024-05-13 15:21:22 +03:00
#endif