#define MAX_PIN_CNT 46
#define MAX_PORT_CNT 5
/* Port indexes to portmap */
-#define PORT_ID_DMM 0x0
#define PORT_ID_GIOA 0x1
#define PORT_ID_GIOB 0x2
#define PORT_ID_HET1 0x3
-/* Copyright (C) 2012-2013 Czech Technical University in Prague
+/* Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* Authors:
* - Michal Horn <hornmich@fel.cvut.cz>
* 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 *)gioPORTB,
- (gioPORT_t *)hetPORT1,
- (gioPORT_t *)hetPORT2
+ [PORT_ID_DMM] = (gioPORT_t *)dmmPORT,
+ [PORT_ID_GIOA] = (gioPORT_t *)gioPORTA,
+ [PORT_ID_GIOB] = (gioPORT_t *)gioPORTB,
+ [PORT_ID_HET1] = (gioPORT_t *)hetPORT1,
+ [PORT_ID_HET2] = (gioPORT_t *)hetPORT2
};
/* Some pins are commented out, because they are pinmuxed with SCI. */
-/* Copyright (C) 2012-2013 Czech Technical University in Prague
+/* Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* Authors:
* - Michal Horn <hornmich@fel.cvut.cz>
* 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 *)gioPORTB,
- (gioPORT_t *)hetPORT1,
- (gioPORT_t *)hetPORT2
+ [PORT_ID_DMM] = (gioPORT_t *)dmmPORT,
+ [PORT_ID_GIOA] = (gioPORT_t *)gioPORTA,
+ [PORT_ID_GIOB] = (gioPORT_t *)gioPORTB,
+ [PORT_ID_HET1] = (gioPORT_t *)hetPORT1,
+ [PORT_ID_HET2] = (gioPORT_t *)hetPORT2
};
/* Some pins are commented out, because they are pinmuxed with SCI. */
-/* Copyright (C) 2012-2013 Czech Technical University in Prague
+/* Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* Authors:
* - Michal Horn <hornmich@fel.cvut.cz>
* 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 *)gioPORTB,
- (gioPORT_t *)hetPORT1,
- (gioPORT_t *)hetPORT2
+ [PORT_ID_GIOA] = (gioPORT_t *)gioPORTA,
+ [PORT_ID_GIOB] = (gioPORT_t *)gioPORTB,
+ [PORT_ID_HET1] = (gioPORT_t *)hetPORT1,
+ [PORT_ID_HET2] = (gioPORT_t *)hetPORT2
};
/* Some pins are commented out, because they are pinmuxed with SCI. */