mirror of https://github.com/ARMmbed/mbed-os.git
Comment about resource reservations in BSP Init
parent
0a1e64dd00
commit
d50145fd1d
|
@ -43,13 +43,20 @@ cy_rslt_t cybsp_init(void)
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
/* Initialize User LEDs */
|
/* Initialize User LEDs */
|
||||||
|
/* Reserves: CYBSP_USER_LED1 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED1);
|
result |= cybsp_led_init(CYBSP_USER_LED1);
|
||||||
|
/* Reserves: CYBSP_USER_LED2 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED2);
|
result |= cybsp_led_init(CYBSP_USER_LED2);
|
||||||
|
/* Reserves: CYBSP_USER_LED3 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED3);
|
result |= cybsp_led_init(CYBSP_USER_LED3);
|
||||||
|
/* Reserves: CYBSP_USER_LED4 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED4);
|
result |= cybsp_led_init(CYBSP_USER_LED4);
|
||||||
|
/* Reserves: CYBSP_USER_LED5 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED5);
|
result |= cybsp_led_init(CYBSP_USER_LED5);
|
||||||
/* Initialize User Buttons */
|
/* Initialize User Buttons */
|
||||||
|
/* Reserves: CYBSP_USER_BTN1 */
|
||||||
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
||||||
|
/* Reserves: CYBSP_USER_BTN2 */
|
||||||
result |= cybsp_btn_init(CYBSP_USER_BTN2);
|
result |= cybsp_btn_init(CYBSP_USER_BTN2);
|
||||||
|
|
||||||
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
||||||
|
@ -57,6 +64,8 @@ cy_rslt_t cybsp_init(void)
|
||||||
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RTS, CYBSP_DEBUG_UART_CTS
|
||||||
|
* corresponding SCB instance and one of available clock dividers */
|
||||||
result = cybsp_retarget_init();
|
result = cybsp_retarget_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,10 +77,15 @@ cy_rslt_t cybsp_init(void)
|
||||||
when starting up WiFi. */
|
when starting up WiFi. */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
|
||||||
|
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
|
||||||
result = cybsp_wifi_sdio_init();
|
result = cybsp_wifi_sdio_init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,23 +42,34 @@ cy_rslt_t cybsp_init(void)
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
/* Initialize User LEDs */
|
/* Initialize User LEDs */
|
||||||
|
/* Reserves: CYBSP_USER_LED1 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED1);
|
result |= cybsp_led_init(CYBSP_USER_LED1);
|
||||||
|
/* Reserves: CYBSP_USER_LED2 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED2);
|
result |= cybsp_led_init(CYBSP_USER_LED2);
|
||||||
|
/* Reserves: CYBSP_USER_LED3 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED3);
|
result |= cybsp_led_init(CYBSP_USER_LED3);
|
||||||
|
/* Reserves: CYBSP_USER_LED4 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED4);
|
result |= cybsp_led_init(CYBSP_USER_LED4);
|
||||||
|
/* Reserves: CYBSP_USER_LED5 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED5);
|
result |= cybsp_led_init(CYBSP_USER_LED5);
|
||||||
/* Initialize User Buttons */
|
/* Initialize User Buttons */
|
||||||
|
/* Reserves: CYBSP_USER_BTN1 */
|
||||||
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
||||||
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
||||||
|
|
||||||
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance and one of available
|
||||||
|
* clock dividers */
|
||||||
result = cybsp_retarget_init();
|
result = cybsp_retarget_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,18 +43,26 @@ cy_rslt_t cybsp_init(void)
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
/* Initialize User LEDs */
|
/* Initialize User LEDs */
|
||||||
|
/* Reserves: CYBSP_USER_LED1 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED1);
|
result |= cybsp_led_init(CYBSP_USER_LED1);
|
||||||
|
/* Reserves: CYBSP_USER_LED2 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED2);
|
result |= cybsp_led_init(CYBSP_USER_LED2);
|
||||||
|
/* Reserves: CYBSP_USER_LED3 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED3);
|
result |= cybsp_led_init(CYBSP_USER_LED3);
|
||||||
|
/* Reserves: CYBSP_USER_LED4 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED4);
|
result |= cybsp_led_init(CYBSP_USER_LED4);
|
||||||
|
/* Reserves: CYBSP_USER_LED5 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED5);
|
result |= cybsp_led_init(CYBSP_USER_LED5);
|
||||||
/* Initialize User Buttons */
|
/* Initialize User Buttons */
|
||||||
|
/* Reserves: CYBSP_USER_BTN1 */
|
||||||
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
||||||
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
||||||
|
|
||||||
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance
|
||||||
|
* and one of available clock dividers */
|
||||||
result = cybsp_retarget_init();
|
result = cybsp_retarget_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,10 +75,15 @@ cy_rslt_t cybsp_init(void)
|
||||||
when starting up WiFi. */
|
when starting up WiFi. */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
|
||||||
|
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
|
||||||
result = cybsp_wifi_sdio_init();
|
result = cybsp_wifi_sdio_init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,14 +42,18 @@ cy_rslt_t cybsp_init(void)
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
/* Initialize User LEDs */
|
/* Initialize User LEDs */
|
||||||
|
/* Reserves: CYBSP_USER_LED1 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED1);
|
result |= cybsp_led_init(CYBSP_USER_LED1);
|
||||||
/* Initialize User Buttons */
|
/* Initialize User Buttons */
|
||||||
|
/* Reserves: CYBSP_USER_BTN1 */
|
||||||
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
||||||
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
||||||
|
|
||||||
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance
|
||||||
|
* and one of available clock dividers */
|
||||||
result = cybsp_retarget_init();
|
result = cybsp_retarget_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,10 +65,15 @@ cy_rslt_t cybsp_init(void)
|
||||||
when starting up WiFi. */
|
when starting up WiFi. */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
|
||||||
|
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
|
||||||
result = cybsp_wifi_sdio_init();
|
result = cybsp_wifi_sdio_init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,10 +42,14 @@ cy_rslt_t cybsp_init(void)
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
/* Initialize User LEDs */
|
/* Initialize User LEDs */
|
||||||
|
/* Reserves: CYBSP_USER_LED1 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED1);
|
result |= cybsp_led_init(CYBSP_USER_LED1);
|
||||||
|
/* Reserves: CYBSP_USER_LED2 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED2);
|
result |= cybsp_led_init(CYBSP_USER_LED2);
|
||||||
|
/* Reserves: CYBSP_USER_LED3 */
|
||||||
result |= cybsp_led_init(CYBSP_USER_LED3);
|
result |= cybsp_led_init(CYBSP_USER_LED3);
|
||||||
/* Initialize User Buttons */
|
/* Initialize User Buttons */
|
||||||
|
/* Reserves: CYBSP_USER_BTN1 */
|
||||||
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
result |= cybsp_btn_init(CYBSP_USER_BTN1);
|
||||||
|
|
||||||
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
CY_ASSERT(CY_RSLT_SUCCESS == result);
|
||||||
|
@ -53,6 +57,8 @@ cy_rslt_t cybsp_init(void)
|
||||||
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
/* Initialize retargetting stdio to 'DEBUG_UART' peripheral */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_TX, corresponding SCB instance
|
||||||
|
* and one of available clock dividers */
|
||||||
result = cybsp_retarget_init();
|
result = cybsp_retarget_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,10 +71,15 @@ cy_rslt_t cybsp_init(void)
|
||||||
when starting up WiFi. */
|
when starting up WiFi. */
|
||||||
if (CY_RSLT_SUCCESS == result)
|
if (CY_RSLT_SUCCESS == result)
|
||||||
{
|
{
|
||||||
|
/* Reserves: CYBSP_WIFI_SDIO, CYBSP_WIFI_SDIO_D0, CYBSP_WIFI_SDIO_D1, CYBSP_WIFI_SDIO_D2, CYBSP_WIFI_SDIO_D3
|
||||||
|
* CYBSP_WIFI_SDIO_CMD, CYBSP_WIFI_SDIO_CLK and CYBSP_WIFI_WL_REG_ON */
|
||||||
result = cybsp_wifi_sdio_init();
|
result = cybsp_wifi_sdio_init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue