add dummy common_hal_mcu_processor_get_voltage() for spresense

crypto-aes
Dan Halbert 3 years ago
parent eca73436c9
commit a0d18ac4e6

@ -1 +1 @@
Subproject commit c42edc080cb61d4af8015df6c1d404273b3a5bfa
Subproject commit e413c9efa303d70de019a91aa415384fe80ca78f

@ -26,6 +26,8 @@
#include <sys/boardctl.h>
// For NAN: remove when not needed.
#include <math.h>
#include "py/mphal.h"
uint32_t common_hal_mcu_processor_get_frequency(void) {
@ -33,7 +35,11 @@ uint32_t common_hal_mcu_processor_get_frequency(void) {
}
float common_hal_mcu_processor_get_temperature(void) {
return 0;
return NAN;
}
float common_hal_mcu_processor_get_voltage(void) {
return NAN;
}
void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {

Loading…
Cancel
Save