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

📄 switest.c

📁 DSP内核代码
💻 C
字号:
/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DSP/BIOS 4.80.208 12-06-02 (barracuda-l19)" */
/*
 *  ======== switest.c =======
 *
 */

#include <std.h>

#include <log.h>
#include <swi.h>
#include <sys.h>

#include "switestcfg.h"

Void swiFxn0(Void);
Void swiFxn1(Void);
Void swiFxn2(Void);

/*
 *  ======== main ========
 */
Void main(Int argc, Char *argv[])
{
    LOG_printf(&trace,"switest started!\n");    
    LOG_printf(&trace,"Main posts SWI0\n");
    SWI_post(&SWI0);
        LOG_printf(&trace,"Main done!\n");
}

/*
 *  ======== swiFxn0 ========
 */
Void swiFxn0(Void)
{
    LOG_printf(&trace,"swiFxn0 posts SWI1\n");  
        SWI_post(&SWI1);
        LOG_printf(&trace,"SWI0 done!\n");
}

/*
 *  ======== swiFxn1 ========
 */
Void swiFxn1(Void)
{
    LOG_printf(&trace,"swiFxn1 posts SWI2\n");
        SWI_post(&SWI2);
        LOG_printf(&trace,"SWI1 done!\n");
}

/*
 *   ======== swiFxn1 ========
 */
Void swiFxn2(Void)
{

        LOG_printf(&trace,"SWI2 done!\n");
}

⌨️ 快捷键说明

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