2024-05-13 15:21:22 +03:00
|
|
|
#include "../bsp/bsp.h"
|
2024-06-10 18:46:02 +03:00
|
|
|
#include "app.h"
|
2024-05-13 15:21:22 +03:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2024-05-15 02:15:03 +03:00
|
|
|
boardInit();
|
2024-05-13 15:21:22 +03:00
|
|
|
udpServer_init();
|
2024-05-15 02:15:03 +03:00
|
|
|
uint32_t cnt = 0;
|
|
|
|
char numStr[10];
|
|
|
|
|
2024-05-13 15:21:22 +03:00
|
|
|
while (1)
|
|
|
|
{
|
2024-06-10 13:56:17 +03:00
|
|
|
lwipProcess();
|
2024-05-13 15:21:22 +03:00
|
|
|
GPIO_ToggleBits(GPIOB, GPIO_Pin_14);
|
2024-06-11 19:59:25 +03:00
|
|
|
if (getLwipStatus()->udp_packet_rdy == PACKET_RDY) {
|
|
|
|
getLwipStatus()->udp_packet_rdy = PACKET_NOT_RDY;
|
|
|
|
udp_receive_buffer_t* udp_buffer = getUdpReceiveBuffer();
|
|
|
|
deserialize(udp_buffer->buf, udp_buffer->len);
|
|
|
|
}
|
2024-05-13 15:21:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void SystemClock_Config()
|
|
|
|
{
|
|
|
|
SystemCoreClock = 180000000;
|
|
|
|
}
|
|
|
|
|