add xf integration
This commit is contained in:
@@ -7,8 +7,24 @@
|
||||
|
||||
#include "stm32f7xx_hal.h"
|
||||
#include "main.h"
|
||||
#include "board/buttonscontroller.h"
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef * hadc) {
|
||||
HAL_GPIO_TogglePin(OUT1_GPIO_Port, OUT1_Pin);
|
||||
volatile uint32_t value = HAL_ADC_GetValue(hadc);
|
||||
|
||||
Reference in New Issue
Block a user