mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-22 01:31:21 +03:00
add floating print to STM32F303
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
|
||||
#define VECT_TAB_OFFSET 0x0 /*!< Vector Table base offset field.
|
||||
This value must be a multiple of 0x200. */
|
||||
/*
|
||||
TRUE_INLINE void enable_FPU(){
|
||||
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); // set CP10 and CP11 Full Access
|
||||
}*/
|
||||
|
||||
//extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
|
||||
//extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
|
||||
@@ -45,11 +49,6 @@
|
||||
*/
|
||||
TRUE_INLINE void sysreset(void) // not usable
|
||||
{
|
||||
/* FPU settings ------------------------------------------------------------*/
|
||||
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
||||
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
|
||||
#endif
|
||||
|
||||
/* Reset the RCC clock configuration to the default reset state ------------*/
|
||||
/* Set HSION bit */
|
||||
RCC->CR |= RCC_CR_HSION;
|
||||
|
||||
Reference in New Issue
Block a user