瑞萨RA0E1开发板评测报告+低功率测试,LED显示
51次播放
开源硬件平台
全部评论 默认 最新
蓝天使 作者
2024-12-20 13:15:46 来自广东
* @brief Blinky example application * * Blinks all leds at a rate of 1 second using the software delay function provided by the BSP. * **********************************************************************************************************************/ void hal_entry (void) { #if BSP_TZ_SECURE_BUILD /* Enter non-secure code */ R_BSP_NonSecureEnter(); #endif /* Define the units to be used with the software delay function */ const bsp_delay_units_t bsp_delay_units = BSP_DELAY_UNITS_MILLISECONDS; /* Set the blink frequency (must be <= bsp_delay_units */ const uint32_t freq_in_hz = 2; /* Calculate the delay in terms of bsp_delay_units */ const uint32_t delay = bsp_delay_units / freq_in_hz; /* LED type structure */ bsp_leds_t leds = g_bsp_leds; /* If this board has no LEDs then trap here */ if (0 == leds.led_count) { while (1) { ; // There are no LEDs on this board } } /* Holds level to set for pins */ bsp_io_level_t pin_level = BSP_IO_LEVEL_LOW; while (1) { /* Enable access to the PFS registers. If using r_ioport module then register protection is automatically * handled. This code uses BSP IO functions to show how it is used. */ R_BSP_PinAccessEnable(); /* Update all board LEDs */ for (uint32_t i = 0; i [removed]
已折叠部分评论 展开
没有更多啦~