Introduce sysinit.c, better debug log, more verbose Makefile

This commit is contained in:
cpq committed 2023-02-06 21:26:14 +00:00
1 parent 2ddf71ec46
commit f5ff7cfcf1
9 files changed
+169 -135

No files matched your search

+5 -2
View File
@@ -1492,7 +1492,10 @@ struct mip_if {
uint64_t lease_expire; // Lease expiration time
uint8_t arp_cache[MIP_ARP_CS]; // Each entry is 12 bytes
uint16_t eport; // Next ephemeral port
uint16_t dropped; // Number of dropped frames
volatile uint32_t ndropped; // Number of received, but dropped frames
volatile uint32_t nrecv; // Number of received frames
volatile uint32_t nsent; // Number of transmitted frames
volatile uint32_t nerr; // Number of driver errors
uint8_t state; // Current state
#define MIP_STATE_DOWN 0 // Interface is down
#define MIP_STATE_UP 1 // Interface is up
@@ -1522,7 +1525,7 @@ struct mip_spi {
#if MG_ENABLE_MIP
#if !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_TM4C)
#define MG_ENABLE_DRIVER_STM32 1
#else
#else
#define MG_ENABLE_DRIVER_STM32 0
#endif
#endif