diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-10-15 09:07:12 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-10-15 09:07:12 -0400 |
| commit | a0d18ac4e6c777a61e576df002ab48b6b1a83574 (patch) | |
| tree | 63975677f4cc1699a7541d302136a65083917ed8 | |
| parent | eca73436c9901d54384bd8aa445b0dd70dfae52a (diff) | |
add dummy common_hal_mcu_processor_get_voltage() for spresense
| m--------- | lib/tinyusb | 0 | ||||
| -rw-r--r-- | ports/cxd56/common-hal/microcontroller/Processor.c | 8 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/tinyusb b/lib/tinyusb -Subproject c42edc080cb61d4af8015df6c1d404273b3a5bf +Subproject e413c9efa303d70de019a91aa415384fe80ca78 diff --git a/ports/cxd56/common-hal/microcontroller/Processor.c b/ports/cxd56/common-hal/microcontroller/Processor.c index 355ee01df..3e6fc3b8a 100644 --- a/ports/cxd56/common-hal/microcontroller/Processor.c +++ b/ports/cxd56/common-hal/microcontroller/Processor.c @@ -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[]) { |
