From b18634ed991e2f0ec2a99964987a21011b5a861e Mon Sep 17 00:00:00 2001 From: Thibaut VIARD <aethaniel@sam-geek.org> Date: Tue, 12 May 2015 15:37:42 +0200 Subject: [PATCH] Adding TC5 definitions --- cores/arduino/WVariant.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cores/arduino/WVariant.h b/cores/arduino/WVariant.h index e7301163..b32b9707 100644 --- a/cores/arduino/WVariant.h +++ b/cores/arduino/WVariant.h @@ -64,6 +64,12 @@ typedef enum _ETCChannel TCC2_CH1 = (2<<8)|(1), TC3_CH0 = (3<<8)|(0), TC3_CH1 = (3<<8)|(1), + TC5_CH0 = (5<<8)|(0), + TC5_CH1 = (5<<8)|(1), +#if defined __SAMD21J18A__ + TC7_CH0 = (7<<8)|(0), + TC7_CH1 = (7<<8)|(1) +#endif // __SAMD21J18A__ } ETCChannel ; extern const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM] ; @@ -90,6 +96,12 @@ typedef enum _EPWMChannel PWM2_CH1=TCC2_CH1, PWM3_CH0=TC3_CH0, PWM3_CH1=TC3_CH1, + PWM5_CH0=TC5_CH0, + PWM5_CH1=TC5_CH1, +#if defined __SAMD21J18A__ + PWM7_CH0=TC7_CH0, + PWM7_CH1=TC7_CH1 +#endif // __SAMD21J18A__ } EPWMChannel ; typedef enum _EPortType -- GitLab