If i understand usb gpib schematic attached and the sparkfun 32u4 board pins_arduino.h file i have trying to understand the pinout functions
D3 would be 32u4 physical pin 18 (PD0) to gpib pin 1 DIO1
D2 would be 32u4 physical pin 19 (PD1) to gpib pin 2 DIO2
D0 would be 32u4 physical pin 20 (PD2) to gpib pin 3 DIO3
D1 would be 32u4 physical pin 21 (PD3) to gpib pin 4 DIO4
D8 would be 32u4 physical pin 28 (PB4) to gpib pin 5 EOI
D10 would be 32u4 physical pin 30 (PB6) to gpib pin 6 DAV
D5 would be 32u4 physical pin 31 (PC6) to gpib pin 7 NRFD
D13 would be 32u4 physical pin 32 (PC7) to gpib pin 8 NDAC
?? would be 32u4 physical pin 33 (PE2) to gpib pin 9 IFC HWB on a leonardo it is going to ground with an resistor
A0 would be 32u4 physical pin 36 (PF7) to gpib pin 10 SRQ
A1 would be 32u4 physical pin 37 (PF6) to gpib pin 11 ATN
D4 would be 32u4 physical pin 25 (PD4) to gpib pin 13 DIO5
?? would be 32u4 physical pin 22 (PD5) to gpib pin 14 DIO6 on a leonardo it is a tx led ??
D12 would be 32u4 physical pin 26 (PD6) to gpib pin 15 DIO7
D6 would be 32u4 physical pin 27 (PD7) to gpib pin 16 DIO8
D9 would be 32u4 physical pin 29 (PB5) to gpib pin 17 REN
?? 32u4 physical pin 38 (PF5) led status on a leonardo gives A2
Should became like this ?
#ifdef AR488_CUSTOM
#define DIO1 D3 /* GPIB 1 */
#define DIO2 D2 /* GPIB 2 */
#define DIO3 D0 /* GPIB 3 */
#define DIO4 D1 /* GPIB 4 */
#define DIO5 D4 /* GPIB 13 */
#define DIO6
/* GPIB 14 */ ------------------------
#define DIO7 D12 /* GPIB 15 */
#define DIO8 D6 /* GPIB 16 */
#define IFC HWB /* GPIB 9 */ ------------------------
EDITED#define NDAC D13 /* GPIB 8 */
#define NRFD D5 /* GPIB 7 */
#define DAV D10 /* GPIB 6 */
#define EOI D8 /* GPIB 5 */
#define SRQ A0 /* GPIB 10 */
#define REN D9 /* GPIB 17 */
#define ATN A1 /* GPIB 11 */
and the led status
--------------- A2
EDITEDI'm trying to see or understand where you kinda "switch" the definition pinout ?
Between the analog and digital pins if i may say
I've tried to check other 32u4 related configs, but some of them "null out" previous pinout and substitue/change them ?
In the ar488 master repo, you have this "micro.rst" file, it seems to fit a bit, not totally, is it used when compiling ?