mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 03:30:01 +00:00
Removed 'Dracarys' support.
Given the popularity of FujiNet, there's no momentum anymore for a W5100 device on the ATARI.
This commit is contained in:
parent
7fb2bc1c49
commit
c2e0b9a0e2
5
.gitignore
vendored
5
.gitignore
vendored
@ -20,10 +20,6 @@
|
||||
*.exp5438
|
||||
*.mbxxx
|
||||
*.win32
|
||||
*.apple2enh
|
||||
*.atarixl
|
||||
*.c128
|
||||
*.c64
|
||||
*.cc2538dk
|
||||
*.zoul
|
||||
*.jn516x
|
||||
@ -80,7 +76,6 @@ contiki-cc2530dk.lib
|
||||
*.dsc
|
||||
|
||||
#cc65 build artifacts
|
||||
*.s
|
||||
*.eth
|
||||
*.dsk
|
||||
*.po
|
||||
|
@ -15,8 +15,7 @@ static struct {
|
||||
{"LANceGS", "lan91c96.eth"}
|
||||
#endif
|
||||
#ifdef __ATARI__
|
||||
{"Dragon Cart", "cs8900a.eth" },
|
||||
{"Dracarys", "w5100.eth" }
|
||||
{"Dragon Cart", "cs8900a.eth" }
|
||||
#endif
|
||||
#ifdef __CBM__
|
||||
{"RR-Net", "cs8900a.eth" },
|
||||
@ -78,13 +77,6 @@ main(void)
|
||||
param = choose(7);
|
||||
#endif
|
||||
|
||||
#ifdef __ATARI__
|
||||
if(d == 1) {
|
||||
printf("PBI device ID (1-8)\n");
|
||||
param = choose(8);
|
||||
}
|
||||
#endif
|
||||
|
||||
f = cfs_open("contiki.cfg", CFS_WRITE);
|
||||
if(f == -1) {
|
||||
printf("Saving Config - Error\n");
|
||||
|
@ -41,12 +41,7 @@
|
||||
|
||||
; Ethernet address
|
||||
mac: .byte $00, $08, $DC ; OUI of WIZnet
|
||||
.ifdef __APPLE2__
|
||||
.byte $A2, $A2, $A2
|
||||
.endif
|
||||
.ifdef __ATARI__
|
||||
.byte $A8, $A8, $A8
|
||||
.endif
|
||||
|
||||
; Buffer attributes
|
||||
bufaddr:.res 2 ; Address
|
||||
@ -91,8 +86,6 @@ tmp := tmp4 ; Temporary value
|
||||
|
||||
;=====================================================================
|
||||
|
||||
.ifdef __APPLE2__
|
||||
|
||||
.rodata
|
||||
|
||||
fixup: .byte fixup02-fixup01, fixup03-fixup02, fixup04-fixup03
|
||||
@ -155,54 +148,6 @@ init:
|
||||
bcs :- ; Always
|
||||
:
|
||||
|
||||
.endif
|
||||
|
||||
;=====================================================================
|
||||
|
||||
.ifdef __ATARI__
|
||||
|
||||
.rodata
|
||||
|
||||
pdtab: .byte %00000001
|
||||
.byte %00000010
|
||||
.byte %00000100
|
||||
.byte %00001000
|
||||
.byte %00010000
|
||||
.byte %00100000
|
||||
.byte %01000000
|
||||
.byte %10000000
|
||||
|
||||
;---------------------------------------------------------------------
|
||||
|
||||
.bss
|
||||
|
||||
pdbit: .res 1
|
||||
|
||||
;---------------------------------------------------------------------
|
||||
|
||||
mode := $D1F0
|
||||
addr := $D1F1
|
||||
data := $D1F3
|
||||
|
||||
pdvs := $D1FF ; parallel device select
|
||||
shpdvs := $0248 ; shadow parallel device select
|
||||
|
||||
;---------------------------------------------------------------------
|
||||
|
||||
.code
|
||||
|
||||
init:
|
||||
; Convert parallel device ID (1-8) to parallel device bit
|
||||
tay
|
||||
lda pdtab-1,y
|
||||
sta pdbit
|
||||
|
||||
; Select parallel device
|
||||
sta shpdvs
|
||||
sta pdvs
|
||||
|
||||
.endif
|
||||
|
||||
;=====================================================================
|
||||
|
||||
; Indirect Bus I/F mode, Address Auto-Increment
|
||||
@ -287,13 +232,6 @@ fixup14:sta data
|
||||
;---------------------------------------------------------------------
|
||||
|
||||
poll:
|
||||
.ifdef __ATARI__
|
||||
; Select parallel device
|
||||
lda pdbit
|
||||
sta shpdvs
|
||||
sta pdvs
|
||||
.endif
|
||||
|
||||
; Check for completion of previous command
|
||||
; Socket 0 Command Register: = 0 ?
|
||||
jsr set_addrcmdreg0
|
||||
@ -401,13 +339,6 @@ send:
|
||||
sta adv
|
||||
stx adv+1
|
||||
|
||||
.ifdef __ATARI__
|
||||
; Select parallel device
|
||||
lda pdbit
|
||||
sta shpdvs
|
||||
sta pdvs
|
||||
.endif
|
||||
|
||||
; Set parameters for transmitting data
|
||||
lda #>$4000 ; Socket 0 TX Base Address
|
||||
ldx #$01 ; Write
|
||||
|
@ -33,14 +33,16 @@
|
||||
|
||||
ifdef SLIP
|
||||
DEFINES += STATIC_DRIVER=atrxrdev_ser
|
||||
else
|
||||
DEFINES += STATIC_DRIVER=cs8900a
|
||||
endif
|
||||
|
||||
ETHERNET_SOURCEFILES = cs8900a.S w5100.S
|
||||
ETHERNET_SOURCEFILES = cs8900a.S
|
||||
|
||||
CONTIKI_CPU = $(CONTIKI)/cpu/6502
|
||||
include $(CONTIKI_CPU)/Makefile.6502
|
||||
|
||||
SHADOW_RAM_SOURCEFILES = ethernet.c ethernet-drv.c timer.c uip.c uiplib.c
|
||||
SHADOW_RAM_SOURCEFILES = ethernet.c uip.c uiplib.c
|
||||
SHADOW_RAM2_SOURCEFILES = clock.c uip_arch.c uip_arp.c unload.c random.c
|
||||
|
||||
# Set target-specific variable values
|
||||
@ -62,7 +64,6 @@ ifdef SLIP
|
||||
cp $(CONTIKI)/tools/6502/sample.cfg atr/contiki.cfg
|
||||
else
|
||||
cp $(CONTIKI)/tools/$(TARGET)/sample.cfg atr/contiki.cfg
|
||||
cp cs8900a.$(TARGET) atr/cs8900a.eth
|
||||
endif
|
||||
ifeq ($(findstring WITH_MOUSE,$(DEFINES)),WITH_MOUSE)
|
||||
cp $(CC65_TARGET_DIR)/drv/mou/atrxst.mou atr/contiki.mou
|
||||
|
@ -5,10 +5,9 @@ The platform/atarixl/ directory is used for targeting an Atari XL computer.
|
||||
Most things are shared between the 6502-based targets so please consult
|
||||
cpu/6502/README.md for further details.
|
||||
|
||||
The following Atari XL Ethernet devices are supported:
|
||||
The following Atari XL Ethernet device is supported:
|
||||
|
||||
- Dragon Cart: cs8900a.eth
|
||||
- Dracarys: w5100.eth
|
||||
- Dragon Cart
|
||||
|
||||
The 'disk' make goal requires HiassofT's dir2atr program. It is available at
|
||||
https://www.horus.com/~hias/atari/ - either as source code (being part of the
|
||||
|
@ -197,87 +197,67 @@ atari: contiki-atari.zip
|
||||
atari-clean: atarixl-cleanmakes
|
||||
rm -f contiki-atari.zip contiki-atari-1.atr contiki-atari-2.atr contiki-atari-3.atr contiki-atari.atr
|
||||
|
||||
contiki-atari.zip: contiki-atari-1.atr contiki-atari-2.atr contiki-atari-3.atr contiki-atari-4.atr contiki-atari-5.atr contiki-atari.atr
|
||||
contiki-atari.zip: contiki-atari-1.atr contiki-atari-2.atr contiki-atari-3.atr contiki-atari.atr
|
||||
|
||||
contiki-atari-1.atr: atarixl-makes
|
||||
mkdir atr
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
cp ../../cpu/6502/$(DEV)config/$(DEV)config.atarixl atr/$(DEV)confi.com
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/webbrowser/webbrowser.atarixl atr/webbrows.com
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
cp ../../cpu/6502/ethconfig/cs8900a.atarixl atr/cs8900a.eth
|
||||
cp ../../cpu/6502/ethconfig/w5100.atarixl atr/w5100.eth
|
||||
cp ../../cpu/6502/serconfig/serconfig.atarixl atr/serconfi.com
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxjoy.mou atr/joy.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtrk.mou atr/trk.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtt.mou atr/tt.mou
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/webbrowser/webbrowser.atarixl atr/webbrows.com
|
||||
cp ../../examples/wget/wget.atarixl atr/wget.com
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxjoy.mou atr/joy.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtrk.mou atr/trk.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtt.mou atr/tt.mou
|
||||
$(DIR2ATR) -b Dos25 1040 $@ atr
|
||||
rm -r atr
|
||||
|
||||
contiki-atari-2.atr: atarixl-makes
|
||||
mkdir atr
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
cp ../../cpu/6502/$(DEV)config/$(DEV)config.atarixl atr/$(DEV)confi.com
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/wget/wget.atarixl atr/wget.com
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
cp ../../cpu/6502/ethconfig/cs8900a.atarixl atr/cs8900a.eth
|
||||
cp ../../cpu/6502/ethconfig/w5100.atarixl atr/w5100.eth
|
||||
cp ../../cpu/6502/serconfig/serconfig.atarixl atr/serconfi.com
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxjoy.mou atr/joy.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtrk.mou atr/trk.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtt.mou atr/tt.mou
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/irc/irc-client.atarixl atr/irc.com
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxjoy.mou atr/joy.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtrk.mou atr/trk.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtt.mou atr/tt.mou
|
||||
$(DIR2ATR) -b Dos25 1040 $@ atr
|
||||
rm -r atr
|
||||
|
||||
contiki-atari-3.atr: atarixl-makes
|
||||
mkdir atr
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
cp ../../cpu/6502/$(DEV)config/$(DEV)config.atarixl atr/$(DEV)confi.com
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/irc/irc-client.atarixl atr/irc.com
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
cp ../../cpu/6502/ethconfig/cs8900a.atarixl atr/cs8900a.eth
|
||||
cp ../../cpu/6502/ethconfig/w5100.atarixl atr/w5100.eth
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxjoy.mou atr/joy.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtrk.mou atr/trk.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtt.mou atr/tt.mou
|
||||
$(DIR2ATR) -b Dos25 1040 $@ atr
|
||||
rm -r atr
|
||||
|
||||
contiki-atari-4.atr: atarixl-makes
|
||||
mkdir atr
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
cp ../../cpu/6502/$(DEV)config/$(DEV)config.atarixl atr/$(DEV)confi.com
|
||||
ifdef SLIP
|
||||
cp ../../cpu/6502/serconfig/serconfig.atarixl atr/serconfi.com
|
||||
endif
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/webserver/webserver-example.atarixl atr/webserv.com
|
||||
cp ../../examples/telnet-server/telnet-server.atarixl atr/telnetd.com
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
cp ../../cpu/6502/ethconfig/cs8900a.atarixl atr/cs8900a.eth
|
||||
cp ../../cpu/6502/ethconfig/w5100.atarixl atr/w5100.eth
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
@ -291,33 +271,13 @@ endif
|
||||
$(DIR2ATR) -b Dos25 1040 $@ atr
|
||||
rm -r atr
|
||||
|
||||
contiki-atari-5.atr: atarixl-makes
|
||||
mkdir atr
|
||||
cp ../atarixl/dos25/dos.sys atr/dos.sys
|
||||
cp ../atarixl/dos25/dup.sys atr/dup.sys
|
||||
cp ../../cpu/6502/$(DEV)config/$(DEV)config.atarixl atr/$(DEV)confi.com
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/telnet-server/telnet-server.atarixl atr/telnetd.com
|
||||
ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
cp ../../cpu/6502/ethconfig/cs8900a.atarixl atr/cs8900a.eth
|
||||
cp ../../cpu/6502/ethconfig/w5100.atarixl atr/w5100.eth
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxjoy.mou atr/joy.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtrk.mou atr/trk.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxtt.mou atr/tt.mou
|
||||
$(DIR2ATR) -b Dos25 1040 $@ atr
|
||||
rm -r atr
|
||||
|
||||
contiki-atari.atr: atarixl-makes
|
||||
mkdir atr
|
||||
cp ../atarixl/mydos4534/dos.sys atr/dos.sys
|
||||
cp ../atarixl/mydos4534/dup.sys atr/dup.sys
|
||||
cp ../../cpu/6502/$(DEV)config/$(DEV)config.atarixl atr/$(DEV)confi.com
|
||||
ifdef SLIP
|
||||
cp ../../cpu/6502/serconfig/serconfig.atarixl atr/serconfi.com
|
||||
endif
|
||||
cp ../../cpu/6502/ipconfig/ipconfig.atarixl atr/ipconfig.com
|
||||
cp ../../examples/webbrowser/webbrowser.atarixl atr/webbrows.com
|
||||
cp ../../examples/wget/wget.atarixl atr/wget.com
|
||||
@ -328,8 +288,6 @@ ifdef SLIP
|
||||
cp default.cfg atr/contiki.cfg
|
||||
else
|
||||
cp ../atarixl/default.cfg atr/contiki.cfg
|
||||
cp ../../cpu/6502/ethconfig/cs8900a.atarixl atr/cs8900a.eth
|
||||
cp ../../cpu/6502/ethconfig/w5100.atarixl atr/w5100.eth
|
||||
endif
|
||||
cp $(CC65)/atarixl/drv/mou/atrxst.mou atr/contiki.mou
|
||||
cp $(CC65)/atarixl/drv/mou/atrxami.mou atr/ami.mou
|
||||
|
Loading…
Reference in New Issue
Block a user