Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#define CLK_SYS_MHZ 24
#include "delay.h"
#include "gpio.h"
int main()
{
gpio_fsel(PIN_LED, 0);
gpio_dir_pin(PIN_LED, 1);
while (true)
{
for (int i = 0; i < 6; ++i)
{
delay_ms(100);
*GPIO_OUT ^= (1ul << PIN_LED);
}
for (int i = 0; i < 3; ++i)
{
delay_ms(300);
*GPIO_OUT ^= (1ul << PIN_LED);
}
}
}165036038This file is pinned to the selected release. Download the original to open it in your design tool.