Add to 11U68 11E68

Dependencies:   DirectoryList MODSERIAL mbed

Fork of ika_shouyu_poppoyaki by Tedd OKANO

Committer:
okano
Date:
Sun Aug 25 02:54:53 2013 +0000
Revision:
6:0ae6fe8c8512
Parent:
5:ff30f5b58617
Child:
8:b220fadbb3d8
transfer size adjustment can be done automatically by detecting "part-ID".

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 5:ff30f5b58617 1 #include "mbed.h"
okano 5:ff30f5b58617 2 #include "target_table.h"
okano 5:ff30f5b58617 3
okano 5:ff30f5b58617 4 target_param target_table[] = {
okano 5:ff30f5b58617 5 { "unknown ttarget", 0xFFFFFFFF, 1024, 4096 },
okano 5:ff30f5b58617 6 { "LPC1114FN28(FDH28)/102", 0x0A40902B, 4096, 32768 },
okano 6:0ae6fe8c8512 7 // { "** TESTLPC1114FN28 **", 0x1A40902B, 1500, 4096 },
okano 5:ff30f5b58617 8 { "LPC1114FN28(FDH28)/102", 0x1A40902B, 4096, 32768 },
okano 5:ff30f5b58617 9 { "LPC810M021FN8", 0x00008100, 1024, 4096 },
okano 5:ff30f5b58617 10 { "LPC811M001JDH16", 0x00008110, 2048, 8192 },
okano 5:ff30f5b58617 11 { "LPC812M101JDH16", 0x00008120, 4096, 16384 },
okano 5:ff30f5b58617 12 { "LPC812M101JD20", 0x00008121, 4096, 16384 },
okano 5:ff30f5b58617 13 { "LPC812M101JDH20", 0x00008122, 4096, 16384 },
okano 5:ff30f5b58617 14 };
okano 5:ff30f5b58617 15
okano 5:ff30f5b58617 16 target_param *find_target_param( char *device_id_string )
okano 5:ff30f5b58617 17 {
okano 5:ff30f5b58617 18 int id;
okano 5:ff30f5b58617 19
okano 5:ff30f5b58617 20 id = atoi( device_id_string );
okano 5:ff30f5b58617 21
okano 5:ff30f5b58617 22 for ( int i = 1; i < (sizeof( target_table ) / sizeof( target_param )); i++ )
okano 5:ff30f5b58617 23 {
okano 5:ff30f5b58617 24 if ( id == target_table[ i ].id )
okano 5:ff30f5b58617 25 return ( &(target_table[ i ]) );
okano 5:ff30f5b58617 26 }
okano 5:ff30f5b58617 27
okano 5:ff30f5b58617 28 return ( target_table );
okano 5:ff30f5b58617 29 }