Ika Shouyu Poppoyaki - LPC82x supported

Dependencies:   MODSERIAL mbed

Fork of ika_shouyu_poppoyaki by Tedd OKANO

Committer:
okano
Date:
Thu Sep 26 12:56:01 2013 +0000
Revision:
35:0b434ef4af49
Parent:
34:eaca33d3e632
Child:
39:f68f9fa1e88e
added: warning/error by compile option settings

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 25:33cb5ad8ae24 11 // "TARGET_OPERATION_BAUD_RATE" is baud rate for USB-serial bridge operation after
okano 25:33cb5ad8ae24 12 // ISP completion.
okano 25:33cb5ad8ae24 13 // if the target application uses serial(UART) and you use the bridge feature,
okano 25:33cb5ad8ae24 14 // please set this value correctly.
okano 26:a63e73885b21 15 #define TARGET_OPERATION_BAUD_RATE 9600
okano 25:33cb5ad8ae24 16
okano 33:ce9fff4cbf09 17
okano 26:a63e73885b21 18 // enable "AUTO_PROGRAM_START" to let target starts the program after flash writing complete
okano 26:a63e73885b21 19 #define AUTO_PROGRAM_START
okano 26:a63e73885b21 20
okano 26:a63e73885b21 21
okano 34:eaca33d3e632 22 // disabling "ENABLE_WRITING" can be used for "verification only" operation.
okano 34:eaca33d3e632 23 #define ENABLE_WRITING
okano 34:eaca33d3e632 24
okano 34:eaca33d3e632 25
okano 33:ce9fff4cbf09 26 // enable "ENABLE_VERIFYING" to let perform verification by comparing "bin" file and flash read data.
okano 33:ce9fff4cbf09 27 #define ENABLE_VERIFYING
okano 29:96e28bc1bd99 28
okano 33:ce9fff4cbf09 29
okano 33:ce9fff4cbf09 30 // 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 31 #define CHECK_CRP_CODE
okano 33:ce9fff4cbf09 32
okano 33:ce9fff4cbf09 33
okano 33:ce9fff4cbf09 34 #endif // MBED_ISP___USER_SETTINGS__
okano 33:ce9fff4cbf09 35
okano 35:0b434ef4af49 36
okano 35:0b434ef4af49 37
okano 35:0b434ef4af49 38
okano 35:0b434ef4af49 39 ////////////////////////////
okano 35:0b434ef4af49 40 // FOLLOWING IS MESSAGE THAT WILL BE SHOWN WHEN COMPILE THIS CODE
okano 35:0b434ef4af49 41 // you can edit next lines if you want remove error/warning message
okano 35:0b434ef4af49 42 ///////////////////////////
okano 35:0b434ef4af49 43
okano 35:0b434ef4af49 44 #if defined( ENABLE_WRITING ) && defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 45 #define WHAT_WAS_DONE "written and verified"
okano 35:0b434ef4af49 46 #elif defined( ENABLE_WRITING ) && !defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 47 #define WHAT_WAS_DONE "written"
okano 35:0b434ef4af49 48 #warning "ENABLE_VERIFYING" in "_user_setting.h" is disabled. No verification will be performed.
okano 35:0b434ef4af49 49 #elif !defined( ENABLE_WRITING ) && defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 50 #define WHAT_WAS_DONE "verified"
okano 35:0b434ef4af49 51 #warning "ENABLE_WRITING" in "_user_setting.h" is disabled. No writing will be performed.
okano 35:0b434ef4af49 52 #else
okano 35:0b434ef4af49 53 #error both "ENABLE_WRITING" and "ENABLE_VERIFYING" are disabled ("in user_setting.h"). The program need to execute nothing
okano 35:0b434ef4af49 54 #endif
okano 35:0b434ef4af49 55