works as long as AppleShare is disabled...boot into BASIC, then set normal speed (1.0 MHz) & hit Ctrl-Reset before running executable

git-svn-id: https://svn.salfter.gotdns.org/svn/a2bfc/trunk@82 1b90f75b-8b96-4784-87c0-14078182fce6
This commit is contained in:
(no author)
2007-09-19 05:14:54 +00:00
parent 1cdedc5e4a
commit 8e9e64ccbe
10 changed files with 247 additions and 75 deletions

16
ow.c Normal file
View File

@@ -0,0 +1,16 @@
#include "ow.h"
void ow_selectdevice(unsigned char* devid)
{
ow_reset();
ow_writebyte(85);
ow_writebyte(devid[0]);
ow_writebyte(devid[1]);
ow_writebyte(devid[2]);
ow_writebyte(devid[3]);
ow_writebyte(devid[4]);
ow_writebyte(devid[5]);
ow_writebyte(devid[6]);
ow_writebyte(devid[7]);
return;
}