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 ) ;
92
92
*/
93
93
extern uint32_t analogReadVDD ( void ) ;
94
94
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
95
103
96
104
/*
97
105
* \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 )
284
284
return analogRead_internal (SAADC_CH_PSELP_PSELP_VDD );
285
7638
285
}
286
286
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
+
287
294
void analogCalibrateOffset ( void )
288
295
{
289
296
// Enable the SAADC
You can’t perform that action at this time.
0 commit comments