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/app1_usb_watt_meter/src/echonet_main.c

    r340 r342  
    5050#include "echonet_main.h"
    5151#include "echonet_cfg.h"
    52 #include "rx630.h"
     52#include "target_kernel_impl.h"
    5353#include "ff.h"
    5454#include "diskio.h"
     
    5959#include <net/ethernet.h>
    6060#include <net/if_var.h>
     61#include "ntshell_main.h"
    6162
    6263/* TODO: メーカーコードを設定 */
     
    504505
    505506        /* 3ms後に7SEG表示を更新 */
    506         main_led_timer = 3;
     507        main_led_timer = 3 * 1000;
    507508
    508509        /* 10ms後にボタン状態を確認 */
    509         main_timer = 10;
     510        main_timer = 10 * 1000;
    510511
    511512        /* 12bitADC初期化 */
     
    520521
    521522        /* 1秒後に表示を更新 */
    522         main_adv_timer = 1000;
     523        main_adv_timer = 1000 * 1000;
     524
     525        ER ret = act_tsk(MAIN_TASK);
     526        if (ret != E_OK) {
     527                syslog(LOG_ERROR, "act_tsk");
     528        }
    523529}
    524530
     
    759765
    760766                        if (electric_energy_meter_data[0].current_pos == 0) {
    761                                 //act_tsk(CLIENT_TASK);
     767                                cmd_execute("logupload", NULL);
    762768                        }
    763769                }
Note: See TracChangeset for help on using the changeset viewer.