drv_extr.h

来自「基于S3C2440处理器的sd卡驱动程序」· C头文件 代码 · 共 67 行

H
67
字号
/*------------------------------------------------------------------------------
[BASIC]
{
	[FILENAME]  drv_defs.h 
	[CONTENT]   hardware driver interface
	[AUTHOR]    xucao
	[VERSION]   01.0.00.051121
	[COMPANY]   APLUS COMMUNICATION TECHNOLOGY (BeiJing) CO.,LTD
}

[MOD]
{
	01.0.00.051121:
		1.Created initial version
}

------------------------------------------------------------------------------*/  

#ifndef _DRV_EXTR_H_

#ifdef          __cplusplus
extern  "C" {                               /* C declarations in C++     */
#endif

#define _DRV_EXTR_H_
#include "nucleus.h"	    /* Nucleus head file */
#include "drv_defs.h"

extern NU_MEMORY_POOL  system_memory;		/* system memory */

/*------------------------------------------------------------------------------
                               UART driver
------------------------------------------------------------------------------*/
/* initial uart */
void uart_init(void);
/* send a char by uart1, it will be used by printf */
void uart1_send_char( char *ch );


int Uart_Printf(const char *fmt, ...);
void Uart_GetString(char *string);
int Uart_GetIntNum(void);
char Uart_Getch(void);
/*------------------------------------------------------------------------------
                              lcd driver
------------------------------------------------------------------------------*/
/* Initialization of lcd */
void lcd_init(void);



/*------------------------------------------------------------------------------
                              lcd driver
------------------------------------------------------------------------------*/
/* enable the vector interrupt */
void irq_enable(unsigned int vector);
/* disable the vector interrupt */
void irq_disable(unsigned int vector);


#ifdef          __cplusplus
}                                           /* End of C declarations     */
#endif

#endif //_DRV_EXTR_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?