File tree Expand file tree Collapse file tree 18 files changed +5
-41
lines changed Expand file tree Collapse file tree 18 files changed +5
-41
lines changed Original file line number Diff line number Diff line change 27
27
#include "py/runtime.h"
28
28
29
29
#include "shared-bindings/alarm/pin/PinAlarm.h"
30
- #include "shared-bindings/microcontroller/__init__.h"
31
- #include "shared-bindings/microcontroller/Pin.h"
32
30
33
31
#include "peripherals/exti.h"
34
32
Original file line number Diff line number Diff line change 28
28
29
29
#include "shared-bindings/alarm/time/TimeAlarm.h"
30
30
#include "shared-bindings/time/__init__.h"
31
- #include "supervisor/port.h"
32
31
#include "peripherals/rtc.h"
33
32
34
33
#include STM32_HAL_H
Original file line number Diff line number Diff line change 28
28
#include <stdint.h>
29
29
#include <string.h>
30
30
31
+
31
32
#include "py/mperrno.h"
32
33
#include "py/runtime.h"
33
34
35
+
36
+
34
37
#include "shared-bindings/analogio/AnalogOut.h"
35
38
#include "shared-bindings/microcontroller/Pin.h"
36
39
#include "supervisor/shared/translate/translate.h"
Original file line number Diff line number Diff line change 30
30
#include "py/mperrno.h"
31
31
#include "py/runtime.h"
32
32
33
- #include "shared-bindings/microcontroller/__init__.h"
34
33
#include "supervisor/shared/translate/translate.h"
35
34
#include "shared-bindings/microcontroller/Pin.h"
36
35
Original file line number Diff line number Diff line change 28
28
#include <string.h>
29
29
30
30
#include "shared-bindings/busio/SPI.h"
31
- #include "py/mperrno.h"
32
31
#include "py/runtime.h"
33
32
34
- #include "shared-bindings/microcontroller/__init__.h"
35
- #include "supervisor/board.h"
36
33
#include "supervisor/shared/translate/translate.h"
37
34
#include "shared-bindings/microcontroller/Pin.h"
38
35
Original file line number Diff line number Diff line change 27
27
28
28
#include "shared-bindings/digitalio/DigitalInOut.h"
29
29
#include "shared-bindings/microcontroller/Pin.h"
30
- #include "py/runtime.h"
31
- #include "supervisor/shared/translate/translate.h"
32
30
33
31
// The HAL is sparse on obtaining register information, so we use the LLs here.
34
32
#if (CPY_STM32H7 )
Original file line number Diff line number Diff line change 26
26
*/
27
27
28
28
#include "shared-bindings/microcontroller/Pin.h"
29
- #include "shared-bindings/digitalio/DigitalInOut.h"
30
29
31
- #include "py/mphal.h"
32
30
#include "pins.h"
33
31
34
32
#if defined(TFBGA216 )
Original file line number Diff line number Diff line change 28
28
#include <stdint.h>
29
29
#include <string.h>
30
30
#include "py/mpconfig.h"
31
- #include "py/gc.h"
32
31
#include "py/runtime.h"
33
32
#include "shared-bindings/microcontroller/__init__.h"
34
33
#include "shared-bindings/microcontroller/Pin.h"
Original file line number Diff line number Diff line change 29
29
#include <stdint.h>
30
30
31
31
#include "py/mpconfig.h"
32
- #include "py/gc.h"
33
- #include "py/runtime.h"
34
32
#include "shared-bindings/pulseio/PulseOut.h"
35
33
#include "shared-bindings/pwmio/PWMOut.h"
36
- #include "supervisor/shared/translate/translate.h"
37
34
38
35
#include STM32_HAL_H
39
- #include "shared-bindings/microcontroller/Pin.h"
40
36
#include "timers.h"
41
37
42
38
// A single timer is shared amongst all PulseOut objects under the assumption that
Original file line number Diff line number Diff line change 31
31
#include "shared-bindings/pwmio/PWMOut.h"
32
32
#include "supervisor/shared/translate/translate.h"
33
33
34
- #include "shared-bindings/microcontroller/__init__.h"
35
34
#include STM32_HAL_H
36
35
#include "shared-bindings/microcontroller/Pin.h"
37
36
Original file line number Diff line number Diff line change 26
26
27
27
#include <stdio.h>
28
28
29
- #include "py/obj.h"
30
29
#include "py/runtime.h"
31
30
#include "shared/timeutils/timeutils.h"
32
- #include "shared-bindings/rtc/__init__.h"
33
- #include "common-hal/rtc/RTC.h"
34
31
#include "shared-bindings/rtc/RTC.h"
35
- #include "supervisor/port.h"
36
32
#include "supervisor/shared/translate/translate.h"
37
33
#include "peripherals/rtc.h"
38
34
Original file line number Diff line number Diff line change 28
28
#include <string.h>
29
29
30
30
#include "py/mphal.h"
31
- #include "py/mpstate.h"
32
- #include "py/gc.h"
33
31
34
32
#include "shared-bindings/microcontroller/__init__.h"
35
- #include "supervisor/shared/tick.h"
36
33
37
34
void mp_hal_delay_us (mp_uint_t delay ) {
38
35
common_hal_mcu_delay_us (delay );
Original file line number Diff line number Diff line change 26
26
27
27
#include <stdbool.h>
28
28
#include "py/mpconfig.h"
29
- #include "py/gc.h"
30
- #include "py/obj.h"
31
- #include "py/runtime.h"
32
29
33
30
#include "peripherals/exti.h"
34
31
@@ -128,7 +125,7 @@ void EXTI4_IRQHandler(void) {
128
125
#endif
129
126
void EXTI9_5_IRQHandler (void ) {
130
127
uint32_t pending = EXTI -> PR ;
131
- for (uint i = 5 ; i <= 9 ; i ++ ) {
128
+ for (uint8_t i = 5 ; i <= 9 ; i ++ ) {
132
129
if (pending & (1 << i )) {
133
130
stm_exti_callback [i ](i );
134
131
}
@@ -137,7 +134,7 @@ void EXTI9_5_IRQHandler(void) {
137
134
138
135
void EXTI15_10_IRQHandler (void ) {
139
136
uint32_t pending = EXTI -> PR ;
140
- for (uint i = 10 ; i <= 15 ; i ++ ) {
137
+ for (uint8_t i = 10 ; i <= 15 ; i ++ ) {
141
138
if (pending & (1 << i )) {
142
139
stm_exti_callback [i ](i );
143
140
}
Original file line number Diff line number Diff line change 29
29
#include STM32_HAL_H
30
30
31
31
#include "py/mpconfig.h"
32
- #include "py/gc.h"
33
- #include "py/obj.h"
34
- #include "py/runtime.h"
35
32
#include "shared/timeutils/timeutils.h"
36
33
37
34
// Default period for ticks is 1/1024 second
Original file line number Diff line number Diff line change 26
26
#include "timers.h"
27
27
28
28
#include "py/mpconfig.h"
29
- #include "py/gc.h"
30
29
#include "py/obj.h"
31
30
#include "py/runtime.h"
32
31
#include "supervisor/shared/translate/translate.h"
Original file line number Diff line number Diff line change 29
29
#include <stdint.h>
30
30
#include <string.h>
31
31
32
- #include "extmod/vfs.h"
33
- #include "extmod/vfs_fat.h"
34
- #include "py/mphal.h"
35
32
#include "py/obj.h"
36
- #include "py/runtime.h"
37
- #include "lib/oofatfs/ff.h"
38
33
#include "supervisor/flash.h"
39
34
#include "supervisor/shared/safe_mode.h"
40
35
Original file line number Diff line number Diff line change 29
29
#include "supervisor/background_callback.h"
30
30
#include "supervisor/board.h"
31
31
#include "supervisor/port.h"
32
- #include "shared/timeutils/timeutils.h"
33
32
34
33
#include "common-hal/microcontroller/Pin.h"
35
34
#include "shared-bindings/microcontroller/__init__.h"
Original file line number Diff line number Diff line change 27
27
28
28
29
29
#include "supervisor/usb.h"
30
- #include "shared/runtime/interrupt_char.h"
31
30
#include "shared/readline/readline.h"
32
- #include "lib/tinyusb/src/device/usbd.h"
33
31
34
32
#include "py/mpconfig.h"
35
33
You can’t perform that action at this time.
0 commit comments