Add initial register mapping for STM32 F1 AFIO and FLASH
This commit is contained in:
parent
1d62ba5e14
commit
c0938c9102
141
data/registers/afio_f1.yaml
Normal file
141
data/registers/afio_f1.yaml
Normal file
@ -0,0 +1,141 @@
|
||||
---
|
||||
block/AFIO:
|
||||
description: Alternate function I/O and debug configuration
|
||||
items:
|
||||
- name: EVCR
|
||||
description: event control register
|
||||
byte_offset: 0
|
||||
reset_value: 0
|
||||
fieldset: EVCR
|
||||
- name: MAPR
|
||||
description: AF remap and debug I/O configuration register
|
||||
byte_offset: 4
|
||||
reset_value: 0
|
||||
fieldset: MAPR
|
||||
- name: EXTICR
|
||||
description: external interrupt configuration register
|
||||
array:
|
||||
len: 4
|
||||
stride: 4
|
||||
byte_offset: 8
|
||||
reset_value: 0
|
||||
fieldset: EXTICR
|
||||
- name: MAPR2
|
||||
description: AF remap and debug I/O configuration register2
|
||||
byte_offset: 28
|
||||
reset_value: 0
|
||||
fieldset: MAPR2
|
||||
fieldset/EVCR:
|
||||
description: event control register
|
||||
fields:
|
||||
- name: EVOE
|
||||
description: Event output enable
|
||||
bit_offset: 7
|
||||
bit_size: 1
|
||||
- name: PORT
|
||||
description: Port selection
|
||||
bit_offset: 4
|
||||
bit_size: 3
|
||||
- name: PIN
|
||||
description: Pin selection (x = A .. E)
|
||||
bit_offset: 0
|
||||
bit_size: 4
|
||||
fieldset/MAPR:
|
||||
description: AF remap and debug I/O configuration register
|
||||
fields:
|
||||
- name: SWJ_CFG
|
||||
description: Serial wire JTAG configuration
|
||||
bit_offset: 24
|
||||
bit_size: 3
|
||||
- name: ADC2_ETRGREG_REMAP
|
||||
description: ADC2 external trigger regular conversion remapping
|
||||
bit_offset: 20
|
||||
bit_size: 1
|
||||
- name: ADC2_ETRGINJ_REMAP
|
||||
description: ADC2 external trigger injected conversion remapping
|
||||
bit_offset: 19
|
||||
bit_size: 1
|
||||
- name: ADC1_ETRGREG_REMAP
|
||||
description: ADC1 external trigger regular conversion remapping
|
||||
bit_offset: 18
|
||||
bit_size: 1
|
||||
- name: ADC1_ETRGINJ_REMAP
|
||||
description: ADC1 external trigger injected conversion remapping
|
||||
bit_offset: 17
|
||||
bit_size: 1
|
||||
- name: TIM5CH4_IREMAP
|
||||
description: TIM5 channel4 internal remap
|
||||
bit_offset: 16
|
||||
bit_size: 1
|
||||
- name: PD01_REMAP
|
||||
description: Port D0/Port D1 mapping on OSC_IN/OSC_OUT
|
||||
bit_offset: 15
|
||||
bit_size: 1
|
||||
- name: CAN_REMAP
|
||||
description: CAN alternate function remapping
|
||||
bit_offset: 13
|
||||
bit_size: 2
|
||||
- name: TIM4_REMAP
|
||||
description: TIM4 remapping
|
||||
bit_offset: 12
|
||||
bit_size: 1
|
||||
- name: TIMx_REMAP
|
||||
description: TIMx remapping
|
||||
bit_offset: 6
|
||||
bit_size: 2
|
||||
array:
|
||||
len: 3
|
||||
stride: 2
|
||||
- name: USART3_REMAP
|
||||
description: USART3 remapping
|
||||
bit_offset: 4
|
||||
bit_size: 2
|
||||
- name: USART2_REMAP
|
||||
description: USART2 remapping
|
||||
bit_offset: 3
|
||||
bit_size: 1
|
||||
- name: USART1_REMAP
|
||||
description: USART1 remapping
|
||||
bit_offset: 2
|
||||
bit_size: 1
|
||||
- name: SPI1_REMAP
|
||||
description: SPI1 remapping
|
||||
bit_offset: 0
|
||||
bit_size: 1
|
||||
fieldset/EXTICR:
|
||||
description: external interrupt configuration register
|
||||
fields:
|
||||
- name: EXTI
|
||||
description: EXTI x configuration
|
||||
bit_offset: 0
|
||||
bit_size: 4
|
||||
array:
|
||||
len: 4
|
||||
stride: 4
|
||||
fieldset/MAPR2:
|
||||
description: AF remap and debug I/O configuration register2
|
||||
fields:
|
||||
- name: FSMC_NADV
|
||||
description: Serial wire JTAG configuration
|
||||
bit_offset: 10
|
||||
bit_size: 1
|
||||
- name: TIM14_REMAP
|
||||
description: TIM14 remapping
|
||||
bit_offset: 9
|
||||
bit_size: 1
|
||||
- name: TIM13_REMAP
|
||||
description: TIM13 remapping
|
||||
bit_offset: 8
|
||||
bit_size: 1
|
||||
- name: TIM11_REMAP
|
||||
description: TIM11 remapping
|
||||
bit_offset: 7
|
||||
bit_size: 1
|
||||
- name: TIM10_REMAP
|
||||
description: TIM10 remapping
|
||||
bit_offset: 6
|
||||
bit_size: 1
|
||||
- name: TIM9_REMAP
|
||||
description: TIM9 remapping
|
||||
bit_offset: 5
|
||||
bit_size: 1
|
27
data/registers/flash_f1.yaml
Normal file
27
data/registers/flash_f1.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
block/FLASH:
|
||||
description: Flash
|
||||
items:
|
||||
- name: ACR
|
||||
description: Flash access control register
|
||||
byte_offset: 0
|
||||
fieldset: ACR
|
||||
fieldset/ACR:
|
||||
description: Flash access control register
|
||||
fields:
|
||||
- name: LATENCY
|
||||
description: LATENCY
|
||||
bit_offset: 0
|
||||
bit_size: 3
|
||||
- name: HLFCYA
|
||||
description: HLFCYA
|
||||
bit_offset: 3
|
||||
bit_size: 1
|
||||
- name: PRFTBE
|
||||
description: PRFTBE
|
||||
bit_offset: 4
|
||||
bit_size: 1
|
||||
- name: PRFTBS
|
||||
description: PRFTBS
|
||||
bit_offset: 5
|
||||
bit_size: 1
|
3
parse.py
3
parse.py
@ -375,6 +375,8 @@ perimap = [
|
||||
('STM32WL5.*:RCC:.*', 'rcc_wl5/RCC'),
|
||||
('STM32WLE.*:RCC:.*', 'rcc_wle/RCC'),
|
||||
|
||||
('STM32F1.*:AFIO:.*', 'afio_f1/AFIO'),
|
||||
|
||||
('STM32L5.*:EXTI:.*', 'exti_l5/EXTI'),
|
||||
('STM32G0.*:EXTI:.*', 'exti_g0/EXTI'),
|
||||
('STM32H7.*:EXTI:.*', 'exti_h7/EXTI'),
|
||||
@ -392,6 +394,7 @@ perimap = [
|
||||
('.*:STM32WL_pwr_v1_0', 'pwr_wl5/PWR'),
|
||||
('.*:STM32H7_flash_v1_0', 'flash_h7/FLASH'),
|
||||
('.*:STM32F0_flash_v1_0', 'flash_f0/FLASH'),
|
||||
('.*:STM32F1_flash_v1_0', 'flash_f1/FLASH'),
|
||||
('.*:STM32F4_flash_v1_0', 'flash_f4/FLASH'),
|
||||
('.*TIM\d.*:gptimer.*', 'timer_v1/TIM_GP16'),
|
||||
('.*ETH:ethermac110_v3_0', 'eth_v2/ETH'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user