Add SAADC offset cal and read CPU temp

This commit is contained in:
ajs123 committed 2021-08-05 19:11:22 -04:00
1 parent 6227526699
commit df356456c7
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ void systemOff(uint32_t pin, uint8_t wake_logic)
}
float readCPUTemperature()
float readCPUTemperature( void )
{
uint8_t en;
int32_t temp;
+1 -1
View File
@@ -46,7 +46,7 @@ static inline bool isInISR(void)
* \brief Reads the on-chip temperature sensor, returning the temperature in degrees C
* with a resolution of 0.25 degrees.
*/
float readCPUTemperature();
float readCPUTemperature( void );
#ifdef __cplusplus
}
+1 -1
View File
@@ -122,7 +122,7 @@ extern void analogSampleTime(uint8_t sTime);
* nrf52 product pecification.
*
*/
extern void analogCalibrateOffset();
extern void analogCalibrateOffset( void );
extern void analogOutputInit( void ) ;
+1 -1
View File
@@ -284,7 +284,7 @@ uint32_t analogReadVDD( void )
return analogRead_internal(SAADC_CH_PSELP_PSELP_VDD);
}
analogCalibrateOffset()
void analogCalibrateOffset( void )
{
// Enable the SAADC
NRF_SAADC->ENABLE = 0x01;