Skip to content

Commit 4ddb0eb

Browse files
author
Kyle Kearney
committed
Comment about resource reservations in BSP Init
1 parent 69165d3 commit 4ddb0eb

File tree

5 files changed

+59
-1
lines changed
  • targets/TARGET_Cypress/TARGET_PSOC6
    • TARGET_CY8CKIT_062S2_43012
    • TARGET_CY8CKIT_062_BLE
    • TARGET_CY8CKIT_062_WIFI_BT
    • TARGET_CY8CMOD_062_4343W/TARGET_CY8CPROTO_062_4343W
    • TARGET_CYW943012P6EVB_01

5 files changed

+59
-1
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062S2_43012/cybsp.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,29 @@ cy_rslt_t cybsp_init(void)
4343
if (CY_RSLT_SUCCESS == result)
4444
{
4545
/* Initialize User LEDs */
46+
/* Reserves: CYBSP_USER_LED1 */
4647
result |= cybsp_led_init(CYBSP_USER_LED1);
48+
/* Reserves: CYBSP_USER_LED2 */
4749
result |= cybsp_led_init(CYBSP_USER_LED2);
50+
/* Reserves: CYBSP_USER_LED3 */
4851
result |= cybsp_led_init(CYBSP_USER_LED3);
52+
/* Reserves: CYBSP_USER_LED4 */
4953
result |= cybsp_led_init(CYBSP_USER_LED4);
54+
/* Reserves: CYBSP_USER_LED5 */
5055
result |= cybsp_led_init(CYBSP_USER_LED5);
5156
/* Initialize User Buttons */
57+
/* Reserves: CYBSP_USER_BTN1 */
5258
result |= cybsp_btn_init(CYBSP_USER_BTN1);
59+
/* Reserves: CYBSP_USER_BTN2 */
5360
result |= cybsp_btn_init(CYBSP_USER_BTN2);
5461

5562
CY_ASSERT(CY_RSLT_SUCCESS == result);
5663

5764
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
5865
if (CY_RSLT_SUCCESS == result)
5966
{
67+
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RTS, CYBSP_DEBUG_UART_CTS
68+
* corresponding SCB instance and one of available clock dividers */
6069
result = cybsp_retarget_init();
6170
}
6271
}
@@ -68,10 +77,15 @@ cy_rslt_t cybsp_init(void)
6877
when starting up WiFi. */
6978
if (CY_RSLT_SUCCESS == result)
7079
{
80+
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
81+
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
7182
result = cybsp_wifi_sdio_init();
7283
}
7384
#endif
74-
85+
86+
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
87+
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
88+
* (cyreservedresources.list) to make sure no resources are reserved by both. */
7589
return result;
7690
}
7791

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_BLE/cybsp.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,34 @@ cy_rslt_t cybsp_init(void)
4242
if (CY_RSLT_SUCCESS == result)
4343
{
4444
/* Initialize User LEDs */
45+
/* Reserves: CYBSP_USER_LED1 */
4546
result |= cybsp_led_init(CYBSP_USER_LED1);
47+
/* Reserves: CYBSP_USER_LED2 */
4648
result |= cybsp_led_init(CYBSP_USER_LED2);
49+
/* Reserves: CYBSP_USER_LED3 */
4750
result |= cybsp_led_init(CYBSP_USER_LED3);
51+
/* Reserves: CYBSP_USER_LED4 */
4852
result |= cybsp_led_init(CYBSP_USER_LED4);
53+
/* Reserves: CYBSP_USER_LED5 */
4954
result |= cybsp_led_init(CYBSP_USER_LED5);
5055
/* Initialize User Buttons */
56+
/* Reserves: CYBSP_USER_BTN1 */
5157
result |= cybsp_btn_init(CYBSP_USER_BTN1);
5258
CY_ASSERT(CY_RSLT_SUCCESS == result);
5359

5460
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
5561
if (CY_RSLT_SUCCESS == result)
5662
{
63+
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance and one of available
64+
* clock dividers */
5765
result = cybsp_retarget_init();
5866
}
5967
}
6068
#endif
6169

