uhal.h

来自「三星2410的一些DEMO小例程」· C头文件 代码 · 共 51 行

H
51
字号
#ifndef __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"
#define uHAL_AUTHOR_STRING      "zhl"

/*** Called by ARMTargetInit() ***/

//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() ***/
void uHALr_InstallIrqHandler(void);


//Enable the interrupt.
void uHALr_EnableTimer(void);


//for debugging
//void KeyReceive(void);
 void BreakPoint(void);
//__irq void KeyReceive_S(void);
 void ARMTargetInit(void);
 void ARMTargetStart(void);
#endif

⌨️ 快捷键说明

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