Test program done
This commit is contained in:
27
SHAL/Src/User_Config.h
Normal file
27
SHAL/Src/User_Config.h
Normal 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
|
||||
Reference in New Issue
Block a user