From 1233898b3bcc6e8fc2ac0c2eafc7743aff0f7ee2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 4 Aug 2013 17:09:14 +0000 Subject: improved spi send byte git-svn-id: https://svn.spreadspace.org/pic/trunk@99 a09c6847-51d9-44de-8ef2-e725cf50f3c7 --- bootloader/bootloader-947.asm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bootloader/bootloader-947.asm') diff --git a/bootloader/bootloader-947.asm b/bootloader/bootloader-947.asm index ce7862b..3df9530 100644 --- a/bootloader/bootloader-947.asm +++ b/bootloader/bootloader-947.asm @@ -29,7 +29,7 @@ ;; ------------------------------------- ;; DEFINES (chip/com specific) -;; #define INTPIN PORTB,3 ; use this for com-spi +#define INTPIN PORTB,3 ; use this for com-spi USERVECT EQU H'200' ISRVECT EQU USERVECT + H'4' FLASH_BOUNDARY EQU b'00011111' ; flash write boundary is at 32 bytes boundaries @@ -84,17 +84,17 @@ bootmacro macro preinit movlb .3 - bcf ANSELB,ANSB1 ; use this for com-uart - ;; bcf ANSELB,ANSB5 ; use this for com-spi + ;; bcf ANSELB,ANSB1 ; use this for com-uart + bcf ANSELB,ANSB5 ; use this for com-spi movlb .0 - btfsc PORTB,1 ; use this for com-uart - ;; btfsc PORTB,5 ; use this for com-spi + ;; btfsc PORTB,1 ; use this for com-uart + btfsc PORTB,5 ; use this for com-spi goto USERVECT goto com_init ;; ------------------------------------- ;; Bootloader (com specific subroutines and init) -#include "com-16f1847-uart.inc" -;; #include "com-16f1847-spi.inc" +;; #include "com-16f1847-uart.inc" +#include "com-16f1847-spi.inc" ;; ------------------------------------- ;; Bootloader (generic init/body) -- cgit v1.2.3