15 #include "cy_retarget_io.h"
16 #include "cy_rgb_led.h"
20 #define CPU_CLOCK_150MHZ (150000000)
30 result = cyhal_clock_get(&
pll_cpu_clock, &CYHAL_CLOCK_PLL[0]);
32 if (result == CY_RSLT_SUCCESS) {
36 if (result == CY_RSLT_SUCCESS) {
40 if (result == CY_RSLT_SUCCESS) {
44 if (result == CY_RSLT_SUCCESS) {
45 result = cyhal_clock_get(&
cpu_clock, &CYHAL_CLOCK_HF[0]);
48 if (result == CY_RSLT_SUCCESS) {
52 if (result == CY_RSLT_SUCCESS) {
62 result = cybsp_init();
63 if (result != CY_RSLT_SUCCESS) {
68 if (result != CY_RSLT_SUCCESS) {
72 result = cy_rgb_led_init(CYBSP_LED_RGB_RED, CYBSP_LED_RGB_GREEN, CYBSP_LED_RGB_BLUE, CY_RGB_LED_ACTIVE_LOW);
73 if (result != CY_RSLT_SUCCESS) {
79 uint64_t board_uuid = Cy_SysLib_GetUniqueId();
89 result = cy_retarget_io_init(CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RX, CY_RETARGET_IO_BAUDRATE);
90 if (result != CY_RSLT_SUCCESS) {
101 return (
const uint8_t *)
uuid;