Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Inc/main.h
- Revision:
- 2:d45b3a0f19a2
- Parent:
- 0:dffe3a22587d
--- a/Inc/main.h Fri Sep 01 15:32:42 2017 +0000 +++ b/Inc/main.h Sat Sep 02 06:56:21 2017 +0000 @@ -57,6 +57,7 @@ /* USER CODE END Includes */ /* Private define ------------------------------------------------------------*/ +#define TIM_CLOCK_SOURCE_HZ 100000000 #define B1_Pin GPIO_PIN_13 #define B1_GPIO_Port GPIOC @@ -101,7 +102,11 @@ /* USER CODE BEGIN Private defines */ #define FreeRTOS_PERIOD_HZ 20000 -#define I2C_CLOCK_SPEED 400000 + +#ifdef TIM_CLOCK_SOURCE_HZ +#undef TIM_CLOCK_SOURCE_HZ +#define TIM_CLOCK_SOURCE_HZ (SystemCoreClock/1) +#endif extern void _Error_Handler(char *, int); extern void MX_FREERTOS_Init(void);