Program Samples
eRTOS SDK includes several program samples to help developers create real-time programs to run in the eRTOS real-time environment. You can access code samples in the Public Documents\IntervalZero\MaxRT\eRTOS SDK\1.0\Samples\ directory.
Important: These samples are provided to show concepts only. They do not include full error checking that would normally exist in customer applications.
RTSS samples:
| Sample | Description |
|---|---|
|
Measures the latency for switching between two threads using Intel AMX instructions. |
|
|
Demonstrates the usage of Intel AMX technology in the nested situation. |
|
| FastSemaphore |
Demonstrates the usage and abilities of the FastSemaphore functions. |
| IPCLatency | Measures the latency for switching between two threads. |
| IPCPairLatency | Measures latencies from process B signal to process A wake-up. |
| Mailbox | Creates an instance of a mailbox that is thread-safe. |
|
Runs a System Response Timer on different cores simultaneously, measuring the difference between the expected timer interval and the actual timer interval. |
|
| Searches for devices on the machine's PCI buses. When a device is found, the PCI configuration information is printed to the screen. | |
| Spawns off two threads that signal each other back and forth for a set amount of time. After the time has expired, the main thread signals the threads to complete and end the program. | |
| Provides an example of how to use eRTOS-supported Intel® Resource Director Technology (RDT) to optimize the performance of Real-time threads with high-performance requirements. | |
| Demonstrates using CRT functions - _beginthreadex and _endthreadex. | |
| Displays system information including speed and type of processor running eRTOS, HAL type, CPU utilization and other information that can be used to help measure Process application load. | |
| SimpleDataExchange | Detects whether an event is open or not. |
|
Builds two applications:
|
|
| SMP Sample | Spawns three threads in a suspended state and assigns a processor to run each thread using a round-robin technique. |
| Measures timer delivery latencies using the eRTOS synchronized clock and timers and prints the results. | |
| SrtmDateTime | Measures system response time and calculates duration by retrieving and comparing date and time from different RTAPIs, leading to deviations due to varying hardware resources. |
|
Demonstrates the functionality of Structured Exception Handling (SEH) in eRTOS. The sample generates different types of hardware exception in the _try guarded block based on input exception type. |
|
| TimingAlloc | Measures malloc/free performance. |
| TimingAllocMt | Measures malloc/free performance in a multi-threading case. |
| FLSTest | Demonstrates using FLS functions to manipulate FLS associated with the current thread. |
| IntelProE1000 | Demonstrates attaching multiple ISRs and ISTs using line-based or MSI/MSI-X interrupts for multiple Intel® Pro 1000 PT server adapters. |
| MultiIntrModeI225 | Demonstrates attaching multiple ISRs and ISTs using line-based or MSI/MSI-X interrupts for multiple Intel I225/I226 adapters. |
| MultiVectorI350 | Demonstrates attaching multiple interrupt vectors using MSI-X interrupts for Intel I350 Ethernet adapter. |
| PCIDIO | Demonstrates attaching line-based interrupts on PCIDIO line-based interrupt cards. |
RTDLL samples:
| Sample | Description |
|---|---|
| RTDLL |
Demonstrates using a Real-time Dynamic Linked Library (RTDLL) in a Real-time process. RTDLLs provide library functionality to RTSS applications, similar to how DLLs are used in Windows applications. |
| TLSTest | Demonstrates using explicit and implicit thread local storage (TLS) in a Real-Time process. |
TCP/IP samples:
| Sample | Description |
|---|---|
| RtTcpipClient |
TCP or UDP echo client application used for testing Real Time TCP/IP protocol stack. |
| RtTcpipServer | TCP or UDP echo server application used for testing Real Time TCP/IP protocol stack. |