Ignore:
Timestamp:
Apr 5, 2019, 9:26:53 PM (5 years ago)
Author:
coas-nagasima
Message:

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

Location:
asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/Debug/Makefile

    r373 r374  
    172172#  共通コンパイルオプションの定義
    173173#
    174 COPTS := -g -std=gnu99 $(COPTS)
     174COPTS := -g -std=gnu99 -ffunction-sections -fdata-sections $(COPTS)
    175175ifndef OMIT_WARNING_ALL
    176176        COPTS := -Wall $(COPTS)
     
    226226        APPL_COBJS := $(APPL_COBJS) main.o ntshell_main.o echonet_main.o client.o jsonsl.o
    227227endif
    228 APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o
     228APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o mbed_stub.o
    229229APPL_BINOBJS := rom_fs.o
    230230APPL_CFLAGS := $(APPL_CFLAGS) -nostdinc
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/DebugEnbt/Makefile

    r373 r374  
    172172#  共通コンパイルオプションの定義
    173173#
    174 COPTS := -g -std=gnu99 $(COPTS)
     174COPTS := -g -std=gnu99 -ffunction-sections -fdata-sections $(COPTS)
    175175ifndef OMIT_WARNING_ALL
    176176        COPTS := -Wall $(COPTS)
     
    226226        APPL_COBJS := $(APPL_COBJS) main.o ntshell_main.o echonet_main.o client.o jsonsl.o
    227227endif
    228 APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o
     228APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o mbed_stub.o
    229229APPL_BINOBJS := rom_fs.o
    230230APPL_CFLAGS := $(APPL_CFLAGS) -nostdinc
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/DebugEther/Makefile

    r373 r374  
    172172#  共通コンパイルオプションの定義
    173173#
    174 COPTS := -g -std=gnu99 $(COPTS)
     174COPTS := -g -std=gnu99 -ffunction-sections -fdata-sections $(COPTS)
    175175ifndef OMIT_WARNING_ALL
    176176        COPTS := -Wall $(COPTS)
     
    226226        APPL_COBJS := $(APPL_COBJS) main.o ntshell_main.o echonet_main.o client.o jsonsl.o
    227227endif
    228 APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o
     228APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o mbed_stub.o
    229229APPL_BINOBJS := rom_fs.o
    230230APPL_CFLAGS := $(APPL_CFLAGS) -nostdinc
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/src/client.c

    r371 r374  
    3333 *  の責任を負わない.
    3434 *
    35  *  @(#) $Id: client.c 1729 2019-01-09 14:44:36Z coas-nagasima $
     35 *  @(#) $Id$
    3636 */
    3737#include <lib/curl_config.h>
     
    4747#include "kernel_cfg.h"
    4848#include "ff.h"
    49 #include "util/ntstdio.h"
     49#include <stdio.h>
    5050#include "client.h"
    5151#include "jsonsl.h"
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/src/client.h

    r371 r374  
    3333 *  の責任を負わない.
    3434 *
    35  *  @(#) $Id: client.h 1784 2019-02-06 01:11:25Z coas-nagasima $
     35 *  @(#) $Id$
    3636 */
    3737
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/src/echonet_main.c

    r364 r374  
    905905static uint8_t main_read_button(analogin_t *obj)
    906906{
    907         float a = analogin_read(obj);
    908 
    909         a *= 5.0;
     907        int a = analogin_read_u16(obj);
     908
     909        a *= 5;
    910910
    911911        //printf("Button read analog = %f\r\n",a);
    912         if (a < 0.2)
     912        if (a < (int)(0.2 * 65536))
    913913                return BUTTON_DOWN;
    914         if (a < 1.0)
     914        if (a < (int)(1.0 * 65536))
    915915                return BUTTON_RIGHT;
    916         if (a < 1.7)
     916        if (a < (int)(1.7 * 65536))
    917917                return BUTTON_SELECT;
    918         if (a < 2.6)
     918        if (a < (int)(2.6 * 65536))
    919919                return BUTTON_UP;
    920         if (a < 4.6)
     920        if (a < (int)(4.6 * 65536))
    921921                return BUTTON_LEFT;
    922922        else
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/src/main.c

    r371 r374  
    6868#include "core/ntshell.h"
    6969#include "core/ntlibc.h"
    70 #include "util/ntstdio.h"
     70#include <stdio.h>
    7171#include "usrcmd.h"
    7272#include "util/ntopt.h"
     
    192192{
    193193        FILINFO fno;
    194 #if _USE_LFN
    195         char lfn[_MAX_LFN + 1];
     194#if FF_USE_LFN
     195        char lfn[FF_MAX_LFN + 1];
    196196        fno.lfname = lfn;
    197         fno.lfsize = _MAX_LFN + 1;
     197        fno.lfsize = FF_MAX_LFN + 1;
    198198#endif
    199199        ER ret;
    200200
    201 #ifdef TOPPERS_OMIT_TECS
    202         serial_opn_por(SIO_PORTID);
    203 #endif
    204         serial_ctl_por(SIO_PORTID, IOCTL_FCSND | IOCTL_FCRCV);
    205 
    206201        //wolfSSL_Debugging_ON();
    207202
    208         ntshell_task_init(uart_read, uart_write, &main_obj);
     203        ntshell_task_init(SIO_PORTID);
    209204
    210205        main_obj.timer = TMO_FEVR;
  • asp3_tinet_ecnl_arm/trunk/app1_usb_watt_meter/src/main.cfg

    r364 r374  
    5151
    5252INCLUDE("tecsgen.cfg");
     53INCLUDE("mbed_stub.cfg");
    5354
    5455INCLUDE("tinet/tinet_asp.cfg");
Note: See TracChangeset for help on using the changeset viewer.