Project

General

Profile

Revision 325

some more changes to uart

View differences:

uart.c
313 313
    return SUCCESS;
314 314
}
315 315

  
316
int nctp_send(size_t num, uint8_t* ptr[], size_t sz[]){
316
int nctp_send(size_t num, const uint8_t *const *ptr, const size_t *const sz){
317 317
    int ret;
318 318
    uint8_t *tmp;
319 319
    tmp = malloc(sizeof(uint8_t)); *tmp = NCTP_START; queue_push(out, tmp);
320 320
    for(size_t i = 0; i < num; ++i){
321
        uint8_t *p = ptr[i]; size_t s = sz[i];
321
        const uint8_t *p = ptr[i]; const size_t s = sz[i];
322 322
        for(size_t j = 0; j < s; ++j, ++p){
323 323
            tmp = malloc(sizeof(uint8_t)); *tmp = *p; queue_push(out, tmp);
324 324
        }

Also available in: Unified diff