[fix][pmu] remove unused code

This commit is contained in:
jzlv 2023-09-11 20:00:43 +08:00
parent 8c55a6e009
commit babac132ca
8 changed files with 8 additions and 44 deletions

View File

@ -4,11 +4,6 @@ include(proj.conf)
find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})
# sdk_add_compile_definitions(-DBL_WIFI_LP_FW)
sdk_add_compile_definitions(-DPM_PDS_LDO_LEVEL_DEFAULT=10)
# sdk_add_compile_definitions(-DLPFW_LOG_EN=0)
sdk_set_main_file(main.c)
sdk_add_include_directories(.)
project(hbn_rtc)

View File

@ -1,21 +1,7 @@
#include "bflb_mtimer.h"
#include "board.h"
#include "log.h"
#include "bl616_common.h"
#include "bl616_glb.h"
#include "bl616_pds.h"
#include "bl616_hbn.h"
#include "bl616_aon.h"
#include "bl616_pm.h"
#include "bflb_uart.h"
#if (PM_PDS_LDO_LEVEL_DEFAULT == 8)
#include "bl_lp.h"
bl_lp_hbn_fw_cfg_t hbn_test_cfg={
.hbn_sleep_cnt=32768*10,
.hbn_level=PM_HBN_LEVEL_0,
};
#endif
int main(void)
{
@ -24,17 +10,9 @@ int main(void)
printf("enter hbn mode\r\n");
bflb_mtimer_delay_ms(100);
#if (PM_PDS_LDO_LEVEL_DEFAULT == 8)
printf("hbn_pattern:0x%08x\r\n",*((volatile uint32_t *)0x20010300));
/* Wake up every 1 seconds by hb0 */
pm_hbn_mode_enter(PM_HBN_LEVEL_0, 32768*1);
hal_pm_ldo11_use_ext_dcdc();
bl_lp_hbn_init(0,0,1,0);
bl_lp_hbn_enter(&hbn_test_cfg);
#else
/* Wake up every 10 seconds by hb0 */
pm_hbn_mode_enter(PM_HBN_LEVEL_0, 32768*10);
#endif
while (1) {
}
}

View File

@ -1 +0,0 @@
# set(CONFIG_PM 1)

View File

@ -4,12 +4,8 @@ include(proj.conf)
find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})
sdk_add_compile_definitions(-DBL_WIFI_LP_FW)
sdk_add_compile_definitions(-DPM_PDS_LDO_LEVEL_DEFAULT=8)
sdk_add_compile_definitions(-DLPFW_LOG_EN=0)
sdk_add_compile_definitions(-DPM_PDS_LDO_LEVEL_DEFAULT=10)
sdk_set_main_file(main.c)
sdk_add_include_directories(.)
project(pds_io_wakeup)

View File

@ -1,13 +1,12 @@
#include "bflb_mtimer.h"
#include "board.h"
#include "log.h"
#include "bl616_common.h"
#include "bl616_glb.h"
#include "bl616_pds.h"
#include "bl616_hbn.h"
#include "bl616_aon.h"
#include "bl616_pm.h"
#include "bflb_uart.h"
#define BL_LP_IO_RES_PULL_UP 1
#define BL_LP_IO_RES_PULL_DOWN 2
#define BL_LP_IO_RES_NONE 3

View File

@ -1,3 +0,0 @@
set(CONFIG_VLIBC 0)
set(CONFIG_BFLOG 0)
set(CONFIG_PM 1)

View File

@ -4,6 +4,8 @@ include(proj.conf)
find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})
sdk_add_compile_definitions(-DPM_PDS_LDO_LEVEL_DEFAULT=10)
sdk_set_main_file(main.c)
project(pds_rtc)

View File

@ -1,13 +1,11 @@
#include "bflb_mtimer.h"
#include "board.h"
#include "log.h"
#include "bl616_common.h"
#include "bl616_glb.h"
#include "bl616_pds.h"
#include "bl616_hbn.h"
#include "bl616_aon.h"
#include "bl616_pm.h"
#include "bflb_uart.h"
int main(void)
{
@ -26,8 +24,8 @@ int main(void)
printf("enter pds mode\r\n");
bflb_mtimer_delay_ms(100);
/* Wake up every 10 seconds by pds15 */
pm_pds_mode_enter(PM_PDS_LEVEL_15, 32768*10);
/* Wake up every 1 seconds by pds15 */
pm_pds_mode_enter(PM_PDS_LEVEL_15, 32768*1);
while (1) {
}