Ignore:
Timestamp:
Apr 27, 2018, 2:26:14 PM (6 years ago)
Author:
coas-nagasima
Message:

syscallが関数呼びになるよう変更
他更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/bnep_bridge/src/main.c

    r341 r342  
    143143
    144144ntshell_t ntshell;
    145 #if !defined(_MSC_VER)
    146 void _start_c(long *p);
    147145
    148146/*
     
    150148 */
    151149void main_task(intptr_t exinf)
    152 {
    153         long args[] = {
    154                 1,
    155                 (long)"ntshell",
    156         };
    157         _start_c(args);
    158 }
    159 
    160 int main(int argc, char **argv)
    161150{
    162151        // NAP mode
     
    168157        ntshell_set_prompt(&ntshell, "NTShell>");
    169158        ntshell_execute(&ntshell);
    170 
    171         return 0;
    172 }
    173 #else
    174 void main_task(intptr_t exinf)
    175 {
    176         main_initialize();
    177 
    178         ntshell_init(&ntshell, uart_read, uart_write, cmd_execute, NULL);
    179         ntshell_set_prompt(&ntshell, "NTShell>");
    180         ntshell_execute(&ntshell);
    181 }
    182 #endif
     159}
     160
    183161/*
    184162 * 初期化
     
    192170        fno.lfsize = _MAX_LFN + 1;
    193171#endif
    194         ER ret2;
     172        ER ret;
    195173
    196174        ntshell_task_init();
     
    226204        usbhost_init(USBHOST_TASK);
    227205
    228         ret2 = get_tim(&main_obj.now);
    229         if (ret2 != E_OK) {
     206        ret = get_tim(&main_obj.now);
     207        if (ret != E_OK) {
    230208                syslog(LOG_ERROR, "get_tim");
    231209                ext_tsk();
Note: See TracChangeset for help on using the changeset viewer.