FX3U: test CAN bus communications

This commit is contained in:
Edward Emelianov
2024-06-01 22:23:11 +03:00
parent 166ab97fe7
commit f127a3ce1a
18 changed files with 853 additions and 189 deletions

View File

@@ -20,19 +20,16 @@
#include <stm32f1.h>
#define NUMBER_OF_ADC_CHANNELS (3)
// Vsen voltage channel
#define CHVSEN (0)
// channels for Tsens and Vdd
#define CHTSENS (1)
#define CHVDD (2)
// ADC channels in array
enum{
ADC_CH_VSEN = 0, // ADC_ch0
ADC_CH_TSEN, // T sensor
ADC_CH_VDD, // Vdd sensor
ADC_CHANNELS
};
/**
* @brief ADC_array - array for ADC channels with median filtering:
* 0 - Isensor voltage
* 1 - internal Tsens
* 2 - Vdd
* @brief ADC_array - array for ADC channels with median filtering
*/
extern uint16_t ADC_array[];