/******************************************************************************* | |
* °æÈ¨ËùÓÐ (C)2010, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ | |
* | |
* ÎļþÃû³Æ£º common.h | |
* ÄÚÈÝÕªÒª£º | |
* ÆäËü˵Ã÷£º | |
* µ±Ç°°æ±¾£º 1.0 | |
* ×÷¡¡¡¡Õߣº ÎÌÔÆ·å | |
* Íê³ÉÈÕÆÚ£º 2010-9-30 | |
* | |
* | |
*******************************************************************************/ | |
#ifndef __INCLUDE_COMMON_H_ | |
#define __INCLUDE_COMMON_H_ | |
#include "type.h" | |
#include "config.h" | |
extern void uart_init(WORD32 PLL_H); | |
extern char uart_getc(void); | |
extern void uart_putc(const char c); | |
extern void uart_puts(const char *s); | |
extern int uart_ctrlc(void); | |
extern int timer_init(void); | |
extern void hex_to_str(unsigned d, unsigned char w); | |
extern int nand_read_4k(void); | |
extern void usb_boot(WORD32 USB_ADDR); | |
extern void run_at(unsigned); | |
extern void usdelay(unsigned us); | |
extern void print(const char *fmt, ...); | |
#define Para_Section __attribute__((__section__ (".para"))); | |
//#define getc uart_getc | |
#define putc uart_putc | |
#define puts uart_puts | |
#define ctrlc uart_ctrlc | |
#define printk(x) printf(x) | |
#endif |