Move mip into mip/

This commit is contained in:
Sergey Lyubka committed 2022-06-11 17:29:45 +01:00
1 parent 903b510411
commit d3368e4aad
13 files changed
+1016 -858

No files matched your search

@@ -10,8 +10,7 @@ CFLAGS ?= -W -Wall -Wextra -Werror -Wundef -Wshadow -Wdouble-promotion \
-mcpu=cortex-m7 -mthumb -mfloat-abi=softfp -mfpu=vfpv4 $(EXTRA)
LDFLAGS ?= -Tlink.ld -nostartfiles -nostdlib --specs nano.specs \
-lc -lgcc -Wl,--gc-sections -Wl,-Map=$@.map
SOURCES = boot.c main.c syscalls.c $(ROOT)/drivers/mip_driver_stm32.c \
$(ROOT)/mongoose.c
SOURCES = boot.c main.c syscalls.c $(ROOT)/mongoose.c
all build example: $(TARGET).bin
@@ -2,8 +2,6 @@
// All rights reserved
#include "mcu.h"
#include "drivers/mip_driver_stm32.h"
#include "mongoose.h"
#define LED1 PIN('B', 0) // On-board LED pin (green)
@@ -138,11 +136,7 @@ int main(void) {
// For static configuration, specify IP/mask/GW in network byte order
struct mip_ipcfg ipcfg = {
.mac = {0xaa, 0xbb, 0xcc, 1, 2, 3}, .ip = 0, .mask = 0, .gw = 0};
struct mip_driver stm32_driver = {.init = mip_driver_stm32_init,
.tx = mip_driver_stm32_tx,
.rxcb = mip_driver_stm32_setrx,
.status = mip_driver_stm32_status};
mip_init(&mgr, &ipcfg, &stm32_driver);
mip_init(&mgr, &ipcfg, &mip_driver_stm32);
MG_INFO(("Init done, starting main loop"));
#if defined(DASH)
+4
View File
@@ -11,6 +11,10 @@ static int s_rx = 4;
static int s_tx = 5;
static int s_baud = 115200;
void uart_init(int tx, int rx, int baud);
int uart_read(char *buf, size_t len);
void uart_write(const void *buf, size_t len);
// Let users define their own UART API. If they don't, use a dummy one
#if defined(UART_API_IMPLEMENTED)
#else