Merge pull request #30 from BuFran/pulls/l152c

[SUP] Add support for stm32l152c-discovery board
This commit is contained in:
Gareth McMullin 2014-07-30 14:17:51 +12:00
commit 7e396b0205
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ bool stm32l1_probe(struct target_s *target)
idcode = adiv5_ap_mem_read(adiv5_target_ap(target), STM32L1_DBGMCU_IDCODE); idcode = adiv5_ap_mem_read(adiv5_target_ap(target), STM32L1_DBGMCU_IDCODE);
switch(idcode & 0xFFF) { switch(idcode & 0xFFF) {
case 0x416: /* Medium density */ case 0x416: /* Medium density */
case 0x436: /* High density */ case 0x427: /* Medium+ density*/
case 0x436: /* Medium+/High density */
target->driver = stm32l1_driver_str; target->driver = stm32l1_driver_str;
target->xml_mem_map = stm32l1_xml_memory_map; target->xml_mem_map = stm32l1_xml_memory_map;
target->flash_erase = stm32l1_flash_erase; target->flash_erase = stm32l1_flash_erase;