Test program done

This commit is contained in:
Luca Lizaranzu
2026-03-20 11:41:44 -07:00
parent 303a554595
commit 1b29371fff
20 changed files with 1037 additions and 114 deletions

27
SHAL/Src/User_Config.h Normal file
View File

@@ -0,0 +1,27 @@
//
// Created by luca.lizaranzu on 3/20/2026.
//
#ifndef SHMINGO_HAL_USER_CONFIG_H
#define SHMINGO_HAL_USER_CONFIG_H
#include "SHAL.h"
//EDIT CONFIG HERE --------------------------------------------------------------------------------------------------------------------------------------------
constexpr int NUM_TIMER_GPIOS = 1;
constexpr int NUM_ADC_PINS = 2;
constexpr gpioTimerMap gpioTimerInfo[NUM_TIMER_GPIOS] = { //Add a GPIO config if you want to use it with a timer output (inverted channels not supported yet
{GPIO_Key::A3,"TIM2",SHAL_Timer_Channel::CH4, GPIO_Alternate_Function::AF1}
};
constexpr adcMap adcInfo[NUM_ADC_PINS] = {
{GPIO_Key::A1, SHAL_ADC_Channel::CH17},
{GPIO_Key::A3, SHAL_ADC_Channel::CH15},
};
//\\EDIT CONFIG HERE ------------------------------------------------------------------------------------------------------------------------------------------
#endif //SHMINGO_HAL_USER_CONFIG_H