Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
558: Fix write constraints for USART RDR and TDR registers r=adamgreig a=sirhcel The STM32F303 has 9 bit wide RDR and TDR registers and according to the SVDs this is the case for all other devices with this peripheral too. Make accessing TDR via tdr().bits() safe again by providing the appropriate constraints. I stumbled upon this issue in rust-embedded/discovery#267 (comment). The currently exisiting bitWidths have been quick-and-dirty checked using: ```bash svd $ xmllint --xpath ".//field[(name = 'RDR' or name = 'TDR') and bitWidth != 9]" --format *.svd *.svd.patched ``` This gave not output while searching for `bitWidth = 9` did. Co-authored-by: Christian Meusel <christian.meusel@posteo.de>
- Loading branch information