start fixed F1 testboard for new board type

This commit is contained in:
Edward Emelianov
2022-12-27 20:54:43 +03:00
parent c152315922
commit c4ba010c17
34 changed files with 2678 additions and 272 deletions

View File

@@ -19,11 +19,25 @@
#define ADC_H
#include "stm32f1.h"
#define NUMBER_OF_ADC_CHANNELS (3)
#define NUMBER_OF_ADC_CHANNELS (5)
// channels for Tsens and Vref
#define CHTSENS (3)
#define CHVREF (4)
/**
* @brief ADC_array - array for ADC channels with median filtering:
* 0 - Rvar
* 1 - Rvar/2
* 2 - AIN5
* 3 - internal Tsens
* 4 - Vref
*/
extern uint16_t ADC_array[];
int32_t getMCUtemp();
uint32_t getVdd();
uint16_t getADCval(int nch);
uint32_t getADCvoltage(int nch);
#endif // ADC_H