Speeduino
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
board_teensy41.h File Reference
#include <Arduino.h>
#include <FlexCAN_T4.h>

Go to the source code of this file.

Macros

#define CORE_TEENSY41
 
#define COMPARE_TYPE   uint16_t
 
#define SERIAL_BUFFER_SIZE   517
 
#define FPU_MAX_SIZE   32
 
#define BOARD_MAX_DIGITAL_PINS   54
 
#define BOARD_MAX_IO_PINS   54
 
#define BOARD_MAX_ADC_PINS   17
 
#define EEPROM_LIB_H   <EEPROM.h>
 
#define RTC_ENABLED
 
#define SD_LOGGING
 
#define RTC_LIB_H   "TimeLib.h"
 
#define SD_CONFIG   SdioConfig(FIFO_SDIO)
 
#define pinIsReserved(pin)   ( ((pin) == 0) || ((pin) == 42) || ((pin) == 43) || ((pin) == 44) || ((pin) == 45) || ((pin) == 46) || ((pin) == 47) || pinIsSerial((pin)) )
 
#define INJ_CHANNELS   8
 
#define IGN_CHANNELS   8
 
#define FUEL1_COUNTER   TMR1_CNTR0
 
#define FUEL2_COUNTER   TMR1_CNTR1
 
#define FUEL3_COUNTER   TMR1_CNTR2
 
#define FUEL4_COUNTER   TMR1_CNTR3
 
#define FUEL5_COUNTER   TMR3_CNTR0
 
#define FUEL6_COUNTER   TMR3_CNTR1
 
#define FUEL7_COUNTER   TMR3_CNTR2
 
#define FUEL8_COUNTER   TMR3_CNTR3
 
#define IGN1_COUNTER   TMR2_CNTR0
 
#define IGN2_COUNTER   TMR2_CNTR1
 
#define IGN3_COUNTER   TMR2_CNTR2
 
#define IGN4_COUNTER   TMR2_CNTR3
 
#define IGN5_COUNTER   TMR4_CNTR0
 
#define IGN6_COUNTER   TMR4_CNTR1
 
#define IGN7_COUNTER   TMR4_CNTR2
 
#define IGN8_COUNTER   TMR4_CNTR3
 
#define FUEL1_COMPARE   TMR1_COMP10
 
#define FUEL2_COMPARE   TMR1_COMP11
 
#define FUEL3_COMPARE   TMR1_COMP12
 
#define FUEL4_COMPARE   TMR1_COMP13
 
#define FUEL5_COMPARE   TMR3_COMP10
 
#define FUEL6_COMPARE   TMR3_COMP11
 
#define FUEL7_COMPARE   TMR3_COMP12
 
#define FUEL8_COMPARE   TMR3_COMP13
 
#define IGN1_COMPARE   TMR2_COMP10
 
#define IGN2_COMPARE   TMR2_COMP11
 
#define IGN3_COMPARE   TMR2_COMP12
 
#define IGN4_COMPARE   TMR2_COMP13
 
#define IGN5_COMPARE   TMR4_COMP10
 
#define IGN6_COMPARE   TMR4_COMP11
 
#define IGN7_COMPARE   TMR4_COMP12
 
#define IGN8_COMPARE   TMR4_COMP13
 
#define ENABLE_BOOST_TIMER()   PIT_TCTRL1 |= PIT_TCTRL_TEN
 
#define DISABLE_BOOST_TIMER()   PIT_TCTRL1 &= ~PIT_TCTRL_TEN
 
#define ENABLE_VVT_TIMER()   PIT_TCTRL2 |= PIT_TCTRL_TEN
 
#define DISABLE_VVT_TIMER()   PIT_TCTRL2 &= ~PIT_TCTRL_TEN
 
#define ENABLE_FAN_TIMER()   TMR3_CSCTRL1 |= TMR_CSCTRL_TCF2EN
 
#define DISABLE_FAN_TIMER()   TMR3_CSCTRL1 &= ~TMR_CSCTRL_TCF2EN
 
#define BOOST_TIMER_COMPARE   PIT_LDVAL1
 
