samd21e sercom compatibility (#280)

Make sercom4 and sercom5 optional to allow compilation of samd21e variants.
This commit is contained in:
Mitchell Pontague 2018-01-26 00:25:58 +08:00 committed by Sandeep Mistry
parent 2bb54068a2
commit ee913a0828

View file

@ -665,16 +665,20 @@ void SERCOM::initClockNVIC( void )
clockId = GCM_SERCOM3_CORE;
IdNvic = SERCOM3_IRQn;
}
#if defined(SERCOM4)
else if(sercom == SERCOM4)
{
clockId = GCM_SERCOM4_CORE;
IdNvic = SERCOM4_IRQn;
}
#endif // SERCOM4
#if defined(SERCOM5)
else if(sercom == SERCOM5)
{
clockId = GCM_SERCOM5_CORE;
IdNvic = SERCOM5_IRQn;
}
#endif // SERCOM5
if ( IdNvic == PendSV_IRQn )
{