app: network uart

This commit is contained in:
SG 2023-09-22 05:41:57 +03:00
parent cdc823409c
commit 871e770b6b
3 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@ set(SOURCES
"network.c"
"network-http.c"
"network-gdb.c"
"network-uart.c"
"cli-uart.c"
"cli/cli.c"
"cli/cli-commands.c"

View File

@ -13,6 +13,7 @@
#include "network.h"
#include "network-http.h"
#include "network-gdb.h"
#include "network-uart.h"
#include "factory-reset-service.h"
#include <gdb-glue.h>
@ -64,6 +65,7 @@ void app_main(void) {
network_init();
network_http_server_init();
network_gdb_server_init();
network_uart_server_init();
usb_init();
cli_uart_init();

View File

@ -46,7 +46,7 @@ void network_gdb_send(uint8_t* buffer, size_t size) {
}
};
void receive_and_send_to_gdb(void) {
static void receive_and_send_to_gdb(void) {
size_t rx_size = SIZE_MAX;
size_t gdb_packet_size = gdb_glue_get_packet_size();
uint8_t* buffer_rx = malloc(gdb_packet_size);