74 #define GetInstructionClock() (GetSystemClock()/1) // Normally GetSystemClock()/4 for PIC18, GetSystemClock()/2 for PIC24/dsPIC, and GetSystemClock()/1 for PIC32. Might need changing if using Doze modes.
75 #define GetPeripheralClock() (GetSystemClock()/1) // Normally GetSystemClock()/4 for PIC18, GetSystemClock()/2 for PIC24/dsPIC, and GetSystemClock()/1 for PIC32. Divisor may be different if using a PIC32 since it's configurable.
1300#define UC_PORT_F4_PROP (UCPORT_PROP_DIG_IN | UCPORT_PROP_DIG_OUT | UCPORT_PROP_OPEN_COL | UCPORT_PROP_RP | UCPORT_PROP_PULLUP | UCPORT_PROP_PULLDOWN | UCPORT_PROP_5V) /* Do NOT include SDA, seeing that matching SCL is not available */
1311// Auto-crossover pins on Fast 100Mbps Ethernet PICtail/PICtail Plus. If
1312// your circuit doesn't have such a feature, delete these two defines.
1313// TODO check if this is needed?
1314//#define ENC100_MDIX_TRIS (TRISBbits.TRISB5)
1315//#define ENC100_MDIX_IO (LATBbits.LATB5)
1316
1317// ENC624J600 I/O control and status pins
1318// If a pin is not required for your selected ENC100_INTERFACE_MODE
1319// interface selection (ex: WRH/B1SEL for PSP modes 1, 2, 5, and 6), then
1320// you can ignore, delete, or put anything for the pin definition. Also,
1321// the INT and POR pins are entirely optional. If not connected, comment
1322// them out.
1323//#define ENC100_INT_TRIS (TRISAbits.TRISA15) // INT signal is optional and currently unused in the Microchip TCP/IP Stack. Leave this pin disconnected and comment out this pin definition if you don't want it.
1324//#define ENC100_INT_IO (PORTAbits.RA15)
1325// PSP control signal pinout
1326//#define ENC100_CS_TRIS (TRISGbits.TRISG8) // CS is optional in PSP mode. If you are not sharing the parallel bus with another device, tie CS to Vdd and comment out this pin definition.
1327//#define ENC100_CS_IO (LATGbits.LATG8)
1328//#define ENC100_POR_TRIS (TRISEbits.TRISE9) // POR signal is optional. If your application doesn't have a power disconnect feature, comment out this pin definition.
1372 #if defined(ENC100_PSP_USE_INDIRECT_RAM_ADDRESSING) // Only ENCX24J600 address pins AD0-AD8 connected (AD9-AD14 tied to Vdd)
1373 #define ENC100_INIT_PSP_BIT_BANG() do{ANSB &= 0x7FFF;} while(0) // RE0-RE7, RF5, RD4, RD5 (AD0-AD7, AD8, WR, RD) pins are already digital only pins. RB15 (AL) needs to be made digital only.
1374
1375// TODO To optimize code size, check if F5 can be left as output!