Subversion Repositories svn.mios

Rev

Rev 52 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
53 tk 1
; $Id: mios_mainloop.inc 53 2008-01-30 22:52:41Z tk $
1 tk 2
;
3
; The Mainloop of MIOS
4
;
5
; ==========================================================================
6
;
7
;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
8
;  Licensed for personal non-commercial use only.
9
;  All other rights reserved.
10
;
11
; ==========================================================================
12
 
13
MIOS_Mainloop
14
	;; --- clear watchdog timer
15
	clrwdt
16
 
17
	;; --- call MIDI processor handler
18
 	call	MIOS_MPROC_Handler
19
 
20
	;; --- call DIN handler
21
	call	MIOS_DIN_Handler
22
 
23
	;; --- call AIN handler
24
 	call	MIOS_AIN_Handler
25
 
26
	;; --- call ENC handler
27
	call	MIOS_ENC_Handler
28
 
29
	;; --- call DISPLAY handler
30
	call	MIOS_DISPLAY_Handler
31
 
32
	;; --- clear watchdog timer again
33
	clrwdt
34
 
35
	;; --- call User part if not suspended
36
	CALL_IFCLR MIOS_BOX_STAT, MIOS_BOX_STAT_SUSPEND_USER, ACCESS, USER_Tick
37
 
38
	;; --- next loop
39
	rgoto	MIOS_Mainloop