fixup examples to use some SDK1.2.0 added functions (#172)

This commit is contained in:
Graham Sanderson
2021-10-25 12:30:42 -05:00
committed by GitHub
parent 74aff26c75
commit fabb762f75
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ int main() {
c = dma_channel_get_default_config(data_chan);
channel_config_set_transfer_data_size(&c, DMA_SIZE_8);
channel_config_set_dreq(&c, DREQ_UART0_TX + 2 * uart_get_index(uart_default));
channel_config_set_dreq(&c, uart_get_dreq(uart_default, true));
// Trigger ctrl_chan when data_chan completes
channel_config_set_chain_to(&c, ctrl_chan);
// Raise the IRQ flag when 0 is written to a trigger register (end of chain):