#define BOOST_TIMER_COUNTER   0
 
#define VVT_TIMER_COMPARE   PIT_LDVAL2
 
#define VVT_TIMER_COUNTER   0
 
#define FAN_TIMER_COMPARE   TMR3_COMP22
 
#define FAN_TIMER_COUNTER   TMR3_CNTR1
 
#define IDLE_COUNTER   0
 
#define IDLE_COMPARE   PIT_LDVAL0
 
#define IDLE_TIMER_ENABLE()   PIT_TCTRL0 |= PIT_TCTRL_TEN
 
#define IDLE_TIMER_DISABLE()   PIT_TCTRL0 &= ~PIT_TCTRL_TEN
 
#define SECONDARY_SERIAL_T   HardwareSerial
 
#define NATIVE_CAN_AVAILABLE
 

Typedefs

typedef int eeprom_address_t
 

Functions

bool pinIsSerial (uint8_t)
 
static void FUEL1_TIMER_ENABLE (void)
 
static void FUEL2_TIMER_ENABLE (void)
 
static void FUEL3_TIMER_ENABLE (void)
 
static void FUEL4_TIMER_ENABLE (void)
 
static void FUEL5_TIMER_ENABLE (void)
 
static void FUEL6_TIMER_ENABLE (void)
 
static void FUEL7_TIMER_ENABLE (void)
 
static void FUEL8_TIMER_ENABLE (void)
 
static void FUEL1_TIMER_DISABLE (void)
 
static void FUEL2_TIMER_DISABLE (void)
 
static void FUEL3_TIMER_DISABLE (void)
 
static void FUEL4_TIMER_DISABLE (void)
 
static void FUEL5_TIMER_DISABLE (void)
 
static void FUEL6_TIMER_DISABLE (void)
 
static void FUEL7_TIMER_DISABLE (void)
 
static void FUEL8_TIMER_DISABLE (void)
 
static void IGN1_TIMER_ENABLE (void)
 
static void IGN2_TIMER_ENABLE (void)
 
static void IGN3_TIMER_ENABLE (void)
 
static void IGN4_TIMER_ENABLE (void)
 
static void IGN5_TIMER_ENABLE (void)
 
static void IGN6_TIMER_ENABLE (void)
 
static void IGN7_TIMER_ENABLE (void)
 
static void IGN8_TIMER_ENABLE (void)
 
static void IGN1_TIMER_DISABLE (void)
 
static void IGN2_TIMER_DISABLE (void)
 
static void IGN3_TIMER_DISABLE (void)
 
static void IGN4_TIMER_DISABLE (void)
 
static void IGN5_TIMER_DISABLE (void)
 
static void IGN6_TIMER_DISABLE (void)
 
static void IGN7_TIMER_DISABLE (void)
 
static void IGN8_TIMER_DISABLE (void)
 

Macro Definition Documentation

◆ BOARD_MAX_ADC_PINS

#define BOARD_MAX_ADC_PINS   17

◆ BOARD_MAX_DIGITAL_PINS

#define BOARD_MAX_DIGITAL_PINS   54

◆ BOARD_MAX_IO_PINS

#define BOARD_MAX_IO_PINS   54

◆ BOOST_TIMER_COMPARE

#define BOOST_TIMER_COMPARE   PIT_LDVAL1

◆ BOOST_TIMER_COUNTER

#define BOOST_TIMER_COUNTER   0

◆ COMPARE_TYPE

#define COMPARE_TYPE   uint16_t

◆ CORE_TEENSY41

#define CORE_TEENSY41

DO NOT INCLUDE DIRECTLY - should be included via board_definition.h

◆ DISABLE_BOOST_TIMER

#define DISABLE_BOOST_TIMER ( )    PIT_TCTRL1 &= ~PIT_TCTRL_TEN

◆ DISABLE_FAN_TIMER

#define DISABLE_FAN_TIMER ( )    TMR3_CSCTRL1 &= ~TMR_CSCTRL_TCF2EN

◆ DISABLE_VVT_TIMER

