slip working with int driven rx

This commit is contained in:
2023-09-28 18:03:02 +02:00
parent 5c75cfa63a
commit 8bca815cd2
8 changed files with 160 additions and 27 deletions

View File

@ -20,4 +20,12 @@
#define PACK_STRUCT_END
#define LWIP_PLATFORM_ASSERT(x)
#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)
#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)
//overwrite protection function, we need ISR aware one, which the default FreeRTOS port does not support
#define SYS_ARCH_DECL_PROTECT(lev) uint32_t lev //caution, type is actually sys_prot_t, which is not available here.
#define SYS_ARCH_PROTECT(lev) lev = sys_arch_protect_ca0()
#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect_ca0(lev)
uint32_t sys_arch_protect_ca0(void); //caution, type is actually sys_prot_t, which is not available here.
void sys_arch_unprotect_ca0(uint32_t pval); //caution, type is actually sys_prot_t, which is not available here.