⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osnios.h

📁 nios开发ucos源码
💻 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 + -