Name

Peripheral Power Control — Description

Synopsis

#include <cyg/hal/hal_io.h>
    

pin = CYGHWR_HAL_L1XX_POWER( device );

CYGHWR_HAL_L1XX_POWER_ENABLE ( desc );

CYGHWR_HAL_L1XX_POWER_DISABLE ( desc );

Description

The OMAP L1XX HAL provides a number of macros to support the management of peripheral power. The macro CYGHWR_HAL_L1XX_POWER( device ) encodes a power control descriptor into a 32 bit value. The argument is the name of the device to be described.

The remaining functions all take a peripheral power descriptor as an argument. CYGHWR_HAL_L1XX_POWER_ENABLE( desc ) transitions the given device to enabled state in its PSC controller. Likewise CYGHWR_HAL_L1XX_POWER_DISABLE( desc ) transitions the device to disabled state.