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
be80e9
Commit
be80e9
2026-05-27 09:34:38
Bob Green
: -/-
programming/machine library.md
..
@@ 49,8 49,11 @@
```C
void _pit_reset(void);
-
unsigned int _pit_get_counter(void);
-
unsigned int _pit_set_counter(unsigned int);
+
unsigned int pit_get_counter(void);
+
unsigned int pit_set_counter(unsigned int);
+
uint32_t ticks(void);
+
void idle_for_ticks(uint32);
+
void pit_set_a(uint8_t val);
void pit_set_bits_a(uint8_t bits);
void pit_clear_bits_a(uint8_t bits);
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