systemtimer.inc

来自「 PSoC(可编程片上系统)是Cypress半导体公司生产的包含有8位微处理器核」· INC 代码 · 共 48 行

INC
48
字号
;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME: SystemTimer.inc
;;   Version: 1.0, Updated on 2006/05/15 at 15:10:02
;;  Generated by PSoC Designer ???
;;
;;  DESCRIPTION: Assembler declarations for the SleepTimer user module interface
;;               for the 22/24/27/29/42xxx PSoC family of devices
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2000-2006. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************

include "m8c.inc"


;--------------------------------------------------
; Constants for SystemTimer API's.
;--------------------------------------------------

SystemTimer_INT_REG:                       equ 0x0e0
SystemTimer_INT_MASK:                      equ 0x40

SystemTimer_TICK_CNTR_SIZE:                 equ  2h
SystemTimer_PSOC_TYPE:                      equ  1

IF (SystemTimer_PSOC_TYPE)                  ; 22/24/27/29xxx Family

; Frequency of sleep timer interrupts
SystemTimer_1_HZ:                           equ 0x18
SystemTimer_8_HZ:                           equ 0x10
SystemTimer_64_HZ:                          equ 0x08
SystemTimer_512_HZ:                         equ 0x00
SystemTimer_CLOCK_MASK:                     equ 0x18
ELSE                                        ; 42020 Family

; Frequency of sleep timer interrupts
SystemTimer_1_HZ:                           equ 0x03
SystemTimer_8_HZ:                           equ 0x02
SystemTimer_64_HZ:                          equ 0x01
SystemTimer_512_HZ:                         equ 0x00
SystemTimer_CLOCK_MASK:                     equ 0x03
ENDIF


SystemTimer_FORCE_RELOAD:                   equ 0x01
SystemTimer_WAIT_RELOAD:                    equ 0x00

⌨️ 快捷键说明

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