From 25572d2e48464167fc6d88c6d5c404589dad1627 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 21 Jul 2008 09:25:51 +0000 Subject: Duane Ellis stm32 peripherals scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@846 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/tcl/chip/st/stm32/stm32_rcc.tcl | 2 +- src/tcl/cpu/arm/cortex_m3.tcl | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/tcl/cpu/arm/cortex_m3.tcl (limited to 'src/tcl') diff --git a/src/tcl/chip/st/stm32/stm32_rcc.tcl b/src/tcl/chip/st/stm32/stm32_rcc.tcl index 0e096912..3973ff94 100644 --- a/src/tcl/chip/st/stm32/stm32_rcc.tcl +++ b/src/tcl/chip/st/stm32/stm32_rcc.tcl @@ -42,7 +42,7 @@ proc show_RCC_CFGR { } { show_mmr_bitfield 15 14 $val ADCPRE { pclk2_div1 pclk2_div1 pclk2_div1 pclk2_div1 pclk2_div2 pclk2_div4 pclk2_div8 pclk2_div16 } show_mmr_bitfield 16 16 $val PLLSRC { HSI_div_2 HSE } show_mmr_bitfield 17 17 $val PLLXTPRE { hse_div1 hse_div2 } - show_mmr_bitfield 21 18 $val PLLMUL { x2 x3 x4 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x16 } + show_mmr_bitfield 21 18 $val PLLMUL { x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x16 } show_mmr_bitfield 22 22 $val USBPRE { div1 div1_5 } show_mmr_bitfield 26 24 $val MCO { none none none none SysClk HSI HSE PLL_div2 } } diff --git a/src/tcl/cpu/arm/cortex_m3.tcl b/src/tcl/cpu/arm/cortex_m3.tcl new file mode 100644 index 00000000..b4bbcce1 --- /dev/null +++ b/src/tcl/cpu/arm/cortex_m3.tcl @@ -0,0 +1,6 @@ +set CPU_TYPE arm +set CPU_NAME cortex_m3 +set CPU_ARCH armv7 +set CPU_MAX_ADDRESS 0xFFFFFFFF +set CPU_NBITS 32 + -- cgit v1.2.3-18-g5258