~berfr/stm32f4discovery

7a06d2feb16c1c6d8f07e5c8c416e91cdb3e80d1 — berfr 1 year, 3 months ago f41c75e
Setup lib configs for usage in example program
M lib/freertos/FreeRTOS/Demo/CORTEX_M4F_STM32F407ZG-SK/FreeRTOSConfig.h => lib/freertos/FreeRTOS/Demo/CORTEX_M4F_STM32F407ZG-SK/FreeRTOSConfig.h +6 -6
@@ 44,12 44,13 @@
/* Ensure stdint is only used by the compiler, and not the assembler. */
#ifdef __ICCARM__
	#include <stdint.h>
	extern uint32_t SystemCoreClock;
#endif

extern uint32_t SystemCoreClock;

#define configUSE_PREEMPTION			1
#define configUSE_IDLE_HOOK				1
#define configUSE_TICK_HOOK				1
#define configUSE_IDLE_HOOK				0
#define configUSE_TICK_HOOK				0
#define configCPU_CLOCK_HZ				( SystemCoreClock )
#define configTICK_RATE_HZ				( ( TickType_t ) 1000 )
#define configMAX_PRIORITIES			( 5 )


@@ 61,9 62,9 @@
#define configIDLE_SHOULD_YIELD			1
#define configUSE_MUTEXES				1
#define configQUEUE_REGISTRY_SIZE		8
#define configCHECK_FOR_STACK_OVERFLOW	2
#define configCHECK_FOR_STACK_OVERFLOW	0
#define configUSE_RECURSIVE_MUTEXES		1
#define configUSE_MALLOC_FAILED_HOOK	1
#define configUSE_MALLOC_FAILED_HOOK	0
#define configUSE_APPLICATION_TASK_TAG	0
#define configUSE_COUNTING_SEMAPHORES	1
#define configGENERATE_RUN_TIME_STATS	0


@@ 124,4 125,3 @@ standard names. */
#define xPortSysTickHandler SysTick_Handler

#endif /* FREERTOS_CONFIG_H */


M lib/stm32f4discovery/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c => lib/stm32f4discovery/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c +1 -1
@@ 146,7 146,7 @@

/************************* PLL Parameters *************************************/
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */
#define PLL_M      25
#define PLL_M      8
#define PLL_N      336

/* SYSCLK = PLL_VCO / PLL_P */