Add to 11U68 11E68

Dependencies:   DirectoryList MODSERIAL mbed

Fork of ika_shouyu_poppoyaki by Tedd OKANO

Committer:
Hapi_Tech
Date:
Sat Jul 04 05:29:32 2015 +0000
Revision:
50:57ad8e04f063
Parent:
48:99cfe3a929ea
Adding LPC11U68,11E68.

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
k4zuki 42:2b40666d8177 4 /// file name for the binary data
okano 41:74b9ff21098f 5 // edit here if you need to use different file name or storage media
okano 41:74b9ff21098f 6 #define SOURCE_FILE "/local/bin"
okano 48:99cfe3a929ea 7 #define SUFFIX_FILTER_STR "*"
okano 26:a63e73885b21 8
okano 25:33cb5ad8ae24 9
okano 25:33cb5ad8ae24 10 // "ISP_BAUD_RATE" is baud rate for ISP operation
okano 25:33cb5ad8ae24 11 #define ISP_BAUD_RATE 115200
okano 25:33cb5ad8ae24 12
okano 33:ce9fff4cbf09 13
okano 25:33cb5ad8ae24 14 // "TARGET_OPERATION_BAUD_RATE" is baud rate for USB-serial bridge operation after
okano 25:33cb5ad8ae24 15 // ISP completion.
okano 25:33cb5ad8ae24 16 // if the target application uses serial(UART) and you use the bridge feature,
okano 25:33cb5ad8ae24 17 // please set this value correctly.
okano 26:a63e73885b21 18 #define TARGET_OPERATION_BAUD_RATE 9600
okano 25:33cb5ad8ae24 19
okano 33:ce9fff4cbf09 20
okano 41:74b9ff21098f 21 // suppress "command and result" monitoring output to terminal
okano 41:74b9ff21098f 22 // the "command and result" monitoring feature is made for debugging.
okano 45:0520330a7528 23 #define SUPPRESS_COMMAND_RESULT_MESSAGE
okano 41:74b9ff21098f 24
okano 41:74b9ff21098f 25
okano 26:a63e73885b21 26 // enable "AUTO_PROGRAM_START" to let target starts the program after flash writing complete
okano 26:a63e73885b21 27 #define AUTO_PROGRAM_START
okano 26:a63e73885b21 28
okano 26:a63e73885b21 29
okano 34:eaca33d3e632 30 // disabling "ENABLE_WRITING" can be used for "verification only" operation.
okano 34:eaca33d3e632 31 #define ENABLE_WRITING
okano 34:eaca33d3e632 32
okano 34:eaca33d3e632 33
okano 33:ce9fff4cbf09 34 // enable "ENABLE_VERIFYING" to let perform verification by comparing "bin" file and flash read data.
okano 33:ce9fff4cbf09 35 #define ENABLE_VERIFYING
okano 29:96e28bc1bd99 36
okano 33:ce9fff4cbf09 37
okano 47:e7d395119a63 38 // enable "ENABLR_PROGRESS_DISPLAY" to let display data write/verify progress.
okano 47:e7d395119a63 39 #define ENABLE_PROGRESS_DISPLAY
okano 47:e7d395119a63 40
okano 47:e7d395119a63 41
okano 33:ce9fff4cbf09 42 // 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 43 #define CHECK_CRP_CODE
okano 33:ce9fff4cbf09 44
okano 33:ce9fff4cbf09 45
okano 48:99cfe3a929ea 46 // enable "ENABLE_VERIFYING" to let perform verification by comparing "bin" file and flash read data.
okano 48:99cfe3a929ea 47 #define ENABLE_FILE_SELECTOR
okano 48:99cfe3a929ea 48
okano 48:99cfe3a929ea 49
okano 33:ce9fff4cbf09 50 #endif // MBED_ISP___USER_SETTINGS__
okano 33:ce9fff4cbf09 51
okano 35:0b434ef4af49 52
okano 35:0b434ef4af49 53
okano 35:0b434ef4af49 54
okano 35:0b434ef4af49 55 ////////////////////////////
okano 35:0b434ef4af49 56 // FOLLOWING IS MESSAGE THAT WILL BE SHOWN WHEN COMPILE THIS CODE
okano 35:0b434ef4af49 57 // you can edit next lines if you want remove error/warning message
okano 35:0b434ef4af49 58 ///////////////////////////
okano 35:0b434ef4af49 59
okano 35:0b434ef4af49 60 #if defined( ENABLE_WRITING ) && defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 61 #define WHAT_WAS_DONE "written and verified"
okano 35:0b434ef4af49 62 #elif defined( ENABLE_WRITING ) && !defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 63 #define WHAT_WAS_DONE "written"
okano 35:0b434ef4af49 64 #warning "ENABLE_VERIFYING" in "_user_setting.h" is disabled. No verification will be performed.
okano 35:0b434ef4af49 65 #elif !defined( ENABLE_WRITING ) && defined( ENABLE_VERIFYING )
okano 35:0b434ef4af49 66 #define WHAT_WAS_DONE "verified"
okano 35:0b434ef4af49 67 #warning "ENABLE_WRITING" in "_user_setting.h" is disabled. No writing will be performed.
okano 35:0b434ef4af49 68 #else
okano 35:0b434ef4af49 69 #error both "ENABLE_WRITING" and "ENABLE_VERIFYING" are disabled ("in user_setting.h"). The program need to execute nothing
okano 35:0b434ef4af49 70 #endif
okano 35:0b434ef4af49 71