Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Class List | Directories | File List | File Members | Related Pages

Port.h

Go to the documentation of this file.
00001 
00017 #ifndef PORT_H
00018  #define PORT_H
00019  
00020  #include "Pwm_Cfg.h"
00021  #include "Derivative.h"
00022  /*----------------------------- Defines ------------------------*/
00024  #define SET_AS_OUTPUT                             (0x020C)
00025 
00026  #define SIU_PCR_ADDR(PCR_OFFSET)                  (SIU_PCR(PCR_OFFSET) = (SET_AS_OUTPUT))  
00027 
00028  #define SIU_GPDO_ADDR(GPDO_OFFSET,u8OutputState)  (SIU_GPDO(GPDO_OFFSET) = (uint8_t)(u8OutputState))
00029 
00030  #define TOGGLE_PIN(GPDO_OFFSET)                   (SIU_GPDO(GPDO_OFFSET) = ((1) ^ (SIU_GPDO(GPDO_OFFSET))))
00031 
00032  #define SET_PIN_HIGH(GPDO_OFFSET)                 (SIU_GPDO(GPDO_OFFSET) = (uint8_t)(1))
00033 
00034  #define SET_PIN_LOW(GPDO_OFFSET)                  (SIU_GPDO(GPDO_OFFSET) = (uint8_t)(0))
00035  /*----------------------------- Function ------------------------*/
00036  void vfnPort_Init(const Pwm_ChannelConfigType *PortCfgPtr);
00037  
00038  #endif