仓库迁移
This commit is contained in:
24
source/task/log.h
Normal file
24
source/task/log.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
|
Reference in New Issue
Block a user