Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4b647d00
Commit
4b647d00
authored
Mar 17, 2017
by
devsaurus
Browse files
Remove IRAM requirement from gpio/single_pin_isr
parent
fe11abde
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/gpio.c
View file @
4b647d00
...
...
@@ -58,7 +58,7 @@ static int check_err (lua_State *L, esp_err_t err)
// TODO: can/should we attempt to guard against task q overflow?
_Static_assert
(
GPIO_PIN_COUNT
<
256
,
"task post encoding assumes < 256 gpios"
);
static
void
IRAM_ATTR
single_pin_isr
(
void
*
p
)
static
void
single_pin_isr
(
void
*
p
)
{
gpio_num_t
gpio_num
=
(
gpio_num_t
)
p
;
gpio_intr_disable
(
gpio_num
);
...
...
@@ -226,7 +226,7 @@ static int nodemcu_gpio_init (lua_State *L)
{
cb_task
=
task_get_id
(
nodemcu_gpio_callback_task
);
check_err
(
L
,
gpio_install_isr_service
(
ESP_INTR_FLAG_LOWMED
|
ESP_INTR_FLAG_IRAM
));
gpio_install_isr_service
(
ESP_INTR_FLAG_LOWMED
));
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment