Add enums MCOPRE & MCOSEL to wl5 & wle targets

This commit is contained in:
shakencodes 2023-09-26 10:55:19 -07:00
parent bdbf126746
commit 0adf2a75d1
2 changed files with 106 additions and 0 deletions

View File

@ -1110,10 +1110,12 @@ fieldset/CFGR:
description: Microcontroller clock output description: Microcontroller clock output
bit_offset: 24 bit_offset: 24
bit_size: 4 bit_size: 4
enum: MCOSEL
- name: MCOPRE - name: MCOPRE
description: Microcontroller clock output prescaler description: Microcontroller clock output prescaler
bit_offset: 28 bit_offset: 28
bit_size: 3 bit_size: 3
enum: MCOPRE
fieldset/CICR: fieldset/CICR:
description: Clock interrupt clear register description: Clock interrupt clear register
fields: fields:
@ -1483,6 +1485,57 @@ enum/HPRE:
- name: Div512 - name: Div512
description: hclk = SYSCLK divided by 256 description: hclk = SYSCLK divided by 256
value: 15 value: 15
enum/MCOPRE:
bit_size: 3
variants:
- name: Div1
description: No division
value: 0
- name: Div2
description: Division by 2
value: 1
- name: Div4
description: Division by 4
value: 2
- name: Div8
description: Division by 8
value: 3
- name: Div16
description: Division by 16
value: 4
enum/MCOSEL:
bit_size: 4
variants:
- name: NoClock
description: No clock
value: 0
- name: SYSCLK
description: SYSCLK clock selected
value: 1
- name: MSI
description: MSI oscillator clock selected
value: 2
- name: HSI16
description: HSI oscillator clock selected
value: 3
- name: HSE32
description: HSE32 oscillator clock selected
value: 4
- name: PLLRCLK
description: Main PLLRCLK clock selected
value: 5
- name: LSI
description: LSI oscillator clock selected
value: 6
- name: LSE
description: LSE oscillator clock selected
value: 8
- name: PLLPCLK
description: Main PLLCLK oscillator clock selected
value: 13
- name: PLLQCLK
description: Main PLLQCLK oscillator clock selected
value: 14
enum/PPRE: enum/PPRE:
bit_size: 3 bit_size: 3
variants: variants:

View File

@ -740,10 +740,12 @@ fieldset/CFGR:
description: Microcontroller clock output description: Microcontroller clock output
bit_offset: 24 bit_offset: 24
bit_size: 4 bit_size: 4
enum: MCOSEL
- name: MCOPRE - name: MCOPRE
description: Microcontroller clock output prescaler description: Microcontroller clock output prescaler
bit_offset: 28 bit_offset: 28
bit_size: 3 bit_size: 3
enum: MCOPRE
fieldset/CICR: fieldset/CICR:
description: Clock interrupt clear register description: Clock interrupt clear register
fields: fields:
@ -1105,6 +1107,57 @@ enum/HPRE:
- name: Div512 - name: Div512
description: hclk = SYSCLK divided by 256 description: hclk = SYSCLK divided by 256
value: 15 value: 15
enum/MCOPRE:
bit_size: 3
variants:
- name: Div1
description: No division
value: 0
- name: Div2
description: Division by 2
value: 1
- name: Div4
description: Division by 4
value: 2
- name: Div8
description: Division by 8
value: 3
- name: Div16
description: Division by 16
value: 4
enum/MCOSEL:
bit_size: 4
variants:
- name: NoClock
description: No clock
value: 0
- name: SYSCLK
description: SYSCLK clock selected
value: 1
- name: MSI
description: MSI oscillator clock selected
value: 2
- name: HSI16
description: HSI oscillator clock selected
value: 3
- name: HSE32
description: HSE32 oscillator clock selected
value: 4
- name: PLLRCLK
description: Main PLLRCLK clock selected
value: 5
- name: LSI
description: LSI oscillator clock selected
value: 6
- name: LSE
description: LSE oscillator clock selected
value: 8
- name: PLLPCLK
description: Main PLLCLK oscillator clock selected
value: 13
- name: PLLQCLK
description: Main PLLQCLK oscillator clock selected
value: 14
enum/PPRE: enum/PPRE:
bit_size: 3 bit_size: 3
variants: variants: