File tree Expand file tree Collapse file tree 35 files changed +249
-9
lines changed
broadcom/common-hal/microcontroller
espressif/common-hal/microcontroller
common-hal/microcontroller
raspberrypi/common-hal/microcontroller
silabs/common-hal/microcontroller
stm/common-hal/microcontroller Expand file tree Collapse file tree 35 files changed +249
-9
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ float common_hal_mcu_processor_get_temperature(void) {
34
34
}
35
35
36
36
float common_hal_mcu_processor_get_voltage (void ) {
37
- return 1.2f ;
37
+ return NAN ;
38
38
}
39
39
40
40
uint32_t common_hal_mcu_processor_get_frequency (void ) {
Original file line number Diff line number Diff line change 47
47
float common_hal_mcu_processor_get_temperature (void ) {
48
48
float tsens_out ;
49
49
#if defined(CONFIG_IDF_TARGET_ESP32 )
50
- mp_raise_NotImplementedError ( NULL ) ;
50
+ return NAN ;
51
51
#else
52
52
temp_sensor_config_t temp_sensor = TSENS_CONFIG_DEFAULT (); // DEFAULT: range:-10℃ ~ 80℃, error < 1℃.
53
53
temp_sensor_set_config (temp_sensor );
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ float common_hal_mcu_processor_get_temperature(void) {
54
54
55
55
return temp ;
56
56
#else
57
- return 0 ;
57
+ return NAN ;
58
58
#endif
59
59
}
60
60
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1011` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/periph.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1011` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
extern LPI2C_Type * const mcu_i2c_banks [2 ];
31
39
extern const mcu_periph_obj_t mcu_i2c_sda_list [8 ];
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1011` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/pins.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1011` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
31
39
#define FORMAT_PIN (pin_name ) extern const mcu_pin_obj_t pin_##pin_name;
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1015` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/periph.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1015` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
extern LPI2C_Type * const mcu_i2c_banks [2 ];
31
39
extern const mcu_periph_obj_t mcu_i2c_sda_list [2 ];
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1015` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/pins.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1015` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
31
39
#define FORMAT_PIN (pin_name ) extern const mcu_pin_obj_t pin_##pin_name;
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1021` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/periph.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1021` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
extern LPI2C_Type * const mcu_i2c_banks [4 ];
31
39
extern const mcu_periph_obj_t mcu_i2c_sda_list [8 ];
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1021` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/pins.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1021` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
31
39
#define FORMAT_PIN (pin_name ) extern const mcu_pin_obj_t pin_##pin_name;
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1042` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/periph.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1042` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
extern LPI2C_Type * const mcu_i2c_banks [4 ];
31
39
extern const mcu_periph_obj_t mcu_i2c_sda_list [9 ];
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1042` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/pins.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1042` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
31
39
#define FORMAT_PIN (pin_name ) extern const mcu_pin_obj_t pin_##pin_name;
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1052` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/periph.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1052` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
extern LPI2C_Type * const mcu_i2c_banks [4 ];
31
39
extern const mcu_periph_obj_t mcu_i2c_sda_list [9 ];
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1052` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/pins.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1052` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
31
39
#define FORMAT_PIN (pin_name ) extern const mcu_pin_obj_t pin_##pin_name;
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1062` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/periph.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1062` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
extern LPI2C_Type * const mcu_i2c_banks [4 ];
31
39
extern const mcu_periph_obj_t mcu_i2c_sda_list [9 ];
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1062` to update this file.
35
+ */
36
+
29
37
#include "py/obj.h"
30
38
#include "py/mphal.h"
31
39
#include "mimxrt10xx/pins.h"
Original file line number Diff line number Diff line change 26
26
* THE SOFTWARE.
27
27
*/
28
28
29
+ /*
30
+ * This file is autogenerated! Do NOT hand edit it. Instead, edit tools/gen_peripherals_data.py and
31
+ * then rerun the script. You'll need to 1) clone https://github.com/nxp-mcuxpresso/mcux-soc-svd/
32
+ * and 2) download and extract config tools data from https://mcuxpresso.nxp.com/en/select_config_tools_data.
33
+ *
34
+ * Run `python tools/gen_peripherals_data.py <svd dir> <config dir> MIMXRT1062` to update this file.
35
+ */
36
+
29
37
#pragma once
30
38
31
39
#define FORMAT_PIN (pin_name ) extern const mcu_pin_obj_t pin_##pin_name;
You can’t perform that action at this time.
0 commit comments