Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
ffc914da
Unverified
Commit
ffc914da
authored
Oct 29, 2017
by
Terry Ellison
Committed by
GitHub
Oct 29, 2017
Browse files
Merge pull request #2152 from pjsg/fix-no-int
Make it build without INTERRUPT_ENABLE
parents
4a914644
f17b5ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/gpio.c
View file @
ffc914da
...
@@ -132,7 +132,13 @@ static int lgpio_mode( lua_State* L )
...
@@ -132,7 +132,13 @@ static int lgpio_mode( lua_State* L )
NODE_DBG
(
"pin,mode,pullup= %d %d %d
\n
"
,
pin
,
mode
,
pullup
);
NODE_DBG
(
"pin,mode,pullup= %d %d %d
\n
"
,
pin
,
mode
,
pullup
);
NODE_DBG
(
"Pin data at mode: %d %08x, %d %d %d, %08x
\n
"
,
NODE_DBG
(
"Pin data at mode: %d %08x, %d %d %d, %08x
\n
"
,
pin
,
pin_mux
[
pin
],
pin_num
[
pin
],
pin_func
[
pin
],
pin_int_type
[
pin
],
gpio_cb_ref
[
pin
]);
pin
,
pin_mux
[
pin
],
pin_num
[
pin
],
pin_func
[
pin
],
#ifdef GPIO_INTERRUPT_ENABLE
pin_int_type
[
pin
],
gpio_cb_ref
[
pin
]
#else
0
,
0
#endif
);
#ifdef GPIO_INTERRUPT_ENABLE
#ifdef GPIO_INTERRUPT_ENABLE
if
(
mode
!=
INTERRUPT
){
// disable interrupt
if
(
mode
!=
INTERRUPT
){
// disable interrupt
...
...
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