uhal.h
资源名称:uCOS-II.rar [点击查看]
上传用户:jinguanrq
上传日期:2022-06-04
资源大小:724k
文件大小:1k
源码类别:
uCOS
开发平台:
C/C++
- #if !defined __UHAL_H
- #define __UHAL_H
- /* ARM board targetting source file.
- file name: uhal.h
- date: 2001. 9. 1
- 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);
- void UserIRQ(void);
- void SysENInterrupt(unsigned);
- void SysDISInterrupt(unsigned);
- #endif