From 7d03a941be6e9226e71cb5f5b4f7949e06bbfb02 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 9 Dec 2021 23:50:58 +0100 Subject: improved init process --- fw/fe310/eos/net.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'fw/fe310/eos/net.c') diff --git a/fw/fe310/eos/net.c b/fw/fe310/eos/net.c index 4d9aadf..e65bcd2 100644 --- a/fw/fe310/eos/net.c +++ b/fw/fe310/eos/net.c @@ -9,7 +9,7 @@ #include "interrupt.h" #include "event.h" #include "timer.h" -#include "power.h" +#include "pwr.h" #include "board.h" @@ -332,16 +332,12 @@ int eos_net_init(uint8_t wakeup_cause) { GPIO_REG(GPIO_INPUT_EN) |= (1 << NET_PIN_CTS); GPIO_REG(GPIO_OUTPUT_EN) &= ~(1 << NET_PIN_CTS); - GPIO_REG(GPIO_PULLUP_EN) &= ~(1 << NET_PIN_CTS); - GPIO_REG(GPIO_OUTPUT_XOR) &= ~(1 << NET_PIN_CTS); GPIO_REG(GPIO_RISE_IE) |= (1 << NET_PIN_CTS); eos_intr_set(INT_GPIO_BASE + NET_PIN_CTS, IRQ_PRIORITY_NET_CTS, net_handle_cts); GPIO_REG(GPIO_INPUT_EN) |= (1 << NET_PIN_RTS); GPIO_REG(GPIO_OUTPUT_EN) &= ~(1 << NET_PIN_RTS); - GPIO_REG(GPIO_PULLUP_EN) &= ~(1 << NET_PIN_RTS); - GPIO_REG(GPIO_OUTPUT_XOR) &= ~(1 << NET_PIN_RTS); GPIO_REG(GPIO_RISE_IE) |= (1 << NET_PIN_RTS); GPIO_REG(GPIO_FALL_IE) |= (1 << NET_PIN_RTS); -- cgit v1.2.3