Ignore:
Timestamp:
Apr 13, 2018, 1:00:30 PM (4 years ago)
Author:
coas-nagasima
Message:

NTPクライアント処理を追加

Location:
asp3_tinet_ecnl_rx/trunk/app7_buzzer
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/app7_buzzer/Debug/Makefile

    r337 r340  
    179179CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
    180180
     181APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
    181182APPL_COBJS := echonet.o echonet_agent.o echonet_dbg.o echonet_fbs.o echonet_task.o echonet_udp_task.o echonet_udp6_task.o fbs_string.o
    182 APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o
     183APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
     184APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
     185APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
    183186APPL_COBJS := $(APPL_COBJS) mbed_api.o netcmd.o fdtable.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o mmc_rspi.o ccsbcs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntlibc.o ntstdio.o ntopt.o syscall.o tlsf.o
    184187
     
    187190#
    188191APPLNAME = app7_buzzer
    189 APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
     192APPLDIRS := $(APPLDIRS) ../src
    190193APPL_CFG = main.cfg
    191194APPL_CDL = main.cdl
  • asp3_tinet_ecnl_rx/trunk/app7_buzzer/DebugCitrus/Makefile

    r337 r340  
    179179CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
    180180
     181APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
    181182APPL_COBJS := echonet.o echonet_agent.o echonet_dbg.o echonet_fbs.o echonet_task.o echonet_udp_task.o echonet_udp6_task.o fbs_string.o
    182 APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o
     183APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
     184APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
     185APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
    183186APPL_COBJS := $(APPL_COBJS) mbed_api.o netcmd.o fdtable.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o mmc_rspi.o ccsbcs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntlibc.o ntstdio.o ntopt.o syscall.o tlsf.o
    184187
     
    187190#
    188191APPLNAME = app7_buzzer
    189 APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
     192APPLDIRS := $(APPLDIRS) ../src
    190193APPL_CFG = main.cfg
    191194APPL_CDL = main.cdl
  • asp3_tinet_ecnl_rx/trunk/app7_buzzer/DebugEther/Makefile

    r337 r340  
    177177CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
    178178
     179APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
    179180APPL_COBJS := echonet.o echonet_agent.o echonet_dbg.o echonet_fbs.o echonet_task.o echonet_udp_task.o echonet_udp6_task.o fbs_string.o
    180 APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o
     181APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
     182APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
     183APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
    181184APPL_COBJS := $(APPL_COBJS) mbed_api.o netcmd.o fdtable.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o mmc_rspi.o ccsbcs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntlibc.o ntstdio.o ntopt.o syscall.o tlsf.o
    182185
     
    185188#
    186189APPLNAME = app7_buzzer
    187 APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
     190APPLDIRS := $(APPLDIRS) ../src
    188191APPL_CFG = main.cfg
    189192APPL_CDL = main.cdl
  • asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/echonet_main.c

    r337 r340  
    5353
    5454/* TODO: メーカーコードを設定 */
    55 #define MAKER_CODE      0x00, 0x00, 0xB3        /* TOPPERSプロジェクト */
     55#define MAKER_CODE      { 0x00, 0x00, 0xB3 }    /* TOPPERSプロジェクト */
    5656
    5757/* ノードプロファイルオブジェクト */
  • asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/main.c

    r337 r340  
    7575#include "ntshell_main.h"
    7676#include <btstack/utils.h>
     77#include "ntp_cli.h"
    7778
    7879ID ws_api_mailboxid = MAIN_DATAQUEUE;
     
    301302        }
    302303
     304        if (link_up && up)
     305                ntp_cli_execute();
     306
    303307        ntshell_change_netif_link(link_up, up);
    304308
     
    308312extern int usrcmd_ping(int argc, char **argv);
    309313extern int usrcmd_dhcp4c(int argc, char **argv);
     314extern int usrcmd_dnsc(int argc, char **argv);
    310315
    311316static const cmd_table_t cmdlist[] = {
     
    317322        {"mkdir", "Make directory", usrcmd_mkdir},
    318323        {"hexdump", "Hex dump", usrcmd_hexdump},
     324        {"date", "print date and time", usrcmd_date},
    319325        {"ping", "ping", usrcmd_ping},
    320326        {"dhcpc", "DHCP Client rel/renew/info", usrcmd_dhcp4c},
     327        {"dnsc", "DNS client", usrcmd_dnsc },
    321328        {"info", "This is a description text string for info command.", usrcmd_info},
    322329        {"exit", "Exit Natural Tiny Shell", usrcmd_exit},
  • asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/main.cfg

    r337 r340  
    5858/* DHCP クライアント */
    5959#include "netapp/dhcp4_cli.h"
    60 INCLUDE("netapp/dhcp4_cli_asp.cfg");
     60//INCLUDE("netapp/dhcp4_cli_asp.cfg");
    6161INCLUDE("netapp/tinet_dhcp4_cli.cfg");
    6262
     
    6565INCLUDE("netapp/resolver_asp.cfg");
    6666INCLUDE("netapp/tinet_resolver.cfg");
     67
     68/* NTPクライアント */
     69#include "ntp_cli.h"
     70//INCLUDE("ntp_cli.cfg");
     71INCLUDE("tinet_ntp_cli.cfg");
     72
     73#include "net_misc.h"
     74INCLUDE("net_misc.cfg");
    6775
    6876/* FatFs */
Note: See TracChangeset for help on using the changeset viewer.