70+
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
71+
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
72+
* (cyreservedresources.list) to make sure no resources are reserved by both. */
6273
return result;
6374
}
6475

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/cybsp.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,26 @@ cy_rslt_t cybsp_init(void)
4343
if (CY_RSLT_SUCCESS == result)
4444
{
4545
/* Initialize User LEDs */
46+
/* Reserves: CYBSP_USER_LED1 */
4647
result |= cybsp_led_init(CYBSP_USER_LED1);
48+
/* Reserves: CYBSP_USER_LED2 */
4749
result |= cybsp_led_init(CYBSP_USER_LED2);
50+
/* Reserves: CYBSP_USER_LED3 */
4851
result |= cybsp_led_init(CYBSP_USER_LED3);
52+
/* Reserves: CYBSP_USER_LED4 */
4953
result |= cybsp_led_init(CYBSP_USER_LED4);
54+
/* Reserves: CYBSP_USER_LED5 */
5055
result |= cybsp_led_init(CYBSP_USER_LED5);
5156
/* Initialize User Buttons */
57+
/* Reserves: CYBSP_USER_BTN1 */
5258
result |= cybsp_btn_init(CYBSP_USER_BTN1);
5359
CY_ASSERT(CY_RSLT_SUCCESS == result);
5460

5561
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
5662
if (CY_RSLT_SUCCESS == result)
5763
{
64+
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance
65+
* and one of available clock dividers */
5866
result = cybsp_retarget_init();
5967
}
6068
}
@@ -67,10 +75,15 @@ cy_rslt_t cybsp_init(void)
6775
when starting up WiFi. */
6876
if (CY_RSLT_SUCCESS == result)
6977
{
78+
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
79+
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
7080
result = cybsp_wifi_sdio_init();
7181
}
7282
#endif
7383

84+
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
85+
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
86+
* (cyreservedresources.list) to make sure no resources are reserved by both. */
7487
return result;
7588
}
7689

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CMOD_062_4343W/TARGET_CY8CPROTO_062_4343W/cybsp.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,18 @@ cy_rslt_t cybsp_init(void)
4242
if (CY_RSLT_SUCCESS == result)
4343
{
4444
/* Initialize User LEDs */
45+
/* Reserves: CYBSP_USER_LED1 */
4546
result |= cybsp_led_init(CYBSP_USER_LED1);
4647
/* Initialize User Buttons */
48+
/* Reserves: CYBSP_USER_BTN1 */
4749
result |= cybsp_btn_init(CYBSP_USER_BTN1);
4850
CY_ASSERT(CY_RSLT_SUCCESS == result);
4951

5052
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
5153
if (CY_RSLT_SUCCESS == result)
5254
{
55+
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance
56+
* and one of available clock dividers */
5357
result = cybsp_retarget_init();
5458
}
5559
}
@@ -61,10 +65,15 @@ cy_rslt_t cybsp_init(void)
6165
when starting up WiFi. */
6266
if (CY_RSLT_SUCCESS == result)
6367
{
68+
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
69+
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
6470
result = cybsp_wifi_sdio_init();
6571
}
6672
#endif
6773

74+
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
75+
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
76+
* (cyreservedresources.list) to make sure no resources are reserved by both. */
6877
return result;
6978
}
7079

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW943012P6EVB_01/cybsp.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,23 @@ cy_rslt_t cybsp_init(void)
4242
if (CY_RSLT_SUCCESS == result)
4343
{
4444
/* Initialize User LEDs */
45+
/* Reserves: CYBSP_USER_LED1 */
4546
result |= cybsp_led_init(CYBSP_USER_LED1);
47+
/* Reserves: CYBSP_USER_LED2 */
4648
result |= cybsp_led_init(CYBSP_USER_LED2);
49+
/* Reserves: CYBSP_USER_LED3 */
4750
result |= cybsp_led_init(CYBSP_USER_LED3);
4851
/* Initialize User Buttons */
52+
/* Reserves: CYBSP_USER_BTN1 */
4953
result |= cybsp_btn_init(CYBSP_USER_BTN1);
5054

5155
CY_ASSERT(CY_RSLT_SUCCESS == result);
5256

5357
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
5458
if (CY_RSLT_SUCCESS == result)
5559
{
60+
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance
61+
* and one of available clock dividers */
5662
result = cybsp_retarget_init();
5763
}
5864
}
@@ -65,10 +71,15 @@ cy_rslt_t cybsp_init(void)
6571
when starting up WiFi. */
6672
if (CY_RSLT_SUCCESS == result)
6773
{
74+
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
75+
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
6876
result = cybsp_wifi_sdio_init();
6977
}
7078
#endif
7179

80+
/* CYHAL_HWMGR_RSLT_ERR_INUSE error code could be returned if any needed for BSP resource was reserved by
81+
* user previously. Please review the Device Configurator (design.modus) and the BSP reservation list
82+
* (cyreservedresources.list) to make sure no resources are reserved by both. */
7283
return result;
7384
}
7485

0 commit comments

Comments
 (0)