Added CORE general include header discerning STM32 platform includes and containing global structs and defines

This commit is contained in:
2025-08-29 23:21:56 -07:00
parent 45abfc6c88
commit 098e57eb2f
5 changed files with 78 additions and 10 deletions

View File

@@ -1,3 +1,11 @@
/**
******************************************************************************
* @file SHAL_TIM_REG.h
* @author Luca Lizaranzu
* @brief Defines universal macros and objects used across all STM32 families
******************************************************************************
*/
#ifndef SHAL_TIM_REG_H
#define SHAL_TIM_REG_H

View File

@@ -1,7 +1,15 @@
/**
******************************************************************************
* @file SHAL_TIM.h
* @author Luca Lizaranzu
* @brief Declarations of timer related objects
******************************************************************************
*/
#ifndef SHAL_TIM_H
#define SHAL_TIM_H
#include "SHAL_TIM_REG.h"
#include "SHAL_TIM_REG_F072xB.h"
#include "SHAL_TIM_CALLBACK.h"
#include <array>

View File

@@ -1,11 +1,16 @@
//
// Created by Luca on 8/28/2025.
//
/**
******************************************************************************
* @file SHAL.h
* @author Luca Lizaranzu
* @brief Utilities for creating and populating the timer IRQ callback table
* globally, see usage in SHAL_TIM.h. Created in use for singleton timer abstractions
******************************************************************************
*/
#ifndef SHMINGO_HAL_SHAL_TIM_CALLBACK_H
#define SHMINGO_HAL_SHAL_TIM_CALLBACK_H
#include "SHAL_TIM_REG.h"
#include "SHAL/Include/Core/SHAL_CORE.h"
#define DEFINE_TIMER_IRQ(key, irq_handler) \
extern "C" void irq_handler(void) { \