📄 main.c
字号:
/* $Id: //depot/software/SDK/Triscend/a7hal/examples/hello/main.c#4 $ *//* ********************************************************** * main.c * Copyright(C) 2001-2002 Triscend Corporation. All Rights Reserved. * This file is licensed under the terms of Triscend SDK License Agreement. ********************************************************** */#include <stdio.h>#include "uart.h"void delay(){ int i, j, k; for (i = 0; i < 1000; i++) { for (j = 0; j < 1000; j++) { k = i*j; } }}#define print(x) a7hal_uart_putString(x);int main( ){ char buf[20]; a7hal_uart_init(); print("It's hard to work on ...\n"); sprintf(buf, "You are luck number %d!\n", 9); print(buf); while(1) { print("*"); delay(); } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -