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

📄 watchdog.s

📁 u-blox的GPS模块LEA-5x,三本例子为ATMEGA1280对他的操作的程序
💻 S
字号:
	.module watchdog.c
	.area text(rom, con, rel)
	.dbfile E:\item\GPS-1280\watchdog.c
	.dbfunc e watchdog_init _watchdog_init fV
	.even
_watchdog_init::
	.dbline -1
	.dbline 4
; #include "watchdog.h"
; 
; void watchdog_init(void)
; {
	.dbline 5
;   WATCHDOG_DDR |= (1<<WATCHDOG_PIN);
	sbi 0x4,2
	.dbline 6
;   WATCHDOG_PORT&=~(1<<WATCHDOG_PIN);
	cbi 0x5,2
	.dbline 8
; 
;   watchdog_set();
	xcall _watchdog_set
	.dbline -2
L1:
	.dbline 0 ; func end
	ret
	.dbend
	.dbfunc e watchdog_set _watchdog_set fV
	.even
_watchdog_set::
	.dbline -1
	.dbline 12
; }
; 
; void watchdog_set(void)
; {
	.dbline 13
;   WATCHDOG_PORT |= (1<<WATCHDOG_PIN);
	sbi 0x5,2
	.dbline 14
;   WATCHDOG_PORT &=~(1<<WATCHDOG_PIN);
	cbi 0x5,2
	.dbline -2
L2:
	.dbline 0 ; func end
	ret
	.dbend
; }

⌨️ 快捷键说明

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