kopia lustrzana https://github.com/DL7AD/pecanpico9
16 wiersze
291 B
C
16 wiersze
291 B
C
|
#ifndef __ADC_H__
|
||
|
#define __ADC_H__
|
||
|
|
||
|
#include "ch.h"
|
||
|
#include "hal.h"
|
||
|
|
||
|
void initADC(void);
|
||
|
void deinitADC(void);
|
||
|
uint16_t getBatteryVoltageMV(void);
|
||
|
uint16_t getSolarVoltageMV(void);
|
||
|
uint16_t getUSBVoltageMV(void);
|
||
|
uint16_t getSTM32Temperature(void);
|
||
|
void boost_voltage(bool boost);
|
||
|
|
||
|
#endif
|