CYSBSYSKIT_01 targets.json and bsp update.

pull/12603/head
Dustin Crossman 2020-03-10 09:52:52 -07:00
parent 05776d6f88
commit 539b78fae0
5 changed files with 11 additions and 77 deletions

View File

@ -26,40 +26,3 @@
#include "cycfg_system.h" #include "cycfg_system.h"
#define CY_CFG_PWR_ENABLED 1
#define CY_CFG_PWR_INIT 1
#define CY_CFG_PWR_USING_PMIC 0
#define CY_CFG_PWR_VBACKUP_USING_VDDD 0
#define CY_CFG_PWR_LDO_VOLTAGE CY_SYSPM_LDO_VOLTAGE_LP
#define CY_CFG_PWR_USING_ULP 0
__STATIC_INLINE void init_cycfg_power(void)
{
/* Reset the Backup domain on POR, XRES, BOD only if Backup domain is supplied by VDDD */
#if (CY_CFG_PWR_VBACKUP_USING_VDDD)
if (0u == Cy_SysLib_GetResetReason() /* POR, XRES, or BOD */)
{
Cy_SysLib_ResetBackupDomain();
Cy_SysClk_IloDisable();
Cy_SysClk_IloInit();
}
#else /* Dedicated Supply */
Cy_SysPm_BackupSetSupply(CY_SYSPM_VDDBACKUP_VBACKUP);
#endif /* CY_CFG_PWR_VBACKUP_USING_VDDD */
/* Configure core regulator */
#if CY_CFG_PWR_USING_LDO
Cy_SysPm_LdoSetVoltage(CY_SYSPM_LDO_VOLTAGE_LP);
Cy_SysPm_LdoSetMode(CY_SYSPM_LDO_MODE_NORMAL);
#else
Cy_SysPm_BuckEnable(CY_SYSPM_BUCK_OUT1_VOLTAGE_LP);
#endif /* CY_CFG_PWR_USING_LDO */
/* Configure PMIC */
Cy_SysPm_UnlockPmic();
#if CY_CFG_PWR_USING_PMIC
Cy_SysPm_PmicEnableOutput();
#else
Cy_SysPm_PmicDisableOutput();
#endif /* CY_CFG_PWR_USING_PMIC */
}

View File

@ -28,29 +28,11 @@
#define CYCFG_SYSTEM_H #define CYCFG_SYSTEM_H
#include "cycfg_notices.h" #include "cycfg_notices.h"
#include "cy_syspm.h"
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
#define cpuss_0_dap_0_ENABLED 1U #define cpuss_0_dap_0_ENABLED 1U
#define srss_0_power_0_ENABLED 1U
#define CY_CFG_PWR_MODE_LP 0x01UL
#define CY_CFG_PWR_MODE_ULP 0x02UL
#define CY_CFG_PWR_MODE_ACTIVE 0x04UL
#define CY_CFG_PWR_MODE_SLEEP 0x08UL
#define CY_CFG_PWR_MODE_DEEPSLEEP 0x10UL
#define CY_CFG_PWR_SYS_IDLE_MODE CY_CFG_PWR_MODE_SLEEP
#define CY_CFG_PWR_SYS_ACTIVE_MODE CY_CFG_PWR_MODE_LP
#define CY_CFG_PWR_DEEPSLEEP_LATENCY 0UL
#define CY_CFG_PWR_USING_LDO 1
#define CY_CFG_PWR_VDDA_MV 3300
#define CY_CFG_PWR_VDDD_MV 1800
#define CY_CFG_PWR_VBACKUP_MV 1800
#define CY_CFG_PWR_VDD_NS_MV 1800
#define CY_CFG_PWR_VDDIO0_MV 1800
#define CY_CFG_PWR_VDDIO1_MV 3300
#if defined(__cplusplus) #if defined(__cplusplus)

View File

@ -84,23 +84,6 @@
<Block location="ioss[0].port[8].pin[7]"> <Block location="ioss[0].port[8].pin[7]">
<Alias value="CYBSP_CSD_SLD4"/> <Alias value="CYBSP_CSD_SLD4"/>
</Block> </Block>
<Block location="srss[0].power[0]">
<Personality template="mxs40power" version="1.2">
<Param id="pwrMode" value="LDO_1_1"/>
<Param id="actPwrMode" value="LP"/>
<Param id="coreRegulator" value="CY_SYSPM_LDO_MODE_NORMAL"/>
<Param id="pmicEnable" value="false"/>
<Param id="backupSrc" value="DEDICATED"/>
<Param id="idlePwrMode" value="CY_CFG_PWR_MODE_SLEEP"/>
<Param id="deepsleepLatency" value="0"/>
<Param id="vddaMv" value="3300"/>
<Param id="vdddMv" value="1800"/>
<Param id="vBackupMv" value="1800"/>
<Param id="vddNsMv" value="1800"/>
<Param id="vddio0Mv" value="1800"/>
<Param id="vddio1Mv" value="3300"/>
</Personality>
</Block>
</BlockConfig> </BlockConfig>
<Netlist> <Netlist>
<Net> <Net>
@ -117,10 +100,6 @@
</Net> </Net>
</Netlist> </Netlist>
</Device> </Device>
<Device mpn="CYW43012TC0KFFBH">
<BlockConfig/>
<Netlist/>
</Device>
</Devices> </Devices>
<Libraries/> <Libraries/>
<ConfiguratorData/> <ConfiguratorData/>

View File

@ -31,6 +31,10 @@
#include "cyhal_hwmgr.h" #include "cyhal_hwmgr.h"
#endif #endif
#if !defined (CY_CFG_PWR_SYS_IDLE_MODE)
#include "mbed_power_mgmt.h"
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
@ -94,6 +98,11 @@ cy_rslt_t cybsp_init(void)
result = cybsp_register_sysclk_pm_callback(); result = cybsp_register_sysclk_pm_callback();
} }
#if !defined(CY_CFG_PWR_SYS_IDLE_MODE)
/* Disable deep-sleep. */
sleep_manager_lock_deep_sleep();
#endif
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by /* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list * user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
* (cyreservedresources.list) to make sure no resources are reserved by both. * (cyreservedresources.list) to make sure no resources are reserved by both.

View File

@ -14016,7 +14016,8 @@
"CYBSP_WIFI_CAPABLE" "CYBSP_WIFI_CAPABLE"
], ],
"overrides": { "overrides": {
"network-default-interface-type": "WIFI" "network-default-interface-type": "WIFI",
"deep-sleep-latency": 0
}, },
"detect_code": [ "detect_code": [
"1912" "1912"