sim.ini
来自「AT91SAM7S256开发板基础demo」· INI 代码 · 共 36 行
INI
36 行
/******************************************************************************/
/* SIM.INI: Simulator Initialization File */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>> //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved. */
/* This software may only be used under the terms of a valid, current, */
/* end user licence from KEIL for a compatible version of KEIL software */
/* development tools. Nothing else gives you the right to use this software. */
/******************************************************************************/
func void T_SW2 (void) { // Toggle SW2
PORTA ^= (1 << 20);
}
signal void PB_SW1 (void) { // Push Button SW1
PORTA &= ~(1 << 19); // Press SW1
swatch(0.050); // Wait 50ms
PORTA |= (1 << 19); // Release SW1
}
signal void PB_SW3 (void) { // Push Button SW3
PORTA &= ~(1 << 15); // Press SW3
swatch(0.050); // Wait 50ms
PORTA |= (1 << 15); // Release SW3
}
signal void PB_SW4 (void) { // Push Button SW4
PORTA &= ~(1 << 14); // Press SW4
swatch(0.050); // Wait 50ms
PORTA |= (1 << 14); // Release SW4
}
PORTA = 0xFFFFFFFF; // Initial PortA Pin Values
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?