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

📄 exti.ini

📁 STM32 单片机例程
💻 INI
字号:
/*----------------------------------------------------------------------------
 * Name:    Exti.ini
 * Purpose: Functions used for simulating peripherals
 * Version: V1.01
 *----------------------------------------------------------------------------
 * This file is part of the uVision/ARM development tools.
 * 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.
 *
 * Copyright (c) 2005-2007 Keil Software. All rights reserved.
 *----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------
  Simulate Push button S3 
    Pins:
      - S3 = PB.11
 *----------------------------------------------------------------------------*/
PORTB |= 0x000800;                      // set PB.11 high: Key Input

// debug function for the push button S3
signal void push_S3 (void)  {
  PORTB &= ~0x000800;                   // set PB.11 low  (Key pressed)
  swatch (0.05);                        // wait 50 msec
  PORTB |= 0x000800;                    // set PB.11 high (Key released)
}

/*----------------------------------------------------------------------------
  Simulate Push button S2 
    Pins:
      - S2 = PB.10
 *----------------------------------------------------------------------------*/
PORTB |= 0x000400;                      // set PB.10 high: Key Input

// debug function for the push button S2
signal void push_S2 (void)  {
  PORTB &= ~0x000400;                   // set PB.10 low  (Key pressed)
  swatch (0.05);                        // wait 50 msec
  PORTB |= 0x000400;                    // set PB.10 high (Key released)
}

/* define a toolbar button to call push_key */
define button "Button S2", "push_S2 ()"
define button "Button S3", "push_S3 ()"

⌨️ 快捷键说明

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