From 16d2bc9cc097da10dcadd2fb7425e20da4834a3a Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 4 Sep 2024 20:51:36 +0200 Subject: power driver fix --- fw/fe310/eos/soc/pwr.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'fw/fe310/eos/soc/pwr.c') diff --git a/fw/fe310/eos/soc/pwr.c b/fw/fe310/eos/soc/pwr.c index 970db8b..db9f273 100644 --- a/fw/fe310/eos/soc/pwr.c +++ b/fw/fe310/eos/soc/pwr.c @@ -6,8 +6,6 @@ #include "eos.h" #include "timer.h" -#include "dev/flash.h" -#include "dev/net.h" #include "pwr.h" @@ -34,18 +32,9 @@ uint8_t eos_pwr_reset_cause(void) { return (AON_REG(AON_PMUCAUSE) >> 8) & 0xff; } -int eos_pwr_sleep(void) { - int rv; - - rv = eos_net_sleep(1000); - if (rv) return rv; - - eos_flash_norm(); - +void eos_pwr_sleep(void) { AON_REG(AON_PMUKEY) = 0x51F15E; AON_REG(AON_PMUSLEEP) = 1; - - return EOS_OK; } void eos_pwr_wake_at(uint32_t msec) { -- cgit v1.2.3