Skip to content
Snippets Groups Projects
Commit a9fa694e authored by joverbee's avatar joverbee Committed by Cristian Maglie
Browse files

Reset sense bits before or-writing the new sense signature

Solve #199
parent af0263a6
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,7 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode) ...@@ -88,6 +88,7 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
// Configure the interrupt mode // Configure the interrupt mode
pos = (in - (8 * config)) << 2; pos = (in - (8 * config)) << 2;
EIC->CONFIG[config].reg &=~ (EIC_CONFIG_SENSE0_Msk << pos);//reset sense mode, important when changing trigger mode during runtime
switch (mode) switch (mode)
{ {
case LOW: case LOW:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment