File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,13 @@ where
193
193
pub struct Ready ;
194
194
195
195
196
+ /// Used for DMA transfers
197
+ ///
198
+ /// This is an internal implementation detail. It is only public because it
199
+ /// leaks out of a public API in the form of a `where` clause.
200
+ pub struct DmaToken ( ( ) ) ;
201
+
202
+
196
203
macro_rules! int_adc {
197
204
( $( $Chan: ident: ( $chan: expr, $en: ident) ) ,+ $( , ) * ) => {
198
205
$(
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use core::{
27
27
use as_slice:: AsSlice ;
28
28
29
29
use crate :: {
30
+ adc,
30
31
i2c,
31
32
pac:: {
32
33
self ,
@@ -471,6 +472,10 @@ macro_rules! impl_target {
471
472
472
473
// See STM32L0x2 Reference Manual, table 51 (page 267).
473
474
impl_target ! (
475
+ // ADC
476
+ adc:: DmaToken , Channel1 , 0 ;
477
+ adc:: DmaToken , Channel2 , 0 ;
478
+
474
479
// USART1
475
480
serial:: Tx <USART1 >, Channel2 , 3 ;
476
481
serial:: Tx <USART1 >, Channel4 , 3 ;
You can’t perform that action at this time.
0 commit comments