blob: f7b103b15873e0d2f84dbfdb7a590c1129e659a1 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*******************************************************************************
2* °æÈ¨ËùÓÐ (C)2010, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3*
4* ÎļþÃû³Æ£º common.h
5* ÄÚÈÝÕªÒª£º
6* ÆäËü˵Ã÷£º
7* µ±Ç°°æ±¾£º 1.0
8* ×÷¡¡¡¡Õߣº ÎÌÔÆ·å
9* Íê³ÉÈÕÆÚ£º 2010-9-30
10*
11*
12*******************************************************************************/
13#ifndef __INCLUDE_COMMON_H_
14#define __INCLUDE_COMMON_H_
15
16#include "type.h"
17#include "config.h"
18
19extern void uart_init(WORD32 PLL_H);
20extern char uart_getc(void);
21extern void uart_putc(const char c);
22extern void uart_puts(const char *s);
23extern int uart_ctrlc(void);
24
25extern int timer_init(void);
26
27extern void hex_to_str(unsigned d, unsigned char w);
28extern int nand_read_4k(void);
29extern void usb_boot(WORD32 USB_ADDR);
30
31extern void run_at(unsigned);
32extern void usdelay(unsigned us);
33extern void print(const char *fmt, ...);
34#define Para_Section __attribute__((__section__ (".para")));
35
36//#define getc uart_getc
37#define putc uart_putc
38#define puts uart_puts
39#define ctrlc uart_ctrlc
40
41#define printk(x) printf(x)
42
43#endif