1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2025-10-18 17:04:02 -04:00

ADC conversion of temperature and voltage internal sensors

This commit is contained in:
2020-12-29 14:26:39 +08:00
parent f1f238abf8
commit 8c9c4e6d3e
4 changed files with 444 additions and 1 deletions

View File

@@ -22,4 +22,13 @@ iolvl_t gpioa_read( int pin) ; /* Read level of GPIOA pin */
void usleep( unsigned usecs) ; /* wait at least usecs us */
typedef enum {
VNT_INIT,
VNT_CAL,
VNT_RAW,
VNT_VNC
} vnt_cmd_t ;
void adc_vnt( vnt_cmd_t cmd, short *ptrV, short *ptrC) ;
/* end of system.h */