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

📄 sim.ini

📁 AT91SAM7S256开发板基础demo
💻 INI
字号:
/******************************************************************************/
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -