Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (7 years ago)
Author:
alain
Message:

Introduce syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_txt.c

    r16 r23  
    5050    uint32_t  impl    = chdev->impl;
    5151    uint32_t  channel = chdev->channel;
     52
     53    // set chdev name
     54    snprintf( chdev->name , 16 , "txt_%d" , chdev->channel );
    5255
    5356    // set fields "cmd", "isr", and call driver init function
     
    164167    xptr_t  dev_xp = chdev_dir.txt[channel];
    165168
     169    assert( (dev_xp != XPTR_NULL) , __FUNCTION__ , "undefined TXT0 chdev descriptor" );
     170
    166171    // register command in calling thread
    167172    this->command.txt.dev_xp  = dev_xp;
Note: See TracChangeset for help on using the changeset viewer.