Skip to content

Commit

Permalink
hw/mcu: Add family and series defs to syscfg
Browse files Browse the repository at this point in the history
Those allow for conditional configurations to be implemented.
It may be possible to retrieve the same information via vendor provided
defs in header files, but with syscfg defs we can also use this in pkg
or syscfg deps.
  • Loading branch information
andrzej-kaczmarek committed Feb 2, 2023
1 parent d6de7df commit affef6d
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/mcu/ambiq/apollo2/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_APOLLO2: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/ambiq/apollo3/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_APOLLO3: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/dialog/da1469x/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_SMARTBOND: 1
MCU_SERIES_DA1469X: 1

MCU_TARGET:
description: Specifies target MCU, shall be set by BSP.
value:
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/microchip/pic32mx470f512h/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_PIC32MX: 1
MCU_SERIES_PIC32MX4: 1

I2C_0:
description: 'I2C (TWI) interface 0'
value: 0
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/microchip/pic32mz/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_FAMILY_PIC32MZ: 1

MCU_PIC32MZ:
description: MCUs are of PIC32MZ family.
value: 1
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/nordic/nrf51xxx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_NRF: 1
MCU_SERIES_NRF51: 1

MCU_TARGET:
description: >
Specifies target MCU, shall be set by BSP.
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/nordic/nrf52xxx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_NRF: 1
MCU_SERIES_NRF52: 1

MCU_TARGET:
description: >
Specifies target MCU, shall be set by BSP.
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/nordic/nrf5340/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_NRF: 1
MCU_SERIES_NRF53: 1

MCU_TARGET:
description: >
Specifies target MCU.
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/nordic/nrf5340_net/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_NRF: 1
MCU_SERIES_NRF53: 1

MCU_TARGET:
description: >
Specifies target MCU.
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/nordic/nrf91xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_NRF: 1
MCU_SERIES_NRF91: 1

MCU_TARGET:
description: >
Specifies target MCU, shall be set by BSP.
Expand Down
3 changes: 3 additions & 0 deletions hw/mcu/sifive/fe310/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#

syscfg.defs:
MCU_FAMILY_SIFIVE_FREEDOM_FE300: 1
MCU_SERIES_SIFIVE_FREEDOM_FE310: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32_common/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# under the License.

syscfg.defs:
MCU_FAMILY_STM32: 1

TIMER_0:
description: 'Timer 0'
value: 1
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32f1xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32F1: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32f3xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32F3: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32f4xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32F4: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32f7xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32F7: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32h7xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32H7: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32l0xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32L0: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32l1xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32L1: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32l4xx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32L4: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down
2 changes: 2 additions & 0 deletions hw/mcu/stm/stm32wbxx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#

syscfg.defs:
MCU_SERIES_STM32WB: 1

MCU_FLASH_MIN_WRITE_SIZE:
description: >
Specifies the required alignment for internal flash writes.
Expand Down

0 comments on commit affef6d

Please sign in to comment.