Porting PicoTCP WIP

This commit is contained in:
2025-10-29 14:29:06 +01:00
parent 6722f42e68
commit 815c2239fe
464 changed files with 235009 additions and 24 deletions

View File

@ -0,0 +1,26 @@
#ifndef PICO_SUPPORT_MOP2
#define PICO_SUPPORT_MOP2
#include "dlmalloc/malloc.h"
#include "time/time.h"
#include "kprintf.h"
// proc/proc.c
extern uint64_t uptime_ms;
#define dbg kprintf
#define pico_zalloc(x) (dlmalloc((x)))
#define pico_free(x) (dlfree((x)))
static inline unsigned long PICO_TIME(void) {
return uptime_ms / 1000;
}
static inline unsigned long PICO_TIME_MS(void) {
return uptime_ms;
}
static inline void PICO_IDLE(void) {
}
#endif // PICO_SUPPORT_MOP2