From: oharboe Date: Mon, 21 Jul 2008 09:25:51 +0000 (+0000) Subject: Duane Ellis stm32 peripherals scripts X-Git-Tag: v0.1.0~453 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25572d2e48464167fc6d88c6d5c404589dad1627;p=openocd Duane Ellis stm32 peripherals scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@846 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/Makefile.am b/src/Makefile.am index 3080839c..d04308e5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -93,6 +93,7 @@ nobase_dist_pkglib_DATA = \ tcl/cpu/arm/arm920.tcl \ tcl/cpu/arm/arm946.tcl \ tcl/cpu/arm/arm966.tcl \ + tcl/cpu/arm/cortex_m3.tcl \ tcl/memory.tcl \ tcl/mmr_helpers.tcl \ tcl/readable.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 +