Skip to content

Commit

Permalink
Added SAM Cortex families to the device reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
shumatech committed Mar 21, 2018
1 parent 9e6ce5e commit b176eee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Device.cpp
Expand Up @@ -640,6 +640,15 @@ Device::reset()
{
case FAMILY_SAMD21:
case FAMILY_SAMR21:
case FAMILY_SAML21:
case FAMILY_SAMD51:
case FAMILY_SAME51:
case FAMILY_SAME53:
case FAMILY_SAME54:
case FAMILY_SAME70:
case FAMILY_SAMS70:
case FAMILY_SAMV70:
case FAMILY_SAMV71:
_samba.writeWord(0xE000ED0C, 0x05FA0004);
break;

Expand Down Expand Up @@ -674,7 +683,8 @@ Device::reset()
default:
break;
}
catch (exception& expected)
}
catch (std::exception& expected)
{ // writeWord will most likely throw an exception when the CPU is reset
}
}
Expand Down

0 comments on commit b176eee

Please sign in to comment.