I have managed to add a definition to match the Aurix processor but the library utilises the PORTA and PINA type of references.
So from what I can tell the definition will require setting the references to the pin numbers.
The library can be found here:
github.com/prenticedavid/MCUFRIEND_kbvThe custom definition I have created within the mcufriend_special.h is as follows (as per the pins I was using on a Mega2560:
#elif defined(__TC37XX__) && defined(USE_MEGA_8BIT_SHIELD_CUSTOM)
#warning USE_MEGA_8BIT_SHIELD for vagos21
#define RD_PORT PORTL
#define RD_PIN 6 //PL6 (D43). Graham has PA15 (D24) on Due Shield
#define WR_PORT PORTG
#define WR_PIN 2 //D39 CTE
#define CD_PORT PORTK
#define CD_PIN 6 //A14 CTE a14
#define CS_PORT PORTK
#define CS_PIN 7 //A15 CTE a15
#define RESET_PORT PORTG
#define RESET_PIN 0 //D41 CTE
#define write_8(x) { PORTA = x;}
#define read_8() ( PINA )
#define setWriteDir() { DDRA = 0xFF; }
#define setReadDir() { DDRA = 0x00; }
#define write8(x) { write_8(x); WR_ACTIVE; WR_STROBE; } // HX8357-D is slower
#define write16(x) { uint8_t h = (x)>>8, l = x; write8(h); write8(l); }
#define READ_8(dst) { RD_STROBE; dst = read_8(); RD_IDLE; }
#define READ_16(dst) { RD_STROBE; dst = read_8(); RD_IDLE; RD_STROBE; dst = (dst<<8) | read_8(); RD_IDLE; }
#define PIN_LOW(p, b) (p) &= ~(1<<(b))
#define PIN_HIGH(p, b) (p) |= (1<<(b))
#define PIN_OUTPUT(p, b) *(&p-1) |= (1<<(b))