diff code_part1/OSTC_code_asm_part1/MAIN.ASM @ 238:9581e48a914f

Some cleanup in the ISR
author heinrichsweikamp
date Sun, 20 Mar 2011 17:55:21 +0100
parents 53b16a746166
children 447390289f47 2144f19fa1eb
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/MAIN.ASM	Sun Mar 20 10:19:19 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/MAIN.ASM	Sun Mar 20 17:55:21 2011 +0100
@@ -59,17 +59,14 @@
 		btfsc	INTCON,TMR0IF				;Timer0 INT (Debounce Timer)
 		call	timer0int
 
-		btfsc	PIR2,TMR3IF					;Timer3 INT (Delay for PWM Buzzer)
-		call	timer3int
-
 		btfsc	PIR1,RCIF					; UART
 		call	uartint
 
 		btfsc	INTCON,INT0IF				; Switch left
-		call	schalter_links
+		call	switch_left_int
 
 		btfsc	INTCON3,INT1IF				; switch right
-		call	schalter_rechts
+		call	switch_right_int
 
 		movff   prod_temp+1,PRODH
 		movff   prod_temp+0,PRODL
@@ -134,5 +131,12 @@
     MESSG "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details."
     MESSG "You should have received a copy of the GNU General Public License along with this program.If not, see http://www.gnu.org/licenses/."
 
+  ifdef __DEBUG
+   	MESSG "OSTC Mk.2 code compiled in DEBUG configuration!"
+  else
+	MESSG "OSTC Mk.2 code compiled in RELEASE configuration!"
+  endif
+
+
 	END				; end of program