Project

General

Profile

Revision 316

documented list and queue

View differences:

uart.c
313 313
}
314 314

  
315 315
int nctp_send(size_t num, uint8_t* ptr[], size_t sz[]){
316
    {
317
        size_t cnt = 0;
318
        for(size_t i = 0; i < num; ++i){
319
            cnt += sz[i];
320
            if(cnt > queue_max_size) return TRANS_REFUSED;
321
        }
322
    }
323 316
    int ret;
324 317
    uint8_t *tmp;
325 318
    tmp = malloc(sizeof(uint8_t)); *tmp = NCTP_START; queue_push(out, tmp);

Also available in: Unified diff