File tree Expand file tree Collapse file tree 10 files changed +203
-176
lines changed
common-hal/microcontroller
shared-bindings/microcontroller Expand file tree Collapse file tree 10 files changed +203
-176
lines changed Original file line number Diff line number Diff line change @@ -2149,6 +2149,10 @@ msgstr ""
2149
2149
msgid "Set pin count must be between 1 and 5"
2150
2150
msgstr ""
2151
2151
2152
+ #: shared-bindings/microcontroller/Processor.c
2153
+ msgid "Settable Clock Not Implemented for Your Board"
2154
+ msgstr ""
2155
+
2152
2156
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
2153
2157
msgid "Side set pin count must be between 1 and 5"
2154
2158
msgstr ""
@@ -3019,7 +3023,7 @@ msgstr ""
3019
3023
msgid "complex values not supported"
3020
3024
msgstr ""
3021
3025
3022
- #: extmod/moduzlib.c shared-module/zlib/DecompIO.c
3026
+ #: extmod/moduzlib.c
3023
3027
msgid "compression header"
3024
3028
msgstr ""
3025
3029
Original file line number Diff line number Diff line change 20
20
#define CIRCUITPY_USB_DEVICE_INSTANCE 0
21
21
#define CIRCUITPY_USB_HOST_INSTANCE 1
22
22
23
- #define HAS_SETTABLE_CLOCK 1
23
+ #define HAS_SETTABLE_CLOCK 1
Original file line number Diff line number Diff line change 17
17
#define DEFAULT_UART_BUS_RX (&pin_GPIO_AD_B0_03)
18
18
#define DEFAULT_UART_BUS_TX (&pin_GPIO_AD_B0_02)
19
19
20
- #define HAS_SETTABLE_CLOCK 1
20
+ #define HAS_SETTABLE_CLOCK 1
Original file line number Diff line number Diff line change 20
20
#define CIRCUITPY_USB_DEVICE_INSTANCE 0
21
21
#define CIRCUITPY_USB_HOST_INSTANCE 1
22
22
23
- #define HAS_SETTABLE_CLOCK 1
23
+ #define HAS_SETTABLE_CLOCK 1
Original file line number Diff line number Diff line change 25
25
* THE SOFTWARE.
26
26
*/
27
27
28
- //https://raw.githubusercontent.com/adafruit/circuitpython/main/ports/mimxrt10xx/common-hal/microcontroller/Processor.c
28
+ // https://raw.githubusercontent.com/adafruit/circuitpython/main/ports/mimxrt10xx/common-hal/microcontroller/Processor.c
29
29
30
30
#include <math.h>
31
31
@@ -54,7 +54,7 @@ float common_hal_mcu_processor_get_temperature(void) {
54
54
55
55
uint32_t common_hal_mcu_processor_set_sys_clock (mcu_processor_obj_t * self ,
56
56
uint32_t frequency ) {
57
- SystemCoreClock = setarmclock (frequency );
57
+ SystemCoreClock = setarmclock (frequency );
58
58
return SystemCoreClock ;
59
59
}
60
60
@@ -84,4 +84,4 @@ void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
84
84
85
85
mcu_reset_reason_t common_hal_mcu_processor_get_reset_reason (void ) {
86
86
return RESET_REASON_UNKNOWN ;
87
- }
87
+ }
Original file line number Diff line number Diff line change 36
36
typedef struct {
37
37
mp_obj_base_t base ;
38
38
// Stores no state currently.
39
- uint32_t frequency ;
39
+ uint32_t frequency ;
40
40
} mcu_processor_obj_t ;
41
41
42
42
#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
You can’t perform that action at this time.
0 commit comments