DoStuff Wiki
Attachments
History
Blame
View Source
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Changelog
Page Index
Hardware
Backplane
Board Features
Memory Map
News
20260512 - Increased Cpu Speed
Programming
Examples
Duart
PIT
Handling Interrupts
Machine Library
MMU
Reference Material
Runtime
Toolchains
Project Ideas
Operating System
Gloworm Port
Linux Port
Atari Vector Generator
Ethernet Card
Keyboard Controller
Monitor
BIOS
Books
Datasheets
Getting Connected
Home
Specs and Tech Notes
Programming
Machine Library
0c5486
Commit
0c5486
2026-03-24 15:10:57
Bob Green
: -/-
programming/machine library.md
..
@@ 38,3 38,13 @@
void clear_led(int lednum);
```
Where `lednum` is an integer in the range of 5 through to 10, as per the table above. Any other value will be silently ignored.
+
+
## Compact Flash
+
+
```C
+
void _cf_wait_busy(void);
+
void _cf_wait_data(void);
+
void cf_init(void);
+
int cf_read(uint8_t drive_num, uint32_t sector, uint8_t *buffer);
+
+
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9