diff options
Diffstat (limited to '')
22 files changed, 484 insertions, 0 deletions
diff --git a/spec/build/bsps/arm/stm32f4/abi.yml b/spec/build/bsps/arm/stm32f4/abi.yml new file mode 100644 index 0000000000..8c9b62c6ea --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/abi.yml @@ -0,0 +1,23 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- split: null +- env-append: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: +- -mthumb +- -mcpu=cortex-m4 +default-by-variant: +- value: + - -mthumb + - -mcpu=cortex-m3 + variants: + - arm/stm32f105rc +description: | + ABI flags +enabled-by: true +links: [] +name: ABI_FLAGS +type: build diff --git a/spec/build/bsps/arm/stm32f4/bspstm32f105rc.yml b/spec/build/bsps/arm/stm32f4/bspstm32f105rc.yml new file mode 100644 index 0000000000..f00a177dc0 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/bspstm32f105rc.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: arm +bsp: stm32f105rc +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +enabled-by: true +family: stm32f4 +includes: [] +install: [] +links: +- role: build-dependency + uid: grp +- role: build-dependency + uid: tststm32f105rc +- role: build-dependency + uid: ../../opto2 +source: [] +type: build diff --git a/spec/build/bsps/arm/stm32f4/bspstm32f4.yml b/spec/build/bsps/arm/stm32f4/bspstm32f4.yml new file mode 100644 index 0000000000..f3c6426f07 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/bspstm32f4.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: arm +bsp: stm32f4 +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +enabled-by: true +family: stm32f4 +includes: [] +install: [] +links: +- role: build-dependency + uid: grp +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: ../../tstsmallmem +source: [] +type: build diff --git a/spec/build/bsps/arm/stm32f4/grp.yml b/spec/build/bsps/arm/stm32f4/grp.yml new file mode 100644 index 0000000000..ad08ee63c1 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/grp.yml @@ -0,0 +1,60 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: group +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +includes: [] +install: [] +ldflags: [] +links: +- role: build-dependency + uid: ../grp +- role: build-dependency + uid: ../start +- role: build-dependency + uid: abi +- role: build-dependency + uid: obj +- role: build-dependency + uid: opteni2c1 +- role: build-dependency + uid: opteni2c2 +- role: build-dependency + uid: optenuart4 +- role: build-dependency + uid: optenuart5 +- role: build-dependency + uid: optenusart1 +- role: build-dependency + uid: optenusart2 +- role: build-dependency + uid: optenusart3 +- role: build-dependency + uid: optenusart6 +- role: build-dependency + uid: optf10xxx +- role: build-dependency + uid: optf4xxxx +- role: build-dependency + uid: opthclk +- role: build-dependency + uid: optoschse +- role: build-dependency + uid: optpclk1 +- role: build-dependency + uid: optpclk2 +- role: build-dependency + uid: optsysclk +- role: build-dependency + uid: optusartbaud +- role: build-dependency + uid: ../../linkcmds +- role: build-dependency + uid: ../../obj +- role: build-dependency + uid: ../../objirq +- role: build-dependency + uid: ../../bspopts +type: build +use-after: [] +use-before: [] diff --git a/spec/build/bsps/arm/stm32f4/obj.yml b/spec/build/bsps/arm/stm32f4/obj.yml new file mode 100644 index 0000000000..22b73177cd --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/obj.yml @@ -0,0 +1,70 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: +- destination: ${BSP_INCLUDEDIR} + source: + - bsps/arm/stm32f4/include/bsp.h + - bsps/arm/stm32f4/include/tm27.h +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/arm/stm32f4/include/bsp/i2c.h + - bsps/arm/stm32f4/include/bsp/io.h + - bsps/arm/stm32f4/include/bsp/irq.h + - bsps/arm/stm32f4/include/bsp/rcc.h + - bsps/arm/stm32f4/include/bsp/stm32_i2c.h + - bsps/arm/stm32f4/include/bsp/stm32_usart.h + - bsps/arm/stm32f4/include/bsp/stm32f10xxx_exti.h + - bsps/arm/stm32f4/include/bsp/stm32f10xxx_gpio.h + - bsps/arm/stm32f4/include/bsp/stm32f10xxx_rcc.h + - bsps/arm/stm32f4/include/bsp/stm32f4.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_adc.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_exti.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_flash.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_gpio.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_otgfs.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_pwr.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_rcc.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_syscfg.h + - bsps/arm/stm32f4/include/bsp/stm32f4xxxx_tim.h + - bsps/arm/stm32f4/include/bsp/usart.h +- destination: ${BSP_LIBDIR} + source: + - bsps/arm/stm32f4/start/linkcmds.stm32f105rc + - bsps/arm/stm32f4/start/linkcmds.stm32f4 +links: [] +source: +- bsps/arm/shared/clock/clock-armv7m.c +- bsps/arm/shared/irq/irq-armv7m.c +- bsps/arm/shared/irq/irq-dispatch-armv7m.c +- bsps/arm/shared/start/bsp-start-memcpy.S +- bsps/arm/stm32f4/console/console-config.c +- bsps/arm/stm32f4/console/usart.c +- bsps/arm/stm32f4/i2c/i2c-config.c +- bsps/arm/stm32f4/i2c/i2c.c +- bsps/arm/stm32f4/start/bspreset.c +- bsps/arm/stm32f4/start/bspstart.c +- bsps/arm/stm32f4/start/bspstarthook.c +- bsps/arm/stm32f4/start/io.c +- bsps/arm/stm32f4/start/rcc.c +- bsps/arm/stm32f4/start/start-config-io.c +- bsps/shared/cache/nocache.c +- bsps/shared/dev/btimer/btimer-stub.c +- bsps/shared/dev/cpucounter/cpucounterfrequency.c +- bsps/shared/dev/cpucounter/cpucounterread.c +- bsps/shared/dev/getentropy/getentropy-cpucounter.c +- bsps/shared/dev/serial/legacy-console-control.c +- bsps/shared/dev/serial/legacy-console-select.c +- bsps/shared/dev/serial/legacy-console.c +- bsps/shared/irq/irq-default-handler.c +- bsps/shared/start/bspfatal-default.c +- bsps/shared/start/bspgetworkarea-default.c +- bsps/shared/start/sbrk.c +- bsps/shared/start/stackalloc.c +type: build diff --git a/spec/build/bsps/arm/stm32f4/opteni2c1.yml b/spec/build/bsps/arm/stm32f4/opteni2c1.yml new file mode 100644 index 0000000000..e200c81623 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/opteni2c1.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: +- value: true + variants: + - arm/stm32f1.* +description: | + enable I2C 1 +enabled-by: true +links: [] +name: STM32F4_ENABLE_I2C1 +type: build diff --git a/spec/build/bsps/arm/stm32f4/opteni2c2.yml b/spec/build/bsps/arm/stm32f4/opteni2c2.yml new file mode 100644 index 0000000000..d4ef7328e1 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/opteni2c2.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + enable I2C 2 +enabled-by: true +links: [] +name: STM32F4_ENABLE_I2C2 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optenuart4.yml b/spec/build/bsps/arm/stm32f4/optenuart4.yml new file mode 100644 index 0000000000..5bf266707f --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optenuart4.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + enable UART 4 +enabled-by: true +links: [] +name: STM32F4_ENABLE_UART_4 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optenuart5.yml b/spec/build/bsps/arm/stm32f4/optenuart5.yml new file mode 100644 index 0000000000..21f1e6f963 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optenuart5.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + enable UART 5 +enabled-by: true +links: [] +name: STM32F4_ENABLE_UART_5 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optenusart1.yml b/spec/build/bsps/arm/stm32f4/optenusart1.yml new file mode 100644 index 0000000000..9fd8f99af2 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optenusart1.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + enable USART 1 +enabled-by: true +links: [] +name: STM32F4_ENABLE_USART_1 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optenusart2.yml b/spec/build/bsps/arm/stm32f4/optenusart2.yml new file mode 100644 index 0000000000..d9dd3a3d22 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optenusart2.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + enable USART 2 +enabled-by: true +links: [] +name: STM32F4_ENABLE_USART_2 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optenusart3.yml b/spec/build/bsps/arm/stm32f4/optenusart3.yml new file mode 100644 index 0000000000..3cc11ba79b --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optenusart3.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: true +default-by-variant: [] +description: | + enable USART 3 +enabled-by: true +links: [] +name: STM32F4_ENABLE_USART_3 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optenusart6.yml b/spec/build/bsps/arm/stm32f4/optenusart6.yml new file mode 100644 index 0000000000..4e20fb4317 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optenusart6.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + enable USART 6 +enabled-by: true +links: [] +name: STM32F4_ENABLE_USART_6 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optf10xxx.yml b/spec/build/bsps/arm/stm32f4/optf10xxx.yml new file mode 100644 index 0000000000..54f1418cf9 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optf10xxx.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: +- value: true + variants: + - arm/stm32f1.* +description: | + Chip belongs to the STM32F10XXX family. +enabled-by: true +links: [] +name: STM32F4_FAMILY_F10XXX +type: build diff --git a/spec/build/bsps/arm/stm32f4/optf4xxxx.yml b/spec/build/bsps/arm/stm32f4/optf4xxxx.yml new file mode 100644 index 0000000000..66604f249a --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optf4xxxx.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: +- value: true + variants: + - arm/stm32f4.* +description: | + Chip belongs to the STM32F4XXXX family. +enabled-by: true +links: [] +name: STM32F4_FAMILY_F4XXXX +type: build diff --git a/spec/build/bsps/arm/stm32f4/opthclk.yml b/spec/build/bsps/arm/stm32f4/opthclk.yml new file mode 100644 index 0000000000..7f315f12b2 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/opthclk.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 16000000 +default-by-variant: +- value: 8000000 + variants: + - arm/stm32f1.* +description: | + HCLK frequency in Hz +enabled-by: true +format: '{}' +links: [] +name: STM32F4_HCLK +type: build diff --git a/spec/build/bsps/arm/stm32f4/optoschse.yml b/spec/build/bsps/arm/stm32f4/optoschse.yml new file mode 100644 index 0000000000..2b1dad620e --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optoschse.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 8000000 +default-by-variant: [] +description: | + HSE oscillator frequency in Hz +enabled-by: true +format: '{}' +links: [] +name: STM32F4_HSE_OSCILLATOR +type: build diff --git a/spec/build/bsps/arm/stm32f4/optpclk1.yml b/spec/build/bsps/arm/stm32f4/optpclk1.yml new file mode 100644 index 0000000000..9ac285b0bc --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optpclk1.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 16000000 +default-by-variant: +- value: 8000000 + variants: + - arm/stm32f1.* +description: | + PCLK1 frequency in Hz +enabled-by: true +format: '{}' +links: [] +name: STM32F4_PCLK1 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optpclk2.yml b/spec/build/bsps/arm/stm32f4/optpclk2.yml new file mode 100644 index 0000000000..e51eeaf36f --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optpclk2.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 16000000 +default-by-variant: +- value: 8000000 + variants: + - arm/stm32f1.* +description: | + PCLK2 frequency in Hz +enabled-by: true +format: '{}' +links: [] +name: STM32F4_PCLK2 +type: build diff --git a/spec/build/bsps/arm/stm32f4/optsysclk.yml b/spec/build/bsps/arm/stm32f4/optsysclk.yml new file mode 100644 index 0000000000..5f08d4ecde --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optsysclk.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 16000000 +default-by-variant: +- value: 8000000 + variants: + - arm/stm32f1.* +description: | + SYSCLK frequency in Hz +enabled-by: true +format: '{}' +links: [] +name: STM32F4_SYSCLK +type: build diff --git a/spec/build/bsps/arm/stm32f4/optusartbaud.yml b/spec/build/bsps/arm/stm32f4/optusartbaud.yml new file mode 100644 index 0000000000..b102e37eb6 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/optusartbaud.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 115200 +default-by-variant: [] +description: | + baud for USARTs +enabled-by: true +format: '{}' +links: [] +name: STM32F4_USART_BAUD +type: build diff --git a/spec/build/bsps/arm/stm32f4/tststm32f105rc.yml b/spec/build/bsps/arm/stm32f4/tststm32f105rc.yml new file mode 100644 index 0000000000..f752f18b93 --- /dev/null +++ b/spec/build/bsps/arm/stm32f4/tststm32f105rc.yml @@ -0,0 +1,22 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- set-test-state: + fileio: exclude + ftp01: exclude + iostream: exclude + mghttpd01: exclude + monitor02: exclude + pppd: exclude + rtems: exclude + utf8proc01: exclude +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: null +default-by-variant: [] +description: '' +enabled-by: true +links: +- role: build-dependency + uid: ../../tstsmallmem +type: build |