Changed directory structure to eventually support multi-MCU family support - added files
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
// Created by Luca on 8/28/2025.
|
||||
//
|
||||
|
||||
#include "Core/Include/Timer/SHAL_TIM.h"
|
||||
#include "SHAL_TIM.h"
|
||||
#include <cassert>
|
||||
|
||||
Timer::Timer(Timer_Key t) : timer(t), timer_reg(getTimerRegister(t)){
|
||||
RCC_Peripheral rcc = getTimerRCC(timer);
|
||||
SHAL_Peripheral rcc = getTimerRCC(timer);
|
||||
*rcc.reg |= rcc.bitmask;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user