Changed directory structure to eventually support multi-MCU family support

This commit is contained in:
2025-08-29 23:06:22 -07:00
parent 9cc3cbece4
commit a0cb980e16
13 changed files with 16 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
//
// Created by Luca on 8/29/2025.
//
#ifndef SHMINGO_HAL_SHAL_CORE_H
#define SHMINGO_HAL_SHAL_CORE_H
#include <cstdint>
struct RCC_Peripheral {
volatile uint32_t* reg;
uint32_t bitmask;
};
#endif //SHMINGO_HAL_SHAL_CORE_H

View File

@@ -1,15 +1,9 @@
#ifndef SHAL_TIM_REG_H #ifndef SHAL_TIM_REG_H
#define SHAL_TIM_REG_H #define SHAL_TIM_REG_H
#include <cstdint>
#include <cassert> #include <cassert>
#include <stm32f072xb.h> #include <stm32f072xb.h>
struct RCC_Peripheral {
volatile uint32_t* reg;
uint32_t bitmask;
};
enum class Timer_Key { //For STM32F072 enum class Timer_Key { //For STM32F072
S_TIM1, S_TIM1,
S_TIM2, S_TIM2,