main.c

来自「塞普拉思(cypress) 中断的应用例程.」· C语言 代码 · 共 26 行

C
26
字号
//----------------------------------------------------------------------------
// C main line
//----------------------------------------------------------------------------

#include <m8c.h>        // part specific constants and macros
#include "PSoCAPI.h"    // PSoC API definitions for all User Modules
#pragma interrupt_handler button_svr

void button_svr(void)
{
  LED_Invert();
  
}



void main()
{
    M8C_EnableGInt;
    INT_MSK0=0x20;
    LED_Start();
    LED_Switch(1);
    while(1) ;
    // Insert your main routine code here.
}

⌨️ 快捷键说明

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