#define DISABLE_VVT_TIMER ( )    PIT_TCTRL2 &= ~PIT_TCTRL_TEN

◆ EEPROM_LIB_H

#define EEPROM_LIB_H   <EEPROM.h>

◆ ENABLE_BOOST_TIMER

#define ENABLE_BOOST_TIMER ( )    PIT_TCTRL1 |= PIT_TCTRL_TEN

◆ ENABLE_FAN_TIMER

#define ENABLE_FAN_TIMER ( )    TMR3_CSCTRL1 |= TMR_CSCTRL_TCF2EN

◆ ENABLE_VVT_TIMER

#define ENABLE_VVT_TIMER ( )    PIT_TCTRL2 |= PIT_TCTRL_TEN

◆ FAN_TIMER_COMPARE

#define FAN_TIMER_COMPARE   TMR3_COMP22

◆ FAN_TIMER_COUNTER

#define FAN_TIMER_COUNTER   TMR3_CNTR1

◆ FPU_MAX_SIZE

#define FPU_MAX_SIZE   32

◆ FUEL1_COMPARE

#define FUEL1_COMPARE   TMR1_COMP10

◆ FUEL1_COUNTER

#define FUEL1_COUNTER   TMR1_CNTR0

◆ FUEL2_COMPARE

#define FUEL2_COMPARE   TMR1_COMP11

◆ FUEL2_COUNTER

#define FUEL2_COUNTER   TMR1_CNTR1

◆ FUEL3_COMPARE

#define FUEL3_COMPARE   TMR1_COMP12

◆ FUEL3_COUNTER

#define FUEL3_COUNTER   TMR1_CNTR2

◆ FUEL4_COMPARE

#define FUEL4_COMPARE   TMR1_COMP13

◆ FUEL4_COUNTER

#define FUEL4_COUNTER   TMR1_CNTR3

◆ FUEL5_COMPARE

#define FUEL5_COMPARE   TMR3_COMP10

◆ FUEL5_COUNTER

#define FUEL5_COUNTER   TMR3_CNTR0

◆ FUEL6_COMPARE

#define FUEL6_COMPARE   TMR3_COMP11

◆ FUEL6_COUNTER

#define FUEL6_COUNTER   TMR3_CNTR1

◆ FUEL7_COMPARE

#define FUEL7_COMPARE   TMR3_COMP12

◆ FUEL7_COUNTER

#define FUEL7_COUNTER   TMR3_CNTR2

◆ FUEL8_COMPARE

#define FUEL8_COMPARE   TMR3_COMP13

◆ FUEL8_COUNTER

#define FUEL8_COUNTER   TMR3_CNTR3

◆ IDLE_COMPARE

#define IDLE_COMPARE   PIT_LDVAL0

◆ IDLE_COUNTER

#define IDLE_COUNTER   0

◆ IDLE_TIMER_DISABLE

#define IDLE_TIMER_DISABLE ( )    PIT_TCTRL0 &= ~PIT_TCTRL_TEN

◆ IDLE_TIMER_ENABLE

#define IDLE_TIMER_ENABLE ( )    PIT_TCTRL0 |= PIT_TCTRL_TEN

◆ IGN1_COMPARE

#define IGN1_COMPARE   TMR2_COMP10

◆ IGN1_COUNTER

#define IGN1_COUNTER   TMR2_CNTR0

◆ IGN2_COMPARE

#define IGN2_COMPARE   TMR2_COMP11

◆ IGN2_COUNTER

#define IGN2_COUNTER   TMR2_CNTR1

◆ IGN3_COMPARE

#define IGN3_COMPARE   TMR2_COMP12

◆ IGN3_COUNTER

#define IGN3_COUNTER   TMR2_CNTR2

◆ IGN4_COMPARE

#define IGN4_COMPARE   TMR2_COMP13

◆ IGN4_COUNTER

#define IGN4_COUNTER   TMR2_CNTR3

◆ IGN5_COMPARE

#define IGN5_COMPARE   TMR4_COMP10

◆ IGN5_COUNTER

