Commit 38cc84d2 authored by Johny Mattsson's avatar Johny Mattsson
Browse files

Removed gpio pulldown references.

The ESP never supported internal pulldowns, and the SDK now matches reality.
parent f1552605
...@@ -55,20 +55,13 @@ int platform_gpio_mode( unsigned pin, unsigned mode, unsigned pull ) ...@@ -55,20 +55,13 @@ int platform_gpio_mode( unsigned pin, unsigned mode, unsigned pull )
switch(pull){ switch(pull){
case PLATFORM_GPIO_PULLUP: case PLATFORM_GPIO_PULLUP:
PIN_PULLDWN_DIS(pin_mux[pin]);
PIN_PULLUP_EN(pin_mux[pin]); PIN_PULLUP_EN(pin_mux[pin]);
break; break;
case PLATFORM_GPIO_PULLDOWN:
PIN_PULLUP_DIS(pin_mux[pin]);
PIN_PULLDWN_EN(pin_mux[pin]);
break;
case PLATFORM_GPIO_FLOAT: case PLATFORM_GPIO_FLOAT:
PIN_PULLUP_DIS(pin_mux[pin]); PIN_PULLUP_DIS(pin_mux[pin]);
PIN_PULLDWN_DIS(pin_mux[pin]);
break; break;
default: default:
PIN_PULLUP_DIS(pin_mux[pin]); PIN_PULLUP_DIS(pin_mux[pin]);
PIN_PULLDWN_DIS(pin_mux[pin]);
break; break;
} }
...@@ -197,7 +190,6 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari ...@@ -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_74880:
case BIT_RATE_115200: case BIT_RATE_115200:
case BIT_RATE_230400: case BIT_RATE_230400:
case BIT_RATE_256000:
case BIT_RATE_460800: case BIT_RATE_460800:
case BIT_RATE_921600: case BIT_RATE_921600:
case BIT_RATE_1843200: case BIT_RATE_1843200:
......
...@@ -27,7 +27,6 @@ uint8_t platform_key_led( uint8_t level); ...@@ -27,7 +27,6 @@ uint8_t platform_key_led( uint8_t level);
// GPIO subsection // GPIO subsection
#define PLATFORM_GPIO_FLOAT 0 #define PLATFORM_GPIO_FLOAT 0
#define PLATFORM_GPIO_PULLUP 1 #define PLATFORM_GPIO_PULLUP 1
#define PLATFORM_GPIO_PULLDOWN 2
#define PLATFORM_GPIO_INT 2 #define PLATFORM_GPIO_INT 2
#define PLATFORM_GPIO_OUTPUT 1 #define PLATFORM_GPIO_OUTPUT 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment