lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*******************************************************************************
|
| 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 |
|
| 19 | extern void uart_init(WORD32 PLL_H);
|
| 20 | extern char uart_getc(void);
|
| 21 | extern void uart_putc(const char c);
|
| 22 | extern void uart_puts(const char *s);
|
| 23 | extern int uart_ctrlc(void);
|
| 24 |
|
| 25 | extern int timer_init(void);
|
| 26 |
|
| 27 | extern void hex_to_str(unsigned d, unsigned char w);
|
| 28 | extern int nand_read_4k(void);
|
| 29 | extern void usb_boot(WORD32 USB_ADDR);
|
| 30 |
|
| 31 | extern void run_at(unsigned);
|
| 32 | extern void usdelay(unsigned us);
|
| 33 | extern 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
|