#define IGN5_COUNTER   TMR4_CNTR0

◆ IGN6_COMPARE

#define IGN6_COMPARE   TMR4_COMP11

◆ IGN6_COUNTER

#define IGN6_COUNTER   TMR4_CNTR1

◆ IGN7_COMPARE

#define IGN7_COMPARE   TMR4_COMP12

◆ IGN7_COUNTER

#define IGN7_COUNTER   TMR4_CNTR2

◆ IGN8_COMPARE

#define IGN8_COMPARE   TMR4_COMP13

◆ IGN8_COUNTER

#define IGN8_COUNTER   TMR4_CNTR3

◆ IGN_CHANNELS

#define IGN_CHANNELS   8

◆ INJ_CHANNELS

#define INJ_CHANNELS   8

◆ NATIVE_CAN_AVAILABLE

#define NATIVE_CAN_AVAILABLE

◆ pinIsReserved

#define pinIsReserved (   pin)    ( ((pin) == 0) || ((pin) == 42) || ((pin) == 43) || ((pin) == 44) || ((pin) == 45) || ((pin) == 46) || ((pin) == 47) || pinIsSerial((pin)) )

◆ RTC_ENABLED

#define RTC_ENABLED

◆ RTC_LIB_H

#define RTC_LIB_H   "TimeLib.h"

◆ SD_CONFIG

#define SD_CONFIG   SdioConfig(FIFO_SDIO)

◆ SD_LOGGING

#define SD_LOGGING

◆ SECONDARY_SERIAL_T

#define SECONDARY_SERIAL_T   HardwareSerial

◆ SERIAL_BUFFER_SIZE

#define SERIAL_BUFFER_SIZE   517

◆ VVT_TIMER_COMPARE

#define VVT_TIMER_COMPARE   PIT_LDVAL2

◆ VVT_TIMER_COUNTER

#define VVT_TIMER_COUNTER   0

Typedef Documentation

◆ eeprom_address_t

Function Documentation

◆ FUEL1_TIMER_DISABLE()

static void FUEL1_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL1_TIMER_ENABLE()

static void FUEL1_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL2_TIMER_DISABLE()

static void FUEL2_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL2_TIMER_ENABLE()

static void FUEL2_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL3_TIMER_DISABLE()

static void FUEL3_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL3_TIMER_ENABLE()

static void FUEL3_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL4_TIMER_DISABLE()

static void FUEL4_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL4_TIMER_ENABLE()

static void FUEL4_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL5_TIMER_DISABLE()

static void FUEL5_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL5_TIMER_ENABLE()

static void FUEL5_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL6_TIMER_DISABLE()

static void FUEL6_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL6_TIMER_ENABLE()

static void FUEL6_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL7_TIMER_DISABLE()

static void FUEL7_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL7_TIMER_ENABLE()

static void FUEL7_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL8_TIMER_DISABLE()

static void FUEL8_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ FUEL8_TIMER_ENABLE()

static void FUEL8_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN1_TIMER_DISABLE()

static void IGN1_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN1_TIMER_ENABLE()

static void IGN1_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN2_TIMER_DISABLE()

static void IGN2_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN2_TIMER_ENABLE()

static void IGN2_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN3_TIMER_DISABLE()

static void IGN3_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN3_TIMER_ENABLE()

static void IGN3_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN4_TIMER_DISABLE()

static void IGN4_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN4_TIMER_ENABLE()

static void IGN4_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN5_TIMER_DISABLE()

static void IGN5_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN5_TIMER_ENABLE()

static void IGN5_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN6_TIMER_DISABLE()

static void IGN6_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN6_TIMER_ENABLE()

static void IGN6_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN7_TIMER_DISABLE()

static void IGN7_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN7_TIMER_ENABLE()

static void IGN7_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN8_TIMER_DISABLE()

static void IGN8_TIMER_DISABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ IGN8_TIMER_ENABLE()

static void IGN8_TIMER_ENABLE ( void  )
inlinestatic
Here is the call graph for this function:

◆ pinIsSerial()

bool pinIsSerial ( uint8_t  )