File tree Expand file tree Collapse file tree 7 files changed +82
-13
lines changed
esp32s2/common-hal/watchdog Expand file tree Collapse file tree 7 files changed +82
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Bug report
3
+ about : Create a report to help us improve
4
+ title : ' '
5
+ labels : ' bug'
6
+ assignees : ' '
7
+
8
+ ---
9
+
10
+ <!-- Thanks! for testing out CircuitPython. Now that you have got a problem...
11
+ you can file a bug report for it. Feel free to modify the below format to better
12
+ suit your issue. :) -->
13
+
14
+ ** Firmware**
15
+
16
+ <!-- Include the version of CircuitPython you're running. You can see it in the
17
+ `boot_out.txt` file, as well as in the REPL. -->
18
+
19
+ ``` python
20
+ Adafruit CircuitPython 6.2 .0- beta.2 on 2021 - 03 - 01 ; Raspberry Pi Pico with rp2040
21
+ ```
22
+
23
+ ** Code/REPL**
24
+
25
+ <!-- Include your code that reproduces the bug here. Try to distill down to the
26
+ minimum possible to reproduce. -->
27
+
28
+ ``` python
29
+ import busio, bitbangio
30
+ i2c = bitbangio.I2C(board.GP1 , board.GP0 )
31
+ ```
32
+
33
+ ** Behavior**
34
+
35
+ <!-- What happens when you run the code above? Include any error messages. -->
36
+
37
+ ``` python
38
+ Traceback (most recent call last):
39
+ File " <stdin>" , line 1 , in < module>
40
+ TimeoutError : Clock stretch too long
41
+ ```
42
+
43
+ ** Description**
44
+
45
+ <!-- Optionally, describe the issue in more detail. Here are some examples: -->
46
+
47
+ - Error while using i2c...
48
+ - Only happens when...
49
+ - might be related to #4291 ...
50
+
51
+ ** Additional Info**
52
+
53
+ <!-- Optionally, add any other information like hardware connection, scope output etc.
54
+ If you have already done some debugging, mention it here. -->
55
+
56
+ Removing [ this] ( url ) line resolves the issue.
Original file line number Diff line number Diff line change
1
+ contact_links :
2
+ - name : Adafruit Forum
3
+ url : https://forums.adafruit.com/
4
+ about : Official Adafruit technical support forum. Good for getting help on getting a project working.
5
+ - name : Adafruit Discord
6
+ url : https://adafru.it/discord
7
+ about : Unofficial chat with many helpful folks and normally prompt replies.
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Feature request
3
+ about : Suggest an idea for this project
4
+ title : ' '
5
+ labels : ' enhancement'
6
+ assignees : ' '
7
+
8
+ ---
9
+
10
+ <!-- We are always adding new features and enhancements to CircuitPython 🚀
11
+ and would love ❤ to see what new challenge you have got for us... 🙂 -->
Original file line number Diff line number Diff line change 150
150
# directories to ignore when looking for source files.
151
151
exclude_patterns = ["**/build*" ,
152
152
".git" ,
153
+ ".github" ,
153
154
".env" ,
154
155
".venv" ,
155
156
".direnv" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ void common_hal_watchdog_feed(watchdog_watchdogtimer_obj_t *self) {
49
49
}
50
50
51
51
void common_hal_watchdog_deinit (watchdog_watchdogtimer_obj_t * self ) {
52
- if (esp_task_wdt_deinit () == ESP_OK ) {
52
+ if (esp_task_wdt_delete ( NULL ) == ESP_OK && esp_task_wdt_deinit () == ESP_OK ) {
53
53
self -> mode = WATCHDOGMODE_NONE ;
54
54
}
55
55
}
Original file line number Diff line number Diff line change 31
31
#include "src/rp2_common/pico_platform/include/pico/platform.h"
32
32
#include "src/rp2040/hardware_regs/include/hardware/regs/intctrl.h"
33
33
34
- static background_callback_t usb_callback ;
35
- static void usb_background_do (void * unused ) {
36
- usb_background ();
37
- }
38
-
39
- static void queue_background (void ) {
40
- background_callback_add (& usb_callback , usb_background_do , NULL );
41
- }
42
-
43
34
void init_usb_hardware (void ) {
44
35
}
45
36
46
37
void post_usb_init (void ) {
38
+ irq_set_enabled (USBCTRL_IRQ , false);
39
+
47
40
irq_handler_t usb_handler = irq_get_exclusive_handler (USBCTRL_IRQ );
48
41
if (usb_handler ) {
49
42
irq_remove_handler (USBCTRL_IRQ , usb_handler );
50
- irq_add_shared_handler (USBCTRL_IRQ , usb_handler , PICO_DEFAULT_IRQ_PRIORITY );
51
43
}
52
- irq_add_shared_handler (USBCTRL_IRQ , queue_background , PICO_LOWEST_IRQ_PRIORITY );
44
+ irq_set_exclusive_handler (USBCTRL_IRQ , usb_irq_handler );
45
+
46
+ irq_set_enabled (USBCTRL_IRQ , true);
53
47
}
You can’t perform that action at this time.
0 commit comments