uhal.h

来自「杭州立宇泰豪华型44B0开发板」· C头文件 代码 · 共 56 行

H
56
字号
#if !defined __UHAL_H
#define __UHAL_H

/* ARM board targetting source file.
   file name: uhal.h   
   date: 2001. 2. 14
   made by cho dong-seok
   homepage: www.pusanssm.com/~cthr36/
*/

//Define board cooperation
#define SAMSUNG
//#define NONE

//Indicate debug mode.
//#define DEBUG


//Define version of uC/OS Hardware Associated Layer code.
#define uHAL_VERSION_STRING	"Version 1.00  COiNS"


//Output through LCD or serial port to print information.
int uHALr_printf(const char *format, ...);


/*** Called by ARMTargetInit() ***/
//Reset memory management unit.
void uHALr_ResetMMU(void);

//Define pre & post-process routines for Interrupt.
void uHALir_DefineIRQ(void *is, void *iq, void *n);

//Initialze interrupts.
void uHALr_InitInterrupts(void);


//Initialize timer that is used OS.
void uHALr_InitTimers(void);


/*** Called by ARMTargetStart() ***/
//Request the system timer.
//return value 1:success   0:fail
int uHALr_RequestSystemTimer(void *tick, const unsigned char *str);


//Start system timer & enable the interrupt.
void uHALr_InstallSystemTimer(void);


//for debugging
void BreakPoint(void);


#endif

⌨️ 快捷键说明

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