summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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[]) {