[SUP] Add support for stm32l152c-discovery board
This commit is contained in:
parent
72ae78a185
commit
88a80e25d5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue