PciScanBus Sample
Description
This sample program searches for devices on the machine's PCI buses. When a device is found, the PCI configuration information is printed to the screen.
Source Files
| File | Description |
|---|---|
| PciScanBus.c | Searches for devices on the machine's PCI buses. When a device is found, the PCI configuration information is printed to the screen. |
Building the Sample
- Open a project file in the corresponding Visual Studio version you use for development.
- Build the project.
Running the Sample
To run the sample:
- Boot the system in its Windows Boot Configuration.
- Navigate to
<InstallDrive>\MaxRT\eRTOS\. - Right-click AutoStart.bat and select Edit.
- Write the Run command(s) for PciScanBus.
Note: For more information on Run commands, see Run.
- Re-boot the system from a GRUB bootable USB drive or hard drive.
- Select the desired GRUB boot configuration. See GRUB Boot Configurations for more information.
- Upon system boot, the sample(s) will run automatically after the eRTOS Kernel startup.
- Sample output will be displayed on the screen when the program ends.
- Re-boot the system in its Windows Boot Configuration.
- Navigate to
<InstallDrive>\MaxRT\eRTOS\. - Open the RtLogFile.txt log file to view sample output.