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

Dependencies:   mbed

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

Revision:
0:43cce7b453d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UartIsp/UartIspBase.h	Thu Apr 28 11:23:24 2016 +0000
@@ -0,0 +1,37 @@
+#ifndef UART_ISP_BASE_H
+#define UART_ISP_BASE_H
+
+
+class UartIspBase {
+public:
+
+    UartIspBase();
+    virtual ~UartIspBase();
+
+    virtual void writeSerial(const char val) = 0;
+    virtual char readSerial() = 0;
+    virtual int readable() = 0;
+    virtual void sleep(int msec) = 0;
+    
+protected:
+
+    void disableEchoBack();
+    int openIsp(int mcufreq);
+    int unlockFlash();
+    int eraseFlash(int startSector, int endSector);
+    int writeToRam(char buffer[], unsigned int ramAddress, int length);
+    int prepareFlash(int startSector, int endSector);
+    int copyToFlash(unsigned int flashAddress, unsigned int ramAddress, int length);
+
+private:
+
+    char uuCharTable[64];
+    int echoBack;
+
+    char getUuString(int i);
+    void writeString(const char val);
+    void writeString(const char* str);
+    int isRecieveStringMatch(const char* checkString);
+
+};
+#endif