File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,14 @@ extern uint32_t analogRead( uint32_t ulPin ) ;
9292 */
9393extern uint32_t analogReadVDD ( void ) ;
9494
95+ #ifdef SAADC_CH_PSELP_PSELP_VDDHDIV5
96+ /*
97+ * \brief Read the value from the vddh pin with div5.
98+ *
99+ * \return Read value from vddh pin with div5, if no error.
100+ */
101+ extern uint32_t analogReadVDDHDIV5 ( void ) ;
102+ #endif
95103
96104/*
97105 * \brief Set the resolution of analogRead return values. Default is 10 bits (range from 0 to 1023).
Original file line number Diff line number Diff line change @@ -284,6 +284,13 @@ uint32_t analogReadVDD( void )
284284 return analogRead_internal (SAADC_CH_PSELP_PSELP_VDD );
285285}
286286
287+ #ifdef SAADC_CH_PSELP_PSELP_VDDHDIV5
288+ uint32_t analogReadVDDHDIV5 ( void )
289+ {
290+ return analogRead_internal (SAADC_CH_PSELP_PSELP_VDDHDIV5 );
291+ }
292+ #endif
293+
287294void analogCalibrateOffset ( void )
288295{
289296 // Enable the SAADC
You can’t perform that action at this time.
0 commit comments