summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-10-15 09:07:12 -0400
committerDan Halbert <halbert@halwitz.org>2019-10-15 09:07:12 -0400
commita0d18ac4e6c777a61e576df002ab48b6b1a83574 (patch)
tree63975677f4cc1699a7541d302136a65083917ed8
parenteca73436c9901d54384bd8aa445b0dd70dfae52a (diff)
add dummy common_hal_mcu_processor_get_voltage() for spresense
m---------lib/tinyusb0
-rw-r--r--ports/cxd56/common-hal/microcontroller/Processor.c8
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[]) {