diff --git a/cores/nRF5/wiring.c b/cores/nRF5/wiring.c index 1e4c465a..8ae5770e 100644 --- a/cores/nRF5/wiring.c +++ b/cores/nRF5/wiring.c @@ -145,7 +145,7 @@ void systemOff(uint32_t pin, uint8_t wake_logic) } -float readCPUTemperature() +float readCPUTemperature( void ) { uint8_t en; int32_t temp; diff --git a/cores/nRF5/wiring.h b/cores/nRF5/wiring.h index 279abfcf..e1388aed 100644 --- a/cores/nRF5/wiring.h +++ b/cores/nRF5/wiring.h @@ -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 } diff --git a/cores/nRF5/wiring_analog.h b/cores/nRF5/wiring_analog.h index 05981a8d..e4e3e325 100644 --- a/cores/nRF5/wiring_analog.h +++ b/cores/nRF5/wiring_analog.h @@ -122,7 +122,7 @@ extern void analogSampleTime(uint8_t sTime); * nrf52 product pecification. * */ -extern void analogCalibrateOffset(); +extern void analogCalibrateOffset( void ); extern void analogOutputInit( void ) ; diff --git a/cores/nRF5/wiring_analog_nRF52.c b/cores/nRF5/wiring_analog_nRF52.c index 1b3eaa02..e7dde3f3 100644 --- a/cores/nRF5/wiring_analog_nRF52.c +++ b/cores/nRF5/wiring_analog_nRF52.c @@ -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;