Skip to content
Snippets Groups Projects
Commit 9a5422d7 authored by Martino Facchin's avatar Martino Facchin
Browse files

relax digitalWrite parameter check

calling digitalWrite with any value different from 0 will end
in performing digitalWrite(HIGH)
parent 6e7409f2
No related branches found
No related tags found
No related merge requests found
......@@ -86,11 +86,8 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
PORT->Group[g_APinDescription[ulPin].ulPort].OUTCLR.reg = (1ul << g_APinDescription[ulPin].ulPin) ;
break ;
case HIGH:
PORT->Group[g_APinDescription[ulPin].ulPort].OUTSET.reg = (1ul << g_APinDescription[ulPin].ulPin) ;
break ;
default:
PORT->Group[g_APinDescription[ulPin].ulPort].OUTSET.reg = (1ul << g_APinDescription[ulPin].ulPin) ;
break ;
}
......
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