Skip to content
Snippets Groups Projects
Commit 63eb1238 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Changed the prescaler to get the desired frequency.

parent 6f9fbc49
No related branches found
No related tags found
No related merge requests found
...@@ -535,7 +535,7 @@ uint8_t imu_init(TMemory *memory,unsigned int ram_base_address) ...@@ -535,7 +535,7 @@ uint8_t imu_init(TMemory *memory,unsigned int ram_base_address)
/* imu timer configuration */ /* imu timer configuration */
htim.Instance=IMU_TIMER; htim.Instance=IMU_TIMER;
htim.Init.Period = 1000; htim.Init.Period = 1000;
htim.Init.Prescaler = 84; htim.Init.Prescaler = 36;
htim.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
htim.Init.CounterMode = TIM_COUNTERMODE_UP; htim.Init.CounterMode = TIM_COUNTERMODE_UP;
htim.Init.RepetitionCounter=0; htim.Init.RepetitionCounter=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment