Ika Shouyu Poppoyaki - LPC82x supported

Dependencies:   MODSERIAL mbed

Fork of ika_shouyu_poppoyaki by Tedd OKANO

Committer:
okano
Date:
Sun Sep 29 03:54:06 2013 +0000
Revision:
39:f68f9fa1e88e
Parent:
35:0b434ef4af49
Child:
41:74b9ff21098f
ver 0.98 : suppressed debug message in default setting. it improves speed of writing and verifying

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 29:96e28bc1bd99 1 #ifndef MBED_ISP___USER_SETTINGS__
okano 29:96e28bc1bd99 2 #define MBED_ISP___USER_SETTINGS__
okano 26:a63e73885b21 3
okano 26:a63e73885b21 4
okano 25:33cb5ad8ae24 5 #define SOURCE_FILE "/local/bin"
okano 25:33cb5ad8ae24 6
okano 25:33cb5ad8ae24 7 // "ISP_BAUD_RATE" is baud rate for ISP operation
okano 25:33cb5ad8ae24 8 #define ISP_BAUD_RATE 115200
okano 25:33cb5ad8ae24 9
okano 33:ce9fff4cbf09 10
okano 39:f68f9fa1e88e 11 // suppress "command and result" monitoring output to terminal
okano 39:f68f9fa1e88e 12 // the "command and result" monitoring feature is made for debugging.
okano 39:f68f9fa1e88e 13 #define SUPPRESS_COMMAND_RESULT_MESSAGE
okano 39:f68f9fa1e88e 14
okano 39:f68f9fa1e88e 15
okano 25:33cb5ad8ae24 16 // "TARGET_OPERATION_BAUD_RATE" is baud rate for USB-serial bridge operation after
okano 25:33cb5ad8ae24 17 // ISP completion.
okano 25:33cb5ad8ae24 18 // if the target application uses serial(UART) and you use the bridge feature,
okano 25:33cb5ad8ae24 19 // please set this value correctly.
okano 26:a63e73885b21 20 #define TARGET_OPERATION_BAUD_RATE 9600
okano 25:33cb5ad8ae24 21
okano 33:ce9fff4cbf09 22
okano 26:a63e73885b21 23 // enable "AUTO_PROGRAM_START" to let target starts the program after flash writing complete
okano 26:a63e73885b21 24 #define AUTO_PROGRAM_START
okano 26:a63e73885b21 25
okano 26:a63e73885b21 26
okano 34:eaca33d3e632 27 // disabling "ENABLE_WRITING" can be used for "verification only" operation.
okano 34:eaca33d3e632 28 #define ENABLE_WRITING
okano 34:eaca33d3e632 29
okano 34:eaca33d3e632 30
okano 33:ce9fff4cbf09 31 // enable "ENABLE_VERIFYING" to let perform verification by comparing "bin" file and flash read data.
okano 33:ce9fff4cbf09 32 #define ENABLE_VERIFYING
okano 29:96e28bc1bd99 33
okano 33:ce9fff4cbf09 34
okano 33:ce9fff4cbf09 35 // enable "CHECK_CRP_CODE" to check the CRP (Code Read Protection). The ISP writing will be ignored if "bin" file has CRP code.
okano 33:ce9fff4cbf09 36 #define CHECK_CRP_CODE
okano 33:ce9fff4cbf09 37
okano 33:ce9fff4cbf09 38
okano 33:ce9fff4cbf09 39 #endif // MBED_ISP___USER_SETTINGS__
okano 33:ce9fff4cbf09 40
okano 35:0b434ef4af49 41
okano 35:0b434ef4af49 42
okano 35:0b434ef4af49 43
okano 35:0b434ef4af49 44 ////////////////////////////
okano 35:0b434ef4af49 45 // FOLLOWING IS MESSAGE THAT WILL BE SHOWN WHEN COMPILE THIS CODE
okano 35:0b434ef4af49 46 // you can edit next lines if you want remove error/warning message
okano 35:0b434ef4af49 47 ///////////////////////////
okano 35:0b434ef4af49 48
okano 35:0b434ef4af49 49 #if defined( ENABLE_WRITING ) && defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 50 #define WHAT_WAS_DONE "written and verified"
okano 35:0b434ef4af49 51 #elif defined( ENABLE_WRITING ) && !defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 52 #define WHAT_WAS_DONE "written"
okano 35:0b434ef4af49 53 #warning "ENABLE_VERIFYING" in "_user_setting.h" is disabled. No verification will be performed.
okano 35:0b434ef4af49 54 #elif !defined( ENABLE_WRITING ) && defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 55 #define WHAT_WAS_DONE "verified"
okano 35:0b434ef4af49 56 #warning "ENABLE_WRITING" in "_user_setting.h" is disabled. No writing will be performed.
okano 35:0b434ef4af49 57 #else
okano 35:0b434ef4af49 58 #error both "ENABLE_WRITING" and "ENABLE_VERIFYING" are disabled ("in user_setting.h"). The program need to execute nothing
okano 35:0b434ef4af49 59 #endif
okano 35:0b434ef4af49 60