# Project Name: CddSent_Dma_Demo

## Functional Description

- This demo shows MCAL-based SENT receive using DMA mode.
- `CH0` is configured as the active SENT receive channel.
- Fast message and slow message are both received through DMA and printed by `CddUart`.
- `CH1` remains available as an inactive comparison channel in the current example.

## Operation Instructions

- Step 1: Open `CddSent_Dma_Demo.yct` with YCT.
- Step 2: Regenerate code if you need to adapt pins, clocks, UART, or DMA settings.
- Step 3: Build the project and flash `build/CddSent_Dma_Demo.elf`.
- Step 4: Open a serial terminal at `115200 8N1`.
- Step 5: Start the SENT sender and observe UART output for fast/slow counters, decoded data, and error flags.

## Key Files

- `app/main.c`
- `board/sent_config.c`
- `Mcal/CddSent/src/dma_driver_compat.c`
- `Mcal/CddSent/src/sent_driver.c`

## Notes

- This project keeps the copied SENT driver close to the original SDK style.
- Legacy `DMA_DRV_*` calls are bridged to MCAL `CddDma` through the local compatibility layer.

## Hardware Requirement

- EVB: `YTM32B1MD1-EVB-Q100-Rev.A/B`
- Debugger: J-Link HW v9 or later

## Software Requirement

- YCT v2.7.0 or later
- GCC v10.3 or later, or another supported toolchain
