From 96052c334742afc8f08ccffaf26cb001186e9bea Mon Sep 17 00:00:00 2001 From: Dustin Crossman Date: Fri, 15 May 2020 15:52:44 -0700 Subject: [PATCH] Update CYSBSYSKIT_01 board init --- .../TARGET_PSOC6/TARGET_CYSBSYSKIT_01/cybsp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/cybsp.c b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/cybsp.c index c96177402f..58fbf17f10 100644 --- a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/cybsp.c +++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/cybsp.c @@ -101,6 +101,12 @@ cy_rslt_t cybsp_init(void) sleep_manager_lock_deep_sleep(); #endif + /* Reserve clock dividers used by NP. */ + cyhal_clock_divider_t clock1; + cyhal_hwmgr_allocate_clock(&clock1, CY_SYSCLK_DIV_16_BIT, true); + cyhal_clock_divider_t clock2; + cyhal_hwmgr_allocate_clock(&clock2, CY_SYSCLK_DIV_16_BIT, true); + /* 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 * (cyreservedresources.list) to make sure no resources are reserved by both.