* Author: Michal Horn
*
* This file contains gpio pins definitions
- * On TMS570 MCU pins can operates as GIO on ports DMM, GIOA, GIOB, HET1 and HET2. Those pins, that are defined in this
- * file, can be accessed directly as GPIO by hal_gpio_set_value and hal_gpio_get_value. Pin configuration can be modified
- * by functions defined in hal_gpio_tms570 source and header files.
*
- * NOTE: Although the configuration functions are implemented and should be ready to use, they were only slightly tested and are not used by the RPP software yet.
+ * On TMS570 MCU pins can operates as GIO on ports DMM, GIOA, GIOB,
+ * HET1 and HET2. Those pins, that are defined in this file, can be
+ * accessed directly as GPIO by hal_gpio_set_value and
+ * hal_gpio_get_value. Pin configuration can be modified by functions
+ * defined in hal_gpio_tms570 source and header files.
+ *
+ * NOTE: Although the configuration functions are implemented and
+ * should be ready to use, they were only slightly tested and are not
+ * used by the RPP software yet.
*
*/
//#include "hal/gpio_tms570_def.h"
#include "hal/hal.h"
-/** Array of ports used as GPIO. Thanks to that array, we can determine port just by index in pin_desc at 5th bit */
+/**
+ * Array of ports used as GPIO. Thanks to that array, we can
+ * determine port just by index in pin_desc at 5th bit */
gioPORT_t* port_id_map[MAX_PORT_CNT] = {
(gioPORT_t*) dmmPORT,
(gioPORT_t*) gioPORTA,
(gioPORT_t*) hetPORT2
};
-/** Map of pin names to pin descriptors. Each pin can be then easily found just by its name given as a string to hal_gpio_get_pin_dsc function*/
+/**
+ * Map of pin names to pin descriptors. Each pin can be then easily
+ * found just by its name given as a string to hal_gpio_get_pin_dsc
+ * function*/
pin_map_element_t pin_map[MAX_PIN_CNT] = {
/* DMM pins */
{ .pin_name = PIN_NAME_FANCTRL, .pin_desc = PIN_DSC_FANCTRL },
{ .pin_name = PIN_NAME_UNUSED, .pin_desc = PIN_DSC_HET2_UNUSED(30) },
{ .pin_name = PIN_NAME_UNUSED, .pin_desc = PIN_DSC_HET2_UNUSED(31) }
};
-
-