board.c 564 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-06-29 Rbb666 first version
  9. */
  10. #include "board.h"
  11. void cy_bsp_all_init(void)
  12. {
  13. cy_rslt_t result;
  14. #ifdef __ARMCC_VERSION
  15. #ifndef __NO_SYSTEM_INIT
  16. SystemInit();
  17. #endif
  18. #endif
  19. /* Initialize the device and board peripherals */
  20. result = cybsp_init();
  21. /* Board init failed. Stop program execution */
  22. if (result != CY_RSLT_SUCCESS)
  23. {
  24. CY_ASSERT(0);
  25. }
  26. }