📄 globals.inc
字号:
;==========================================================
; This is a part of: Eversmith - AVRSMS
; Copyright (2003) Martin Thomas, Kaiserslautern, Germany.
; This Software is distributed under the Aladdin Free
; Public License (AFPL) Read the file license.txt included
; in the distibution-package. See main-file for more infor-
; mation and license.
;==========================================================
;----------------------------------------------------------
; global definitions
.equ SYSCLOCK = 8000000 ; Oscilator frequency in Hz
;----------------------------------------------------------
; used in UART.asm:
.equ BAUDRATE = 19200 ; U(S)ART-Baud-Rate
;.equ BAUDRATE = 9600 ; U(S)ART-Baud-Rate
;----------------------------------------------------------
; for timer0 interrupt in avrsms.asm:
; timer0 interrupt should be called every DT miliseconds
; at System-Clock SYSCLOCK with given Prescaler
; Preset for timer-counter:
; T0PRESET = $ff-(DT*SYSCLOCK/(Prescaler*1000))
; T0PRESET samples:
; with DT=10ms and Prescaler=1024:
.equ T0PRESET = $ff-(10*SYSCLOCK/(1024*1000))
; SYSCLOCK T0PRESET
; 1MHz -> 245
; 4MHz -> 216
; 8MHz -> 177
; 16MHz -> 99
;----------------------------------------------------------
; ME Types
; AT-Command defined in GMS 07.05, Phase 2, V4.7.0
; Siemens MEs send special prompt after AT+CMGS (S35, TC35)
; Ericsson does not prompt (T28 manual), same for Nokia30
.equ MESiemensAT = $FF ; only AT-command devices (all? but C25)
.equ MEEricssonAT = $01 ; only AT-command devices
.equ MENokiaAT = $02 ; only AT-command devices
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -