1
0
This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
RealtimeOscilloscope/Core/Src/isrs.cpp

35 lines
654 B
C++
Raw Normal View History

2023-12-12 12:58:11 +00:00
/*
* isrs.cpp
*
* Created on: Dec 12, 2023
* Author: remi.heredero
*/
#include "stm32f7xx_hal.h"
2024-01-13 11:21:40 +00:00
#include "main.h"
2024-01-13 14:35:57 +00:00
#include "board/buttonscontroller.h"
2023-12-12 12:58:11 +00:00
2024-01-13 14:35:57 +00:00
extern "C" void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
switch (GPIO_Pin)
{
case BUTTON0_Pin:
case BUTTON1_Pin:
case BUTTON2_Pin:
case BUTTON3_Pin:
ButtonsController::getInstance().onIrq();
break;
default:
break;
}
}
2023-12-12 12:58:11 +00:00
extern "C" void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef * hadc) {
2024-01-13 11:21:40 +00:00
HAL_GPIO_TogglePin(OUT1_GPIO_Port, OUT1_Pin);
2023-12-12 12:58:11 +00:00
volatile uint32_t value = HAL_ADC_GetValue(hadc);
}
2024-01-13 11:21:40 +00:00