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

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

File:
1 edited

Legend:

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

    r364 r374  
    5656#include "core/ntshell.h"
    5757#include "core/ntlibc.h"
    58 #include "util/ntstdio.h"
     58#include <stdio.h>
    5959#include "usrcmd.h"
    6060#include "util/ntopt.h"
    61 #include "mbed_api.h"
     61#include "gpio_api.h"
    6262#include "usb_hbth.h"
    6363#include "ntshell_main.h"
     
    6969extern int bt_bnep_mode;
    7070/* PANU向けリモートアドレス */
    71 // BUFFALLO
    72 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D };
    73 // Raspberry Pi 3
    74 //bd_addr_t remote_addr = {0xB8,0x27,0xEB,0x10,0x6D,0x60};
    75 // PRINCETON
    76 //bd_addr_t remote_addr = {0x00,0x1B,0xDC,0x06,0x6E,0x98};
    77 // ELECOM
    7871bd_addr_t remote_addr = {0x00,0x1B,0xDC,0x09,0x27,0x26};
    7972
     
    185178{
    186179        FILINFO fno;
    187 #if _USE_LFN
    188         char lfn[_MAX_LFN + 1];
     180#if FF_USE_LFN
     181        char lfn[FF_MAX_LFN + 1];
    189182        fno.lfname = lfn;
    190         fno.lfsize = _MAX_LFN + 1;
     183        fno.lfsize = FF_MAX_LFN + 1;
    191184#endif
    192185        ER ret;
    193186
    194 #ifdef TOPPERS_OMIT_TECS
    195         serial_opn_por(SIO_PORTID);
    196 #endif
    197         serial_ctl_por(SIO_PORTID, IOCTL_FCSND | IOCTL_FCRCV);
    198 
    199         ntshell_task_init(uart_read, uart_write, &main_obj);
     187        ntshell_task_init(SIO_PORTID);
    200188
    201189        main_obj.timer = TMO_FEVR;
Note: See TracChangeset for help on using the changeset viewer.