Skip to content
Snippets Groups Projects
Commit 2cba1137 authored by Thibaut VIARD's avatar Thibaut VIARD
Browse files

Fixing missing A0 pin test

parent 0e6f63c9
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,11 @@ uint32_t analogRead( uint32_t ulPin )
{
uint32_t valueRead = 0;
if ( ulPin < A0 )
{
ulPin += A0 ;
}
pinPeripheral(ulPin, g_APinDescription[ulPin].ulPinType);
ADC->INPUTCTRL.bit.MUXPOS = g_APinDescription[ulPin].ulADCChannelNumber;
......
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