stm32_serDes_protobuf_project/bsp/bsp.h

30 lines
545 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-05-05 19:31:36 +03:00
#include "lwip/lwip.h"
2024-05-13 15:02:23 +03:00
#include "ring_buffer.h"
2024-05-05 19:31:36 +03:00
typedef enum {
LINK_DOWN,
LINK_UP
} status_t;
typedef struct {
uint8_t link_status;
} lwip_status_t;
2024-03-28 17:51:39 +03:00
void board_init();
2024-04-10 19:45:21 +03:00
uint32_t getRegister();
2024-04-30 13:10:11 +03:00
uint32_t getSysTick();
void delay(uint32_t);
2024-05-05 19:31:36 +03:00
lwip_status_t* get_lwip_status();
2024-05-13 15:02:23 +03:00
ringbuf_uint8t* get_printf_buffer();
2024-03-28 17:51:39 +03:00
#endif