Project

General

Profile

Revision 374

some changes

View differences:

proj/src/libs/uart/src/uart.c
288 288
static void (*process)(const uint8_t*, const size_t) = NULL;
289 289

  
290 290
int nctp_init(void){
291
    //int r;
291 292
    out = queue_ctor(); if(out == NULL) return NULL_PTR;
292 293
    in  = queue_ctor(); if(in  == NULL) return NULL_PTR;
294
    //if((r = uart_enable_fifos(COM1_ADDR))) return r;
295
    //if((r = uart_set_rcvr_trigger_level(COM1_ADDR, 8))) return r;
293 296
    return SUCCESS;
294 297
}
295 298
int nctp_dump(void){
proj/src/project/src/proj.c
54 54
    /// initialize graphics
55 55
    if(graph_init(GRAPH_MODE)){
56 56
        printf("%s: failed to initalize graphics.\n", __func__);
57
        if (cleanup()) printf("%s: failed to cleanup.\n", __func__);
57
        if (unsubscribe_all()) printf("%s: failed to unsubscribe all.\n", __func__);
58 58
        return 1;
59 59
    }
60 60

  

Also available in: Unified diff