mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
rebase First try to make use of uIP for sending syslog
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
|
||||
#include "stdint.h"
|
||||
#include "udp_apps.h"
|
||||
|
||||
static uint8_t callbacknr;
|
||||
|
||||
void udp_callbacks(void)
|
||||
{
|
||||
// Calling more than one callback from the same UIP_UDP_APPCALL does not work; we use a simple dispatcher
|
||||
if (callbacknr == 0) {
|
||||
dhcp_callback();
|
||||
callbacknr = 1;
|
||||
} else {
|
||||
syslog_callback();
|
||||
callbacknr = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user