Added alternate function inits for USART

This commit is contained in:
2025-09-07 21:30:32 -07:00
parent 84ab921291
commit b2c41e2cb4
21 changed files with 182 additions and 70 deletions

View File

@@ -6,11 +6,11 @@
******************************************************************************
*/
#ifndef SHMINGO_HAL_SHAL_EXTI_CALLBACK_H
#define SHMINGO_HAL_SHAL_EXTI_CALLBACK_H
#ifndef SHAL_EXTI_CALLBACK_H
#define SHAL_EXTI_CALLBACK_H
#include "SHAL_CORE.h"
#include "SHAL_GPIO_REG_F072xB.h"
#include "SHAL_GPIO_REG.h"
#define DEFINE_EXTI_IRQ(EXTI_Channel) \
extern "C" void EXTI##EXTI_Channel##_IRQHandler(void) { \
@@ -38,4 +38,4 @@ typedef void (*EXTICallback)(); //Typedef for callback function
void registerEXTICallback(GPIO_Key key, EXTICallback callback);
#endif //SHMINGO_HAL_SHAL_EXTI_CALLBACK_H
#endif //SHAL_EXTI_CALLBACK_H