14 #define PORT_TYPE uint8_t //Size of the port variables
15 #define PINMASK_TYPE uint8_t
16 #define COMPARE_TYPE uint16_t
17 #define COUNTER_TYPE uint16_t
18 #define SERIAL_BUFFER_SIZE 517 //Size of the serial buffer used by new comms protocol. For SD transfers this must be at least 512 + 1 (flag) + 4 (sector)
19 #define FPU_MAX_SIZE 32 //Size of the FPU buffer. 0 means no FPU.
20 #define SD_LOGGING //SD logging enabled by default for Teensy 3.5 as it has the slot built in
21 #define BOARD_MAX_DIGITAL_PINS 57
22 #define BOARD_MAX_IO_PINS 57
23 #define BOARD_MAX_ADC_PINS 26 //Number of analog pins
33 #define SD_CONFIG SdioConfig(FIFO_SDIO) //Set Teensy to use SDIO in FIFO mode. This is the fastest SD mode on Teensy as it offloads most of the writes
34
35 #define micros_safe() micros() //timer5 method is not used on anything but AVR, the micros_safe() macro is simply an alias for the normal micros()
117 #define uS_TO_TIMER_COMPARE(uS) ((uS * 15) >> 5) //Converts a given number of uS into the required number of timer ticks until that time has passed.