]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/include/hal/_tms570_hydctr/port_def.h
Give the HAL functions better names
[pes-rpp/rpp-lib.git] / rpp / include / hal / _tms570_hydctr / port_def.h
index 5095a1997aa798112a61669980aef9f60202f934..3ec81801eb2094fc76990c3f97c0095dcf0c0e7e 100644 (file)
@@ -62,16 +62,16 @@ typedef struct port_def_st {
 #define PORT_CFG_GIOA           { PIN_DSC_GIOA0, PIN_DSC_GIOA1, PIN_DSC_GIOA2, PIN_DSC_GIOA3, \
                                                                  PIN_DSC_GIOA4, PIN_DSC_GIOA5, PIN_DSC_GIOA6, PIN_DSC_GIOA7 }
 #define PORT_NV_GIOA            8
-#define PORT_GFC_GIOA           &hal_gio_port_get_val
-#define PORT_SFC_GIOA           &hal_gio_port_set_val
+#define PORT_GFC_GIOA           &hal_gpio_port_get_val
+#define PORT_SFC_GIOA           &hal_gpio_port_set_val
 #define PORT_INT_TYPE_GIOA      PORT_INTERFACE_GPIO
 
 #define PORT_NAME_GIOB          "GIOB"
 #define PORT_CFG_GIOB           { PIN_DSC_GIOB0, PIN_DSC_GIOB1, PIN_DSC_GIOB2, PIN_DSC_GIOB3, \
                                                                  PIN_DSC_GIOB4, PIN_DSC_GIOB5, PIN_DSC_GIOB6, PIN_DSC_GIOB7 }
 #define PORT_NV_GIOB            8
-#define PORT_GFC_GIOB           &hal_gio_port_get_val
-#define PORT_SFC_GIOB           &hal_gio_port_set_val
+#define PORT_GFC_GIOB           &hal_gpio_port_get_val
+#define PORT_SFC_GIOB           &hal_gpio_port_set_val
 #define PORT_INT_TYPE_GIOB      PORT_INTERFACE_GPIO
 
 /* Some pins are commented out, because they are muxed with SCI.  */
@@ -85,8 +85,8 @@ typedef struct port_def_st {
                                                                   PIN_DSC_NHET1_24, PIN_DSC_NHET1_25, PIN_DSC_NHET1_26, PIN_DSC_NHET1_27, \
                                                                   PIN_DSC_NHET1_28, PIN_DSC_NHET1_29, PIN_DSC_NHET1_30, PIN_DSC_NHET1_31 }
 #define PORT_NV_NHET1            30
-#define PORT_GFC_NHET1           &hal_gio_port_get_val
-#define PORT_SFC_NHET1           &hal_gio_port_set_val
+#define PORT_GFC_NHET1           &hal_gpio_port_get_val
+#define PORT_SFC_NHET1           &hal_gpio_port_set_val
 #define PORT_INT_TYPE_NHET1      PORT_INTERFACE_GPIO
 
 #define PORT_ADC_CHANNEL_NUM    16