IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

Direct Hardware Access

Detailed Description

This is for experts only.

The @CHIP-RTOS-PPC provides many API functions to access the hardware. Normally, the user should use these API functions and there should be no need for a direct access to the hardware resources. Just for the case that these @CHIP-RTOS-PPC API functions are insufficient or a API is missing, the CLIB provides a variable that can be used to access the MPC5200B processor MBAR registers directly from the application.

To gain access to the MBAR hardware resources, the user has to call RTX_MemWindow(). Here's an example:

// Get access to hardware resources (MBAR area)
error = RTX_MemWindow(&MpcReg, sizeof(MpcReg));

if (!error)
  // Read PCI clock select register
  reg = MpcReg.mpc_Cdm.pci_clk_sel;

  // ...

Note: You can easily crash the entire system when your application has access to the MBAR area and any programming errors are present. There's also a risk to interfere with devices needed by the system.


 MPC5200B MBAR registers.

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Thu Nov 1 13:20:15 2018 by Doxygen 1.6.1