cpu/stm32f3: adapted to centralized cpu conf

dev/timer
Hauke Petersen 8 years ago
parent cb476daff0
commit c6d65fec8b

@ -21,11 +21,6 @@
#include "cpu.h"
#include "periph_conf.h"
/**
* @name Pattern to write into the Coprocessor Access Control Register to allow full FPU access
*/
#define FULL_FPU_ACCESS (0x00f00000)
static void cpu_clock_init(void);
/**
@ -33,17 +28,10 @@ static void cpu_clock_init(void);
*/
void cpu_init(void)
{
/* give full access to the FPU */
SCB->CPACR |= (uint32_t)FULL_FPU_ACCESS;
/* configure the vector table location to internal flash */
SCB->VTOR = FLASH_BASE;
/* initialize the Cortex-M core */
cortexm_init();
/* initialize the clock system */
cpu_clock_init();
/* set pendSV interrupt to lowest possible priority */
NVIC_SetPriority(PendSV_IRQn, 0xff);
}
/**

@ -28,30 +28,17 @@
#include "stm32f334x8.h"
#endif
/**
* @name Kernel configuration
*
* TODO: measure and adjust for the Cortex-M4f
* @{
*/
#define THREAD_EXTRA_STACKSIZE_PRINTF (1024)
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (1024)
#ifdef __cplusplus
extern "C" {
#endif
#define THREAD_STACKSIZE_IDLE (256)
/** @} */
/**
* @name UART0 buffer size definition for compatibility reasons
*
* TODO: remove once the remodeling of the uart0 driver is done
* @brief ARM Cortex-M specific CPU configuration
* @{
*/
#ifndef UART0_BUFSIZE
#define UART0_BUFSIZE (128)
#endif
#define CPU_DEFAULT_IRQ_PRIO (1U)
#define CPU_IRQ_NUMOF (82U)
#define CPU_FLASH_BASE FLASH_BASE
/** @} */
/**
@ -59,9 +46,6 @@
*/
#define CPUID_ID_LEN (12)
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}

Loading…
Cancel
Save