chiark / gitweb /
try to inclue morse but it does not build!
authorian <ian>
Sun, 20 Nov 2005 00:34:43 +0000 (00:34 +0000)
committerian <ian>
Sun, 20 Nov 2005 00:34:43 +0000 (00:34 +0000)
cebpic/morse-auto.asm-gen
cebpic/morse-auto.fin [new file with mode: 0644]
detpic/Makefile
detpic/i2clib.inc
detpic/morse-auto.fin [new file with mode: 0644]
detpic/morse-auto.messages
detpic/morse-defs.inc [new file with mode: 0644]

index d401f8811af393a5ea2fc34cfad2e556d49e5ee4..07ae2d7fee3a9feaa0cdb6be40a8a22f3ad3826c 100755 (executable)
@@ -25,8 +25,9 @@
 #
 # morse_messages_start and morse_messages_end should be defined in
 # morse-defs.inc, and should also be 4-byte aligned.  morse-defs.inc
-# should also arrange to define any symbolic addresse referred to
-# in morse-auto.messages, eg by including the pXXXX.inc.
+# and morse-defs.fin should arrange to define any symbolic addresses
+# referred to in morse-auto.messages, by saying `extern' (in .fin) or
+# including the pXXXX.inc (in .inc).
 #
 # morse-auto.asm contains the actual source and morse-auto.inc
 # contains `extern' references for the labels morse_XY.
@@ -96,7 +97,7 @@ while (<>) {
     unshift @data, sprintf "0x%x%x", scalar(@addrs), $morse_bytes;
 #    push @data, @addrs;
     push @data, map {
-       "$_ - (0xf00 * !(($_ & 0xf00)^0xf00))";
+       "$_";
 #      $_.'&0xff';
     } @addrs;
 
@@ -118,6 +119,7 @@ print <<'END' or die $!
         error "too much morse - extends beyond morse_messages_end"
        endif
 
+       include morse-auto.fin
        end
 END
     if $which eq 'asm';
diff --git a/cebpic/morse-auto.fin b/cebpic/morse-auto.fin
new file mode 100644 (file)
index 0000000..9bbe3c4
--- /dev/null
@@ -0,0 +1 @@
+; stub file
index 278baca5ef6e776a0571e86a6e5853fddb2a2f6e..4ea37a7f1ad1cd151f480f7a5438efa30d70f7f8 100644 (file)
@@ -2,7 +2,7 @@ PROGRAMS=       test-sofar
 INCLUDES=      common.inc final.inc morse-auto.inc \
                ../iwjpictest/insn-aliases.inc
 LIBS=          vectors.o panic.o routines-led.o variables.o \
-                i2clib.o
+                i2clib.o morse-auto.o
 PICNOS=                0 1 2
 CEBPIC=                ../cebpic/
 TARGETS=       $(foreach i, $(PICNOS), perpic$i.hex)
index 9e4b5e469a9804767797c3653e93511d4c1630cd..a8d2b1d3fa9c587792cbe35eba7d79ffe2a38c7b 100644 (file)
  extern i2c_sspcon1
  extern i2c_sspcon2
  extern i2c_slave
+ extern i2c_st
diff --git a/detpic/morse-auto.fin b/detpic/morse-auto.fin
new file mode 100644 (file)
index 0000000..d15603a
--- /dev/null
@@ -0,0 +1 @@
+ include final.inc
index c11f492befb131b42071572a98ab454f8a8ba5f2..f8fd2aae9ee02a6e798a60f0efebb4ccd69cfd9c 100644 (file)
@@ -23,8 +23,6 @@ IP    INTCON                  ; Interrupt of priority supposedly disabled
 # Messages starting with T are temporary entries for testing and development
 TM     PIE1,SSPSTAT,SSPCON1,SSPCON2 ; Master got I2C interrupt
 TS     PIE1,SSPSTAT,SSPCON1,SSPCON2 ; Slave got I2C interrupt
-TF     TESTFLASH                    ; test flash message
-TG     TESTFLASH,WREG4              ; test flash message
 TI1                            ; for iwj
 TI2                            ; for iwj
 TI3                            ; for iwj
diff --git a/detpic/morse-defs.inc b/detpic/morse-defs.inc
new file mode 100644 (file)
index 0000000..00a54bd
--- /dev/null
@@ -0,0 +1 @@
+ include common.inc