IJFW - IchigoJamのBASICプログラムをメモリカード(MMCまたは互換カード)に保存したり読み出したりできるプログラム。メモリカードにファームウェアのファイルを置くだけで、電源ON時に自動的に書き換える機能も搭載(一応こちらがメイン)。LPC1114FN28専用。

Dependencies:   mbed

参考URL http://www.cyberchabudai.org/index.php/entry?tag=IJFW

Committer:
oks486
Date:
Wed Aug 17 07:19:20 2016 +0000
Revision:
1:11f73f269fdc
Parent:
0:43cce7b453d0
Implementation of some configurable settings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
oks486 0:43cce7b453d0 1 #ifndef UART_ISP_H
oks486 0:43cce7b453d0 2 #define UART_ISP_H
oks486 0:43cce7b453d0 3
oks486 0:43cce7b453d0 4 #include "mbed.h"
oks486 0:43cce7b453d0 5 #include "UartIspBase.h"
oks486 1:11f73f269fdc 6 #include "FatfsIjfwConfigurable.h"
oks486 0:43cce7b453d0 7
oks486 0:43cce7b453d0 8 class UartIsp : public UartIspBase {
oks486 0:43cce7b453d0 9 public:
oks486 0:43cce7b453d0 10 enum ISP_RESULT {
oks486 0:43cce7b453d0 11 NOERROR,
oks486 0:43cce7b453d0 12 ERR_FILE_OPEN,
oks486 0:43cce7b453d0 13 ERR_SYNC_MCU,
oks486 0:43cce7b453d0 14 ERR_UNLOCK_FLASH,
oks486 0:43cce7b453d0 15 ERR_FILE_READ,
oks486 0:43cce7b453d0 16 ERR_WRITE_TO_RAM,
oks486 0:43cce7b453d0 17 ERR_COPY_TO_FLASH,
oks486 0:43cce7b453d0 18 };
oks486 0:43cce7b453d0 19
oks486 1:11f73f269fdc 20 UartIsp(RawSerial* _serial, FatfsIjfwConfigurable* _fs);
oks486 0:43cce7b453d0 21 virtual ~UartIsp();
oks486 0:43cce7b453d0 22
oks486 0:43cce7b453d0 23 virtual void writeSerial(const char val);
oks486 0:43cce7b453d0 24 virtual char readSerial();
oks486 0:43cce7b453d0 25 virtual int readable();
oks486 0:43cce7b453d0 26 virtual void sleep(int msec);
oks486 0:43cce7b453d0 27
oks486 0:43cce7b453d0 28 ISP_RESULT runUartIsp(const char* filename);
oks486 0:43cce7b453d0 29
oks486 0:43cce7b453d0 30 protected:
oks486 0:43cce7b453d0 31
oks486 0:43cce7b453d0 32 RawSerial* serial;
oks486 1:11f73f269fdc 33 FatfsIjfwConfigurable* fs;
oks486 0:43cce7b453d0 34 char* buffer;
oks486 0:43cce7b453d0 35
oks486 0:43cce7b453d0 36 };
oks486 0:43cce7b453d0 37
oks486 0:43cce7b453d0 38 #endif