swich to official arm toolchain finished
This commit is contained in:
@@ -26,15 +26,9 @@ struct thread_context th_ctx;
|
||||
static void th_func(void *arg)
|
||||
{
|
||||
drv_open(&uart_1);
|
||||
drv_open(&gpio_d12);
|
||||
drv_write(&gpio_d12, "0", 1);
|
||||
while(1) {
|
||||
drv_write(&uart_1, "test\r\n", 6);
|
||||
sleep_ms(1000);
|
||||
drv_write(&uart_1, "set_led\r\n", 9);
|
||||
drv_write(&gpio_d12, "1", 1);
|
||||
sleep_ms(1000);
|
||||
drv_write(&uart_1, "unset_led\r\n", 11);
|
||||
drv_write(&gpio_d12, "0", 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user