How kororos/avrx works
AvrX is an AVR real-time kernel and supporting library. An embedded application uses kernel tasking and synchronization primitives; the repository also provides message passing, timers, priority control, EEPROM access, single-step support, a FIFO, and optional monitor/serial utilities. The excerpts show the FIFO’s semaphore calls and kernel data definitions, but not the assembly runtime’s call graph, so those relationships are left unasserted.
Main entry points: AvrXFifo.c Byte FIFO · avrx.h Kernel API · AvrXKernel.c Kernel data · AvrXFifo.h FIFO interface
Components 25
Kernel and tasking
- Kernel data
AvrXKernel.c - Kernel API
avrx.h - Task scheduling
avrx_tasking.S - Rescheduling
avrx_reschedule.S - Task suspension
avrx_suspend.S - Task termination
avrx_terminate.S - Priority control
avrx_priority.S
Synchronization and messaging
- Semaphores
avrx_semaphores.S - Semaphore operations
avrx_resetsemaphore.S - Message passing
avrx_message.S - Message receive
avrx_recvmessage.S - FIFO interface
AvrXFifo.h - Byte FIFO
AvrXFifo.c
Timers and interrupts
- Timer queue
avrx_timequeue.S - Timer messages
avrx_starttimermessage.S - Timer cancellation
avrx_canceltimer.S - Single stepping
avrx_singlestep.S - Interrupt setup
avrx_generatesinglestepinterrupt.S
Utilities and hardware
- EEPROM access
avrx_eeprom.S - Monitor
monitor.S - Serial I/O
serialio.S - I/O compatibility
avrx-io.h - Interrupt compatibility
avrx-signal.h - Serial service
serialio.h
Other components
- AVR application
Connections 5
- Byte FIFO → Semaphores: sets semaphores
AvrXFifo.c - Byte FIFO → Semaphore operations: resets semaphores
AvrXFifo.c - Byte FIFO → Kernel API: uses API
AvrXFifo.c - FIFO interface → Kernel API: includes API
AvrXFifo.h - Kernel data → Kernel API: includes API
AvrXKernel.c