Skip to content

Commit c225765

Browse files
Remove timer logging
Signed-off-by: Taylor Lineman <git@actuallytaylor.com>
1 parent 636ad75 commit c225765

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/core/dev/platform/f3xx/Timerf3xx.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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

287284
void 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

304300
void 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

321316
void 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
}

src/core/dev/platform/f4xx/Timerf4xx.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <core/dev/platform/f4xx/Timerf4xx.hpp>
22

33
#include <core/platform/f4xx/stm32f4xx.hpp>
4-
#include <core/utils/log.hpp>
54
#define F4_TIMER_COUNT 12
65

76
TIM_HandleTypeDef halTimers[F4_TIMER_COUNT];
@@ -275,8 +274,6 @@ void TimerF4xx::initTimer(TIM_TypeDef* timerPeripheral, const uint32_t clockPeri
275274
masterConfig.MasterSlaveMode = static_cast<uint32_t>(this->configuration.masterSlaveMode);
276275
HAL_TIMEx_MasterConfigSynchronization(&htim, &masterConfig);
277276
}
278-
279-
core::log::LOGGER.log(core::log::Logger::LogLevel::DEBUG, "Finished timer setup");
280277
};
281278

282279
void TimerF4xx::startTimer(void (*irqHandler)(void* context, void* htim), void* context) {

0 commit comments

Comments
 (0)