Skip to content

Commit ee913a0

Browse files
mitchellpontaguesandeepmistry
authored andcommitted
samd21e sercom compatibility (#280)
Make sercom4 and sercom5 optional to allow compilation of samd21e variants.
1 parent 2bb5406 commit ee913a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/SERCOM.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -665,16 +665,20 @@ void SERCOM::initClockNVIC( void )
665665
clockId = GCM_SERCOM3_CORE;
666666
IdNvic = SERCOM3_IRQn;
667667
}
668+
#if defined(SERCOM4)
668669
else if(sercom == SERCOM4)
669670
{
670671
clockId = GCM_SERCOM4_CORE;
671672
IdNvic = SERCOM4_IRQn;
672673
}
674+
#endif // SERCOM4
675+
#if defined(SERCOM5)
673676
else if(sercom == SERCOM5)
674677
{
675678
clockId = GCM_SERCOM5_CORE;
676679
IdNvic = SERCOM5_IRQn;
677680
}
681+
#endif // SERCOM5
678682

679683
if ( IdNvic == PendSV_IRQn )
680684
{

0 commit comments

Comments
 (0)