The posix package contains CBoard which allows support for simulated hardware:
The output of the simulated perepherials is directed to the STDOUT.
The input of the simulated perepherials is read from STDIN.
The simulated perepherials are used for development of the hardware independent high level drivers and for the software testing.
The project NOFREACTIOVE_EXAMPLE_IO demonstrates use of the simulated perepherials.
Inplemented in POSIX package:
CBoard - Board abstraction
CLoIoProcessor - Command parser
CLoIoW32 - simulated 32 bit WO I/O
CLoIoR32 - simulated 32 bit WO I/O
CLoCAN - simulated CAN
The output is writted in the following format to the STDIO:
IO W ADDRESS DATA
The ADDRESS and the DATA are written using "%08x" format (hexadecimal format without leading 0x ).
The input is read in the following format from the STDIN:
IO R ADDRESS DATA
The ADDRESS and the DATA are read using "%08x" format (hexadecimal format without leading 0x ).
The command is acknowledged by following sentence written to the STDOUT:
IO R ACK ADDRESS DATA
The ADDRESS and the DATA are written using "%08x" format (hexadecimal format without leading 0x ).
The processing of the command by the application (read access to ADDRESS) is acknowledged by following sentence written to the STDOUT:
IO R OK ADDRESS DATA
The ADDRESS and the DATA are written using "%08x" format (hexadecimal format without leading 0x ).
The sumulated I/O shall process next simulated I/O read command after the processing acknowledge of the previous command.