32 lines
564 B
C
32 lines
564 B
C
/*
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2022-06-29 Rbb666 first version
|
|
*/
|
|
|
|
#include "board.h"
|
|
|
|
void cy_bsp_all_init(void)
|
|
{
|
|
cy_rslt_t result;
|
|
|
|
#ifdef __ARMCC_VERSION
|
|
#ifndef __NO_SYSTEM_INIT
|
|
SystemInit();
|
|
#endif
|
|
#endif
|
|
|
|
/* Initialize the device and board peripherals */
|
|
result = cybsp_init();
|
|
|
|
/* Board init failed. Stop program execution */
|
|
if (result != CY_RSLT_SUCCESS)
|
|
{
|
|
CY_ASSERT(0);
|
|
}
|
|
}
|