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
38cc84d2
Commit
38cc84d2
authored
Oct 01, 2015
by
Johny Mattsson
Browse files
Removed gpio pulldown references.
The ESP never supported internal pulldowns, and the SDK now matches reality.
parent
f1552605
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/platform/platform.c
View file @
38cc84d2
...
...
@@ -55,20 +55,13 @@ int platform_gpio_mode( unsigned pin, unsigned mode, unsigned pull )
switch
(
pull
){
case
PLATFORM_GPIO_PULLUP
:
PIN_PULLDWN_DIS
(
pin_mux
[
pin
]);
PIN_PULLUP_EN
(
pin_mux
[
pin
]);
break
;
case
PLATFORM_GPIO_PULLDOWN
:
PIN_PULLUP_DIS
(
pin_mux
[
pin
]);
PIN_PULLDWN_EN
(
pin_mux
[
pin
]);
break
;
case
PLATFORM_GPIO_FLOAT
:
PIN_PULLUP_DIS
(
pin_mux
[
pin
]);
PIN_PULLDWN_DIS
(
pin_mux
[
pin
]);
break
;
default:
PIN_PULLUP_DIS
(
pin_mux
[
pin
]);
PIN_PULLDWN_DIS
(
pin_mux
[
pin
]);
break
;
}
...
...
@@ -197,7 +190,6 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari
case
BIT_RATE_74880
:
case
BIT_RATE_115200
:
case
BIT_RATE_230400
:
case
BIT_RATE_256000
:
case
BIT_RATE_460800
:
case
BIT_RATE_921600
:
case
BIT_RATE_1843200
:
...
...
app/platform/platform.h
View file @
38cc84d2
...
...
@@ -27,7 +27,6 @@ uint8_t platform_key_led( uint8_t level);
// GPIO subsection
#define PLATFORM_GPIO_FLOAT 0
#define PLATFORM_GPIO_PULLUP 1
#define PLATFORM_GPIO_PULLDOWN 2
#define PLATFORM_GPIO_INT 2
#define PLATFORM_GPIO_OUTPUT 1
...
...
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