Skip to content

Commit 96052c3

Browse files
Update CYSBSYSKIT_01 board init
1 parent a4c6448 commit 96052c3

File tree

1 file changed

+6
-0
lines changed
  • targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01

1 file changed

+6
-0
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/cybsp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ cy_rslt_t cybsp_init(void)
101101
sleep_manager_lock_deep_sleep();
102102
#endif
103103

104+
/* Reserve clock dividers used by NP. */
105+
cyhal_clock_divider_t clock1;
106+
cyhal_hwmgr_allocate_clock(&clock1, CY_SYSCLK_DIV_16_BIT, true);
107+
cyhal_clock_divider_t clock2;
108+
cyhal_hwmgr_allocate_clock(&clock2, CY_SYSCLK_DIV_16_BIT, true);
109+
104110
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
105111
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
106112
* (cyreservedresources.list) to make sure no resources are reserved by both.

0 commit comments

Comments
 (0)