STing Driver coding

GFA, ASM, STOS, ...

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
Arne
Captain Atari
Captain Atari
Posts: 395
Joined: Thu Nov 01, 2007 10:01 am

STing Driver coding

Postby Arne » Mon Mar 20, 2017 7:57 am

Folks,
I got a question regarding on how-to program a driver for STing.
I think (!) that the driver which accesses the hardware is this STX file. Right or wrong?
Is there a How-To with demo code that driver?

Thanx, Arne
Image

mikro
Atari God
Atari God
Posts: 1187
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: STing Driver coding

Postby mikro » Mon Mar 20, 2017 9:05 am

Which STX file?

Anyway, if you're targeting something else than bare ST, I'd advise to look into FreeMiNT drivers instead and before you ask, yes it does have an example driver included: https://github.com/freemint/freemint/bl ... dummyeth.c ;)

User avatar
Arne
Captain Atari
Captain Atari
Posts: 395
Joined: Thu Nov 01, 2007 10:01 am

Re: STing Driver coding

Postby Arne » Mon Mar 20, 2017 9:15 am

mikro wrote:Anyway, if you're targeting something else than bare ST


No, I am asking only for STing - nothing else.
Image

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4765
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: STing Driver coding

Postby simonsunnyboy » Tue Mar 21, 2017 4:45 pm

I am totally unaware of Sting driver internal documentation. However the STIK API is the one Sting does provide to applications.

Maybe it is easier to write a custom driver outside of Sting that conforms to providing the STIK API by itself?
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

czietz
Hardware Guru
Hardware Guru
Posts: 423
Joined: Tue May 24, 2016 6:47 pm

Re: STing Driver coding

Postby czietz » Tue Mar 21, 2017 6:13 pm

Not exactly a demo driver, but Thomas Redelsberger's Ethernet driver for STinG comes with full source code -- mostly in assembler though. It is still available via the Internet Archive: http://web.archive.org/web/201604291704 ... /index.htm

EDIT: Oh, and with Google I just found this: http://www.mbernstein.de/atari/prog/infos/sting/ -- a German guide on the STinG API that says it also covers STX module programming.

User avatar
Arne
Captain Atari
Captain Atari
Posts: 395
Joined: Thu Nov 01, 2007 10:01 am

Re: STing Driver coding

Postby Arne » Wed Mar 22, 2017 11:57 am

czietz wrote:EDIT: Oh, and with Google I just found this: http://www.mbernstein.de/atari/prog/infos/sting/ -- a German guide on the STinG API that says it also covers STX module programming.


Found that, too. Unfortunately just translation of the information about data structures in STING.HYP itself.
Anyway: I found the sources of STing here on the forum. Pretty ugly C code (with errors) but ASM is nicely documented.
Image


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 0 guests