Skip to content

Commit

Permalink
wip: spi_x0 br field
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Mar 31, 2024
1 parent 30e3ec6 commit 87da153
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions data/registers/spi_x0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ fieldset/CTLR1:
description: Baud rate control.
bit_offset: 3
bit_size: 3
enum: BAUD_RATE
- name: SPE
description: SPI enable.
bit_offset: 6
Expand Down Expand Up @@ -208,3 +209,31 @@ fieldset/TCRCR:
description: TX CRC register.
bit_offset: 0
bit_size: 16
enum/BAUD_RATE:
description: Baud rate control.
bit_size: 3
variants:
- name: DIV_2
description: fPCLK/2
value: 0
- name: DIV_4
description: fPCLK/4
value: 1
- name: DIV_8
description: fPCLK/8
value: 2
- name: DIV_16
description: fPCLK/16
value: 3
- name: DIV_32
description: fPCLK/32
value: 4
- name: DIV_64
description: fPCLK/64
value: 5
- name: DIV_128
description: fPCLK/128
value: 6
- name: DIV_256
description: fPCLK/256
value: 7

0 comments on commit 87da153

Please sign in to comment.