mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Various refactorings
This commit is contained in:
@@ -5,6 +5,19 @@
|
||||
|
||||
#define LOGBUF_SIZE 512
|
||||
|
||||
struct syslog_state {
|
||||
uint8_t enabled;
|
||||
uint8_t line_available;
|
||||
uint16_t writeptr ;
|
||||
uint16_t readptr;
|
||||
uint8_t server_ip[4];
|
||||
|
||||
struct uip_udp_conn *syslog_conn;
|
||||
};
|
||||
|
||||
extern __xdata struct syslog_state syslog_state;
|
||||
extern __xdata char logbuf[LOGBUF_SIZE];
|
||||
|
||||
void syslog_init(void) __banked;
|
||||
void syslog_start(void) __banked;
|
||||
void syslog_stop(void) __banked;
|
||||
|
||||
Reference in New Issue
Block a user