time for big update from now on
This commit is contained in:
@@ -100,7 +100,7 @@ async fn main(spawner: Spawner) {
|
||||
dump_tim6_regs();
|
||||
|
||||
// Start DMA consumer task
|
||||
spawner.spawn(dma_tx_task(p.GPDMA1_CH0)).unwrap();
|
||||
spawner.spawn(tx_dma_task(p.GPDMA1_CH0)).unwrap();
|
||||
spawner.spawn(rx_dma_task(p.GPDMA1_CH1)).unwrap();
|
||||
|
||||
// Example: transmit a string as UART frames via the Pipe
|
||||
@@ -124,7 +124,7 @@ async fn rx_dma_task(ch: Peri<'static, GPDMA1_CH1>) {
|
||||
}
|
||||
|
||||
#[embassy_executor::task]
|
||||
async fn dma_tx_task(ch: Peri<'static, GPDMA1_CH0>) {
|
||||
async fn tx_dma_task(ch: Peri<'static, GPDMA1_CH0>) {
|
||||
let mut tx = GpioDmaBsrrTx::new(ch);
|
||||
|
||||
info!("DMA task started, waiting for frames...");
|
||||
|
||||
Reference in New Issue
Block a user