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

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

File:
1 edited

Legend:

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

    r341 r342  
    7676#include <btstack/utils.h>
    7777#include "ntp_cli.h"
     78#include "netcmd.h"
    7879
    7980ID ws_api_mailboxid = MAIN_DATAQUEUE;
     
    8283#ifdef IF_ETHER_BTUSB
    8384extern int bt_bnep_mode;
    84 
     85/* PANU向けリモートアドレス */
    8586// BUFFALLO
    8687//bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D };
     
    143144
    144145ntshell_t ntshell;
    145 void _start_c(long *p);
    146146
    147147/*
     
    149149 */
    150150void main_task(intptr_t exinf)
    151 {
    152         long args[] = {
    153                 1,
    154                 (long)"ntshell",
    155         };
    156         _start_c(args);
    157 }
    158 
    159 int main(int argc, char **argv)
    160151{
    161152#ifdef IF_ETHER_BTUSB
     
    169160        ntshell_set_prompt(&ntshell, "NTShell>");
    170161        ntshell_execute(&ntshell);
    171 
    172         return 0;
    173162}
    174163
     
    184173        fno.lfsize = _MAX_LFN + 1;
    185174#endif
    186         ER ret2;
     175        ER ret;
    187176
    188177        ntshell_task_init();
     
    239228#endif
    240229
    241         ret2 = get_tim(&main_obj.now);
    242         if (ret2 != E_OK) {
     230        ret = get_tim(&main_obj.now);
     231        if (ret != E_OK) {
    243232                syslog(LOG_ERROR, "get_tim");
    244233                ext_tsk();
     
    309298        echonet_change_netif_link(link_up, up);
    310299}
    311 
    312 extern int usrcmd_ping(int argc, char **argv);
    313 extern int usrcmd_dhcp4c(int argc, char **argv);
    314 extern int usrcmd_dnsc(int argc, char **argv);
    315 extern int usrcmd_ntpc(int argc, char **argv);
    316300
    317301static const cmd_table_t cmdlist[] = {
Note: See TracChangeset for help on using the changeset viewer.