11#include < core/dev/platform/f3xx/Timerf3xx.hpp>
22
33#include < core/platform/f3xx/stm32f3xx.hpp>
4- #include < core/utils/log.hpp>
54
65#if defined(STM32F302x8)
76 #define F302_TIMER_COUNT 5
@@ -280,12 +279,9 @@ void TimerF3xx::initTimer(TIM_TypeDef* timerPeripheral, const uint32_t clockPeri
280279 masterConfig.MasterSlaveMode = static_cast <uint32_t >(this ->configuration .masterSlaveMode );
281280
282281 HAL_TIMEx_MasterConfigSynchronization (&htim, &masterConfig);
283-
284- log::LOGGER .log (log::Logger::LogLevel::DEBUG , " Finished timer setup" );
285282}
286283
287284void TimerF3xx::startTimer (void (*irqHandler)(void * context, void * htim), void* context) {
288- log::LOGGER .log (log::Logger::LogLevel::DEBUG , " Start Timer IRQ" );
289285 TIM_TypeDef* timerPeripheral = this ->halTimer ->Instance ;
290286 // If timer is not waiting to start, stop it
291287 if (halTimer->State != HAL_TIM_STATE_READY ) {
@@ -302,7 +298,6 @@ void TimerF3xx::stopTimer() {
302298}
303299
304300void TimerF3xx::startTimer () {
305- log::LOGGER .log (log::Logger::LogLevel::DEBUG , " Start Timer no IRQ" );
306301 // If timer is not waiting to start, stop it
307302 if (halTimer->State != HAL_TIM_STATE_READY ) {
308303 stopTimer (); // Stop timer in case it was already running
@@ -319,7 +314,6 @@ void TimerF3xx::reloadTimer() {
319314}
320315
321316void TimerF3xx::setPeriod (const uint32_t clockPeriod, const uint32_t clockPrescaler) {
322- core::log::LOGGER .log (log::Logger::LogLevel::DEBUG , " Set period: %d, Prescaler: %d" , clockPeriod, clockPrescaler);
323317 stopTimer ();
324318 initTimer (this ->halTimer ->Instance , clockPeriod, clockPrescaler);
325319}
0 commit comments