Fix netduino to build

Fix adc to work with resolution changes.
Merge pull request #375 from dhylands/stmhal-adc

Some changes that I forgot to push with my last pull request