-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apple2] 3.0.1 release - Support for CONFIG fuji functions
- Loading branch information
1 parent
7c34b3b
commit 1d730cc
Showing
12 changed files
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
#include <stdint.h> | ||
#include "fujinet-fuji.h" | ||
#include "fujinet-bus-apple2.h" | ||
|
||
bool fuji_disable_device(uint8_t d) | ||
{ | ||
// not supported on apple2 | ||
return false; | ||
sp_error = sp_get_fuji_id(); | ||
if (sp_error <= 0) { | ||
return false; | ||
} | ||
|
||
sp_payload[0] = 1; | ||
sp_payload[1] = 0; | ||
sp_payload[2] = d; | ||
|
||
sp_error = sp_control(sp_fuji_id, 0xD4); | ||
return sp_error == 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
#include <stdint.h> | ||
#include "fujinet-fuji.h" | ||
#include "fujinet-bus-apple2.h" | ||
|
||
bool fuji_enable_device(uint8_t d) | ||
{ | ||
// not supported on apple2 | ||
return false; | ||
sp_error = sp_get_fuji_id(); | ||
if (sp_error <= 0) { | ||
return false; | ||
} | ||
|
||
sp_payload[0] = 1; | ||
sp_payload[1] = 0; | ||
sp_payload[2] = d; | ||
|
||
sp_error = sp_control(sp_fuji_id, 0xD5); | ||
return sp_error == 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0 | ||
3.0.1 |