bank3.c

来自「C8051F系列CPU」· C语言 代码 · 共 37 行

C
37
字号
//-----------------------------------------------------------------------------
// bank3.c
//-----------------------------------------------------------------------------
//
// AUTH: FB
// DATE: 18 SEP 02
//
// Target: C8051F12x
// Tool chain: KEIL C51
// 
// This file contains routines used by the code banking example in AN030.
// All routines in this file are located in Code Bank 3.
//

//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include <c8051f120.h>              // SFR declarations


//-----------------------------------------------------------------------------
// Global CONSTANTS 
//-----------------------------------------------------------------------------

sbit LED = P1^6;


//-----------------------------------------------------------------------------
// toggle_led 
//-----------------------------------------------------------------------------

void toggle_led(void)
{
   LED = ~LED;

}

⌨️ 快捷键说明

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