aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/platform.c
diff options
context:
space:
mode:
authorMike Smith2011-12-26 02:47:38 -0800
committerMike Smith2011-12-26 02:47:38 -0800
commit00651032ad089711926c175bb252f0c76567c82b (patch)
treeee0de43a2e0e1740fe81ac9d431bdbce933cb140 /src/stm32/platform.c
parentbc4c87e45b5b9cc72c46993b1b416017fe4b39a6 (diff)
parent4e0cd081b09d9bd3d444062ca1081fa59c31fc0b (diff)
Merge commit '4e0cd081b09d9bd3d444062ca1081fa59c31fc0b'
* commit '4e0cd081b09d9bd3d444062ca1081fa59c31fc0b': Improved magic number garbage in cortexm3.c Cleaned up debug output on linux build. Removed #if LIGHT for unfinished hardware. Implement gdb 'qCRC' packet to support 'compare-sections' command.
Diffstat (limited to 'src/stm32/platform.c')
-rw-r--r--src/stm32/platform.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/stm32/platform.c b/src/stm32/platform.c
index 84528aa..4dd6137 100644
--- a/src/stm32/platform.c
+++ b/src/stm32/platform.c
@@ -49,11 +49,7 @@ static void uart_init(void);
int platform_init(void)
{
-#ifndef LIGHT
rcc_clock_setup_in_hse_8mhz_out_72mhz();
-#else
- rcc_clock_setup_in_hsi_out_48mhz();
-#endif
/* Enable peripherals */
rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_USBEN);
@@ -63,10 +59,6 @@ int platform_init(void)
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPDEN);
/* Setup GPIO ports */
-#ifdef LIGHT
- rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_AFIOEN);
- AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON;
-#endif
gpio_clear(USB_PU_PORT, USB_PU_PIN);
gpio_set_mode(USB_PU_PORT, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT,
USB_PU_PIN);
@@ -93,9 +85,8 @@ int platform_init(void)
#ifdef INCLUDE_UART_INTERFACE
uart_init();
#endif
-#ifndef LIGHT
SCB_VTOR = 0x2000; // Relocate interrupt vector table here
-#endif
+
cdcacm_init();
jtag_scan();