]> rtime.felk.cvut.cz Git - arc.git/blobdiff - include/Port.h
LED Blinker example made running for the RPP Board.
[arc.git] / include / Port.h
index dc8af9ba9e72e9b54e3d8a1d6a335fe64c8c56a6..b393437e37948eaae071e3787270bf927239364e 100644 (file)
@@ -27,6 +27,7 @@
 #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
@@ -47,6 +48,7 @@ void Port_GetVersionInfo(Std_VersionInfoType *versionInfo);
 #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 */
@@ -58,6 +60,27 @@ void Port_GetVersionInfo(Std_VersionInfoType *versionInfo);
 #define PORT_SET_PIN_MODE_ID            0x04
 //@}
 
+/** @name DMM defines */
+#define DMM_SYNC               0
+#define DMM_CLK                        1
+#define DMM_DATA0              2
+#define DMM_DATA1              3
+#define DMM_DATA2              4
+#define DMM_DATA3              5
+#define DMM_DATA4              6
+#define DMM_DATA5              7
+#define DMM_DATA6              8
+#define DMM_DATA7              9
+#define DMM_DATA8              10
+#define DMM_DATA9              11
+#define DMM_DATA10             12
+#define DMM_DATA11             13
+#define DMM_DATA12             14
+#define DMM_DATA13             15
+#define DMM_DATA14             16
+#define DMM_DATA15             17
+#define DMM_ENA                        18
+
 /** @req PORT046
  * The type Port_PinDirectionType is a type for defining the direction of a Port Pin.
  * PORT_PIN_IN Sets port pin as input. 
@@ -77,6 +100,9 @@ typedef uint32 Port_PinModeType;
 
 void Port_Init(const Port_ConfigType *configType);
 
+void Dmm_Init(uint16 pinNumber);       // Dmm will be used as a GIO
+void Dmm_Reset(const Port_ConfigType *configType);
+
 #if ( PORT_SET_PIN_DIRECTION_API == STD_ON )
 void Port_SetPinDirection(Port_PinType pin, Port_PinDirectionType direction);
 #endif
@@ -87,5 +113,17 @@ void Port_RefreshPortDirection(void);
 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_*/
 /** @} */