summaryrefslogtreecommitdiff
path: root/bootloader/bootloader-887.asm
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/bootloader-887.asm')
-rw-r--r--bootloader/bootloader-887.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/bootloader/bootloader-887.asm b/bootloader/bootloader-887.asm
index e29136b..1ab7501 100644
--- a/bootloader/bootloader-887.asm
+++ b/bootloader/bootloader-887.asm
@@ -29,9 +29,9 @@
;; -------------------------------------
;; DEFINES (chip/com specific)
-#define BOOTPIN PORTC,7 ; use this for com-uart
-;; #define BOOTPIN PORTA,5 ; use this for com-spi
-;; #define INTPIN PORTA,4 ; use this for com-spi
+;; #define BOOTPIN PORTC,7 ; use this for com-uart
+#define BOOTPIN PORTA,5 ; use this for com-spi
+#define INTPIN PORTA,4 ; use this for com-spi
USERVECT EQU H'100'
ISRVECT EQU USERVECT + H'4'
FLASH_BOUNDARY EQU b'00001111' ; flash write boundary is at 16 bytes boundaries
@@ -67,19 +67,19 @@ flags EQU H'007D'
cnt EQU H'007F'
;; Boot Macro
-bootmacro macro ; use this for com-uart
- btfsc BOOTPIN
- goto USERVECT
- goto com_init
- endm
-
-;; bootmacro macro ; use this for com-spi
-;; bsf STATUS,RP0
-;; bsf STATUS,RP1
-;; bcf ANSEL,ANS4 ; RA5/SS as digital input -> BOOTPIN
+;; bootmacro macro ; use this for com-uart
+;; btfsc BOOTPIN
+;; goto USERVECT
;; goto com_init
;; endm
+bootmacro macro ; use this for com-spi
+ bsf STATUS,RP0
+ bsf STATUS,RP1
+ bcf ANSEL,ANS4 ; RA5/SS as digital input -> BOOTPIN
+ goto com_init
+ endm
+
;; -------------------------------------
;; DEFINES (defines)
#include "generic-defines.inc"
@@ -90,8 +90,8 @@ bootmacro macro ; use this for com-uart
;; -------------------------------------
;; Bootloader (com specific subroutines and init)
-#include "com-16f887-uart.inc"
-;; #include "com-16f887-spi.inc"
+;; #include "com-16f887-uart.inc"
+#include "com-16f887-spi.inc"
;; -------------------------------------
;; Bootloader (generic init/body)