mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
* MHP30 move to I2C Bit Banging * Fixup Accelerometer drivers so all can use I2CBB * No STM32 I2C driver anymore * TS100 on I2CBB * Miniware on BB * Fixup S60 build * format format
40 lines
860 B
C
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_ */
|