Detect Teensy v4 and differentiate from other Teensy

This commit is contained in:
Josh Stewart 2019-08-20 23:45:29 +10:00
parent 50ab4f9548
commit 89ee0e350d
3 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#ifndef TEENSY35_H
#define TEENSY35_H
#if defined(CORE_TEENSY)
#if defined(CORE_TEENSY) && defined(CORE_TEENSY35)
/*
***********************************************************************************************************

View File

@ -1,4 +1,4 @@
#if defined(CORE_TEENSY)
#if defined(CORE_TEENSY) && defined(CORE_TEENSY35)
#include "board_teensy35.h"
#include "globals.h"
#include "auxiliaries.h"

View File

@ -16,7 +16,13 @@
//#define TIMER5_MICROS
#elif defined(CORE_TEENSY)
#define BOARD_H "board_teensy35.h"
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
#define CORE_TEENSY35
#define BOARD_H "board_teensy35.h"
#elif defined(__IMXRT1062__)
#define CORE_TEENSY40
#define BOARD_H "board_teensy40.h"
#endif
#define INJ_CHANNELS 8
#define IGN_CHANNELS 8