25 lines
301 B
C
25 lines
301 B
C
#ifndef log_h__
|
|
#define log_h__
|
|
|
|
#include "stdint.h"
|
|
|
|
|
|
typedef struct{
|
|
int (*init)(void);
|
|
int (*write)(const uint8_t *d,int len);
|
|
int (*read)(uint8_t *d,int len);
|
|
void *(*set_irqfun)(void (*fun)(uint8_t d,void *context),void *context);
|
|
}log_typedef;
|
|
|
|
|
|
log_typedef *mylog(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|