You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run this adc example. but I found this line of code failed to compile.
let mut adc = adc::Adc::adc1(p.ADC1, &mut rcc.apb2, clocks);
The error message is
error[E0061]: this function takes 2 parameters but 3 parameters were supplied
--> src/main.rs:28:19
|
28 | let mut adc = adc::Adc::adc1(p.ADC1, &mut rcc.apb2, clocks);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters
error: aborting due to previous error
For more information about this error, try `rustc --explain E0061`.
error: Could not compile `blue-pill-quickstart`.
It seems the api has been changed.
The text was updated successfully, but these errors were encountered:
I am trying to run this adc example. but I found this line of code failed to compile.
The error message is
It seems the api has been changed.
The text was updated successfully, but these errors were encountered: