麻了,最近学校参加个什么立创EDA的训练营,硬要学一个RA的芯片,在这里写一些关于这款芯片的核心板的笔记
芯片类型:RA2E1A72DFL
fsp_err_t R_IOPORT_PinWrite ( ioport_ctrl_t * constp_ctrl, bsp_io_port_pin_tpin, bsp_io_level_tlevel )说明: Sets a pin's output either high or low. Implements ioport_api_t ::pinWrite.
示例程序:
void hal_entry ( void ){/* TODO : add your own code here */while (1){R_BSP_SoftwareDelay(500, BSP_DELAY_UNITS_MILLISECONDS ); // NOLINTR_IOPORT_PinWrite(&g_ioport_ctrl, BSP_IO_PORT_01_PIN_03 , BSP_IO_LEVEL_LOW );R_BSP_SoftwareDelay(500, BSP_DELAY_UNITS_MILLISECONDS ); // NOLINTR_IOPORT_PinWrite(&g_ioport_ctrl, BSP_IO_PORT_01_PIN_03 ,BSP_IO_LEVEL_HIGH );}#if BSP_TZ_SECURE_BUILD/* Enter non-secure code */R_BSP_NonSecureEnter();#endif}
现象为:LED2 每隔 500 毫秒亮灭。