1
0
forked from me/IronOS
Files
IronOS/source/Core/BSP/Miniware/Setup.h
2023-10-24 08:27:05 +11:00

40 lines
860 B
C

/*
* Setup.h
*
* Created on: 29Aug.,2017
* Author: Ben V. Brown
*/
#ifndef SETUP_H_
#define SETUP_H_
#include "configuration.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f1xx_hal.h"
extern ADC_HandleTypeDef hadc1;
extern ADC_HandleTypeDef hadc2;
extern DMA_HandleTypeDef hdma_adc1;
extern IWDG_HandleTypeDef hiwdg;
extern TIM_HandleTypeDef htimADC;
extern TIM_HandleTypeDef htimTip;
void Setup_HAL();
uint16_t getADCHandleTemp(uint8_t sample);
uint16_t getADCVin(uint8_t sample);
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); // Since the hal header file does not define this one
#ifdef HAS_SPLIT_POWER_PATH
uint16_t getRawDCVin();
uint16_t getRawPDVin();
#endif
#ifdef __cplusplus
}
#endif
#endif /* SETUP_H_ */