Skip to content

FunctionalInterrupt/ScheduledFunctions should be in a library, not in esp32-hal-gpio #2734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 49 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f938f81
Update Ticker API to compatibility with ESP8266, prepares for co-op l…
dok-net Jun 2, 2019
2030ba0
Fixing Build server complaints
dok-net Jun 2, 2019
108f87f
Fix omitted casts in template member function
dok-net Jun 2, 2019
01dced2
Changes after review
dok-net Jun 4, 2019
aa5d1c0
Expose µs resolution of OS API in Ticker class
dok-net Jun 4, 2019
e069d83
Return Ticker to libraries only for modularity.
dok-net Jun 5, 2019
cc9aa7d
Unify Ticker examples.
dok-net Jun 6, 2019
b6b5afd
Default for LED_BUILTIN
dok-net Jun 6, 2019
2f2b66c
In Ticker, the *scheduled functions become available in another devel…
dok-net Jun 6, 2019
28f71f3
Astyle from ESP8266
dok-net Jun 6, 2019
af944b4
Add hooks for sketches/libraries to perform work on each yield() and …
dok-net Jun 6, 2019
e7d5411
Add Schedule.(h|cpp) from ESP8266 to run off loopTask.
dok-net May 5, 2019
37cebc1
Updated with latest sources and ESP8266/ESP32 portability.
dok-net May 28, 2019
bfe8739
Misordering resulting from merge fixed.
dok-net May 28, 2019
b5b6dc9
Yield in scheduling loop to prevent wdt elapsing.
dok-net May 29, 2019
65d9467
Ticker and Schedule updated from ESP8266 Arduino
dok-net Jun 1, 2019
42d5350
Port Schedule to ESP32.
dok-net Jun 2, 2019
bc62a5a
circular_queue.h with API comments.
dok-net Jun 3, 2019
35018f4
Provide own memory management for Ticker instances to conserve heap.
dok-net Jun 3, 2019
274159b
Use µs resolution in Ticker from Schedule
dok-net Jun 4, 2019
ce691dd
Adapt to ESP32/ESP8266 native ticker resolution.
dok-net Jun 4, 2019
7b5489e
Return Ticker to libraries only for modularity.
dok-net Jun 5, 2019
1355467
Make entry points into sequential cont scheduler weak functions
dok-net Jun 5, 2019
c7fc06c
Move PolledTimeout to own libraries for source code compatibility wit…
dok-net Jun 6, 2019
fda9f1e
Add Schedule.(h|cpp) from ESP8266 to run off loopTask.
dok-net May 5, 2019
562fbcb
Port Schedule to ESP32.
dok-net Jun 2, 2019
487a7b0
Make entry points into sequential cont scheduler weak functions
dok-net Jun 5, 2019
f307262
Add hooks for sketches/libraries to perform work on each yield() and …
dok-net Jun 6, 2019
adcc380
Add Schedule.(h|cpp) from ESP8266 to run off loopTask.
dok-net May 5, 2019
5972c52
Ticker and Schedule updated from ESP8266 Arduino
dok-net Jun 1, 2019
b968905
Remove special support for FunctionalInterrupt from core interrupt ha…
dok-net May 2, 2019
f1416fd
Add supporting function for interrupt arg memory management, linke wi…
dok-net May 2, 2019
549f2ab
Bring back FunctionalInterrupt, and ScheduledFunctions from ESP8266, …
dok-net May 2, 2019
d192d3c
Ridiculous port number mistake.
dok-net May 2, 2019
ad3a24a
Apply astyle to example INO.
dok-net May 2, 2019
e530b68
Remove ScheduledFunctions.(h|cpp), per comment https://github.com/esp…
dok-net May 2, 2019
2768906
Invented void* detachInterruptArg() that returns the argument given i…
dok-net May 3, 2019
4960474
Modified example to showcase how general FunctionalInterrupt uses vio…
dok-net May 3, 2019
a55364c
Direct call or scheduled is either-or.
dok-net May 3, 2019
16cd6ff
While Schedule.cpp is not part of ESP32 core...
dok-net May 3, 2019
cc0183d
Always apply astyle to examples.
dok-net May 3, 2019
896ec6b
Fix renaming for better PR readability.
dok-net May 11, 2019
c9d8753
Properly turn FunctionalInterrupt into integral library
dok-net Jun 2, 2019
260aaaf
remove leftover files
dok-net Jun 2, 2019
f770056
Update to latest ESP8266/ESP32 compatible version
dok-net Jun 2, 2019
41265dd
Proper detach for scheduled ISR example
dok-net Jun 2, 2019
386b6e6
Return Ticker to libraries only for modularity.
dok-net Jun 5, 2019
ef061bc
Fill in empty fields
dok-net Jun 5, 2019
5c46e6d
Bring back FunctionalInterrupt's attachInterrupt()
dok-net Jun 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add supporting function for interrupt arg memory management, linke wi…
…th functional interrupts.
  • Loading branch information
dok-net committed Jun 7, 2019
commit f1416fd0333d05f51dcd1343f23294887b852765
4 changes: 4 additions & 0 deletions cores/esp32/esp32-hal-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ extern void __detachInterrupt(uint8_t pin)
esp_intr_enable(gpio_intr_handle);
}

extern InterruptHandle_t* __getInterruptHandler(uint8_t pin) {
return (pin < GPIO_PIN_COUNT) ? &__pinInterruptHandlers[pin] : NULL;
}


extern void pinMode(uint8_t pin, uint8_t mode) __attribute__ ((weak, alias("__pinMode")));
extern void digitalWrite(uint8_t pin, uint8_t val) __attribute__ ((weak, alias("__digitalWrite")));
Expand Down