#define PORT_SW_MINOR_VERSION 0
#define PORT_SW_PATCH_VERSION 0
+/** @req PORT114 */
#define PORT_AR_MAJOR_VERSION 3
#define PORT_AR_MINOR_VERSION 1
#define PORT_AR_PATCH_VERSION 0
+#include "Modules.h"
#include "Port_Cfg.h" /** @req PORT130 */
#if (PORT_VERSION_INFO_API == STD_ON)
-void
-Port_GetVersionInfo(Std_VersionInfoType *versionInfo);
+void Port_GetVersionInfo(Std_VersionInfoType *versionInfo);
#endif
/** @name Error Codes */
#define PORT_E_PARAM_INVALID_MODE 0x0d
#define PORT_E_MODE_UNCHANGEABLE 0x0e
#define PORT_E_UNINIT 0x0f
+#define PORT_E_PARAM_POINTER 0x10
//@}
/** @name Service id's */
PORT_PIN_IN = 0, PORT_PIN_OUT,
} Port_PinDirectionType;
-void
-Port_Init(const Port_ConfigType *configType);
-#if ( PORT_PIN_DIRECTION_CHANGES_ALLOWED == STD_ON )
-void
-Port_SetPinDirection(Port_PinType pin, Port_PinDirectionType direction);
+#if defined(CFG_HC1X)
+/** @req PORT124 */
+typedef uint8 Port_PinModeType;
+#else // CFG_PPC, CFG_STM32_STAMP and others
+typedef uint32 Port_PinModeType;
#endif
-void
-Port_RefreshPortDirection(void);
+
+void Port_Init(const Port_ConfigType *configType);
+
+#if ( PORT_SET_PIN_DIRECTION_API == STD_ON )
+void Port_SetPinDirection(Port_PinType pin, Port_PinDirectionType direction);
+#endif
+
+void Port_RefreshPortDirection(void);
+
#if (PORT_SET_PIN_MODE_API == STD_ON)
-void
-Port_SetPinMode(Port_PinType Pin, Port_PinModeType Mode);
+void Port_SetPinMode(Port_PinType Pin, Port_PinModeType Mode);
#endif
+typedef volatile struct pinMuxKicker
+{
+ uint32 KICKER0; /* kicker 0 register */
+ uint32 KICKER1; /* kicker 1 register */
+} pinMuxKICKER;
+
+/** @def kickerReg
+* @brief Pin Muxing Kicker Register Frame Pointer
+* - used to enable and disable muxing across the device.
+*/
+#define kickerReg ((pinMuxKICKER *) 0xFFFFEA38)
+
#endif /*PORT_H_*/
/** @} */