Skip to content

Commit affef6d

Browse files
hw/mcu: Add family and series defs to syscfg
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.
1 parent d6de7df commit affef6d

File tree

21 files changed

+50
-0
lines changed

21 files changed

+50
-0
lines changed

hw/mcu/ambiq/apollo2/syscfg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_SERIES_APOLLO2: 1
21+
2022
MCU_FLASH_MIN_WRITE_SIZE:
2123
description: >
2224
Specifies the required alignment for internal flash writes.

hw/mcu/ambiq/apollo3/syscfg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_SERIES_APOLLO3: 1
21+
2022
MCU_FLASH_MIN_WRITE_SIZE:
2123
description: >
2224
Specifies the required alignment for internal flash writes.

hw/mcu/dialog/da1469x/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_SMARTBOND: 1
21+
MCU_SERIES_DA1469X: 1
22+
2023
MCU_TARGET:
2124
description: Specifies target MCU, shall be set by BSP.
2225
value:

hw/mcu/microchip/pic32mx470f512h/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_PIC32MX: 1
21+
MCU_SERIES_PIC32MX4: 1
22+
2023
I2C_0:
2124
description: 'I2C (TWI) interface 0'
2225
value: 0

hw/mcu/microchip/pic32mz/syscfg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_PIC32MZ: 1
21+
2022
MCU_PIC32MZ:
2123
description: MCUs are of PIC32MZ family.
2224
value: 1

hw/mcu/nordic/nrf51xxx/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_NRF: 1
21+
MCU_SERIES_NRF51: 1
22+
2023
MCU_TARGET:
2124
description: >
2225
Specifies target MCU, shall be set by BSP.

hw/mcu/nordic/nrf52xxx/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_NRF: 1
21+
MCU_SERIES_NRF52: 1
22+
2023
MCU_TARGET:
2124
description: >
2225
Specifies target MCU, shall be set by BSP.

hw/mcu/nordic/nrf5340/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_NRF: 1
21+
MCU_SERIES_NRF53: 1
22+
2023
MCU_TARGET:
2124
description: >
2225
Specifies target MCU.

hw/mcu/nordic/nrf5340_net/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_NRF: 1
21+
MCU_SERIES_NRF53: 1
22+
2023
MCU_TARGET:
2124
description: >
2225
Specifies target MCU.

hw/mcu/nordic/nrf91xx/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#
1818

1919
syscfg.defs:
20+
MCU_FAMILY_NRF: 1
21+
MCU_SERIES_NRF91: 1
22+
2023
MCU_TARGET:
2124
description: >
2225
Specifies target MCU, shall be set by BSP.

0 commit comments

Comments
 (0)