Revision 297
chat working
uart.c | ||
---|---|---|
286 | 286 |
queue_t *in = NULL; |
287 | 287 |
void (*process)(const uint8_t*, const size_t); |
288 | 288 |
|
289 |
int nctp_init(void (*proc_func)(const uint8_t*, const size_t)){
|
|
289 |
int nctp_init(){ |
|
290 | 290 |
out = queue_ctor(); if(out == NULL) return NULL_PTR; |
291 | 291 |
in = queue_ctor(); if(in == NULL) return NULL_PTR; |
292 |
return SUCCESS; |
|
293 |
} |
|
294 |
int nctp_set_processor(void (*proc_func)(const uint8_t*, const size_t)){ |
|
292 | 295 |
process = proc_func; |
293 | 296 |
return SUCCESS; |
294 | 297 |
} |
Also available in: Unified diff