?? 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 + -