Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
Diff: hw_setup.cpp
- Revision:
- 53:89565c1d9115
- Parent:
- 37:c0f352d6e8e3
diff -r 8fff6f1a3f50 -r 89565c1d9115 hw_setup.cpp --- a/hw_setup.cpp Mon Dec 20 01:24:06 2021 +0000 +++ b/hw_setup.cpp Mon Dec 27 02:47:12 2021 +0000 @@ -50,7 +50,7 @@ ADC->CCR = 0x00000016; // Regular simultaneous mode only ADC1->CR2 |= ADC_CR2_ADON;//0x00000001; // ADC1 ON - ADC1->SQR3 = 0x000000A; // use PC_0 as input- ADC1_IN0 + ADC1->SQR3 = 0x000000A; // use PC_0 as input- ADC1_IN10 ADC2->CR2 |= ADC_CR2_ADON;//0x00000001; // ADC2 ON ADC2->SQR3 = 0x0000000B; // use PC_1 as input - ADC2_IN11 ADC3->CR2 |= ADC_CR2_ADON; // ADC3 ON