Skip to content

Commit df35645

Browse files
committed
Add SAADC offset cal and read CPU temp
1 parent 6227526 commit df35645

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cores/nRF5/wiring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void systemOff(uint32_t pin, uint8_t wake_logic)
145145
}
146146

147147

148-
float readCPUTemperature()
148+
float readCPUTemperature( void )
149149
{
150150
uint8_t en;
151151
int32_t temp;

cores/nRF5/wiring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static inline bool isInISR(void)
4646
* \brief Reads the on-chip temperature sensor, returning the temperature in degrees C
4747
* with a resolution of 0.25 degrees.
4848
*/
49-
float readCPUTemperature();
49+
float readCPUTemperature( void );
5050

5151
#ifdef __cplusplus
5252
}

cores/nRF5/wiring_analog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ extern void analogSampleTime(uint8_t sTime);
122122
* nrf52 product pecification.
123123
*
124124
*/
125-
extern void analogCalibrateOffset();
125+
extern void analogCalibrateOffset( void );
126126

127127
extern void analogOutputInit( void ) ;
128128

cores/nRF5/wiring_analog_nRF52.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ uint32_t analogReadVDD( void )
284284
return analogRead_internal(SAADC_CH_PSELP_PSELP_VDD);
285285
}
286286

287-
analogCalibrateOffset()
287+
void analogCalibrateOffset( void )
288288
{
289289
// Enable the SAADC
290290
NRF_SAADC->ENABLE = 0x01;

0 commit comments

Comments
 (0)