Changeset 374 for asp3_tinet_ecnl_rx/trunk/ntshell/fatfs/ffarch.c
- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/ntshell/fatfs/ffarch.c
r364 r374 54 54 #include "ff.h" 55 55 #include "ffarch.h" 56 #include "util/ntstdio.h" 57 #include "mbed_api.h" 58 59 extern ntstdio_t ntstdio; 56 #include <stdio.h> 57 #include "gpio_api.h" 58 #include "rtc_api.h" 60 59 61 60 enum ffarch_state_t { … … 85 84 ret2 = get_tim(&now); 86 85 if (ret2 != E_OK){ 87 ntstdio_printf(&ntstdio,"[ffarch] get_tim error: %s",86 printf("[ffarch] get_tim error: %s", 88 87 itron_strerror(ret2)); 89 88 return; … … 99 98 ret = tslp_tsk(timer); 100 99 if ((ret != E_OK) && (ret != E_TMOUT)) { 101 ntstdio_printf(&ntstdio,"[ffarch] tslp_tsk error: %s %d",100 printf("[ffarch] tslp_tsk error: %s %d", 102 101 itron_strerror(ret), timer); 103 102 break; … … 106 105 ret2 = get_tim(&now); 107 106 if (ret2 != E_OK) { 108 ntstdio_printf(&ntstdio,"[ffarch] get_tim error: %s",107 printf("[ffarch] get_tim error: %s", 109 108 itron_strerror(ret2)); 110 109 break; … … 151 150 #endif 152 151 if (romdisk_init()) { 153 ntstdio_printf(&ntstdio,"ROM disk (0:) OK!\n");152 printf("ROM disk (0:) OK!\n"); 154 153 } 155 154 else { 156 ntstdio_printf(&ntstdio,"ROM disk (0:) NG!\n");155 printf("ROM disk (0:) NG!\n"); 157 156 } 158 157 } … … 304 303 case FFS_RETRY_WAIT: 305 304 if (ffarch_retry_count == 0) { 306 ntstdio_printf(&ntstdio,"SD card (1:) initialize tired...\n");305 printf("SD card (1:) initialize tired...\n"); 307 306 308 307 ffarch_state = FFS_IDLE; … … 316 315 /* SDカードが入れられた場合 */ 317 316 if (((mmc_rspi_prev_status & STA_NODISK) != 0) && ((mmc_rspi_status() & STA_NODISK) == 0)) { 318 ntstdio_printf(&ntstdio,"SD card initializing ...\n");317 printf("SD card initializing ...\n"); 319 318 320 319 Sd.FatFs.fs_type = 0; 321 320 if (SD_begin()) { 322 ntstdio_printf(&ntstdio,"SD card (1:) OK!\n");321 printf("SD card (1:) OK!\n"); 323 322 324 323 /* uploadディレクトリを作成しておく */ … … 330 329 } 331 330 else { 332 ntstdio_printf(&ntstdio,"SD card (1:) NG!\n");331 printf("SD card (1:) NG!\n"); 333 332 ffarch_state = FFS_RETRY_WAIT; 334 333 ffarch_timer = 1000 * 1000; … … 337 336 /* SDカードが抜かれた場合 */ 338 337 else if (((mmc_rspi_prev_status & STA_NODISK) == 0) && ((mmc_rspi_status() & STA_NODISK) != 0)) { 339 ntstdio_printf(&ntstdio,"SD card unmount\n");338 printf("SD card unmount\n"); 340 339 341 340 f_mount(&Sd.FatFs, "1:", 0); … … 349 348 } 350 349 351 int ff_cre_syncobj(BYTE vol, _SYNC_t* sobj)350 int ff_cre_syncobj(BYTE vol, FF_SYNC_t* sobj) 352 351 { 353 352 return 1; 354 353 } 355 354 356 int ff_req_grant( _SYNC_t sobj)355 int ff_req_grant(FF_SYNC_t sobj) 357 356 { 358 357 ER ret; … … 361 360 } 362 361 363 void ff_rel_grant( _SYNC_t sobj)362 void ff_rel_grant(FF_SYNC_t sobj) 364 363 { 365 364 sig_sem(SEM_FILESYSTEM); 366 365 } 367 366 368 int ff_del_syncobj( _SYNC_t sobj)367 int ff_del_syncobj(FF_SYNC_t sobj) 369 368 { 370 369 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.