?? osnios.h
字號:
/*******************************************************************************************
File : OSNios.h
Nios declarations file for uC/OS-II.
Author : Farid LEZIAR (fleziar@yahoo.fr)
Version : 2.0
This port is free. you can use it, redistribute it
and/or modify it under the following terms:
1. You are not allowed to remove or modify this copyright notice
and License paragraphs, even if parts of the software is used.
2. The improvements and/or extentions you make must be available
for the community under THIS license, source code included.
4. You may NOT distribute this software under another license without
explicit permission from farid LEZIAR (fleziar@yahoo.fr).
5. This software is free, and distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY.
6. Tou have you inform me whenever you use this software.
*******************************************************************************************/
#ifndef _OSNiosh_
#define _OSNiosh_
#include "../../inc/excalibur.h"
/*******************************************************************************************
Nios Defines
*******************************************************************************************/
int OSNiosUserISRTable[64];
void OSNiosCallISR();
void OSDefaultISR();
/**********************************************************************************************
INT8U OSNiosInitContextSwitch(INT8U OSCtxSwIRQ, INT8U OSTickISRIRQ)
This function vectorizes Kernel ISRs.
Must be called before OSStart(), actually in the main().
return : 1 -> OK
0 -> NOK
**********************************************************************************************/
INT8U OSNiosInitContextSwitch (INT8U OSCtxSwIRQ, INT8U OSTickISRIRQ);
/**********************************************************************************************
INT8U OSNiosStartTicks(void *Timer)
This function initializes and starts the Timer.
Must be called after OSStart() (For example, in a Init Task).
return : 1 -> OK
0 -> NOK
**********************************************************************************************/
INT8U OSNiosStartTicks (void *Timer);
/**********************************************************************************************
INT8U OSNiosInstallUserISR(INT8U irq, void *UserISR(void))
This function installs a C function as User Interrupt SubRoutine under uC/OS-II.
The user ISR must be in the form void userISR(void).
return : 1 -> OK
0 -> NOK
**********************************************************************************************/
INT8U OSNiosInstallUserISR (INT8U irq, void (*UserISR)(void));
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -