IJFW - IchigoJamのBASICプログラムをメモリカード(MMCまたは互換カード)に保存したり読み出したりできるプログラム。メモリカードにファームウェアのファイルを置くだけで、電源ON時に自動的に書き換える機能も搭載(一応こちらがメイン)。LPC1114FN28専用。
参考URL http://www.cyberchabudai.org/index.php/entry?tag=IJFW
UartIsp/UartIspBase.h
- Committer:
- oks486
- Date:
- 2016-08-21
- Revision:
- 2:daf6c4719496
- Parent:
- 0:43cce7b453d0
File content as of revision 2:daf6c4719496:
#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