[PATCH v5 0/4] *** New GPIO, ADC API and STM32F4 BSP implementation ***

2022-07-24 Thread Duc Doan
Dear all, These patches add a new GPIO API and a framework for adding more peripheral APIs, with the example of ADC API. There is also implementation for these components for STM32F4 BSP. The core idea of my work on this peripherals API and new GPIO API is to add portability and simplify applica

[PATCH v5 1/4] bsps/stm32f4 Include STM32F4 HAL

2022-07-24 Thread Duc Doan
This patch is too large so I cannot send via email. Please find it here: https://github.com/dtbpkmte/GSoC-2022-RTEMS/commit/6f1fbc7dd7a5e0877d8bff11e1b21558928dbc16 --- .gitignore| 1 + bsps/arm/include/cmsis_compiler.h | 266 + bsps/arm/inclu

[PATCH v5 2/4] bsps: New GPIO API & peripherals API framework

2022-07-24 Thread Duc Doan
--- bsps/include/bsp/gpio2.h| 528 bsps/include/bsp/periph_api.h | 142 +++ bsps/shared/dev/gpio/gpio.c | 212 ++ bsps/shared/dev/periph_api/periph_api.c | 101 + spec/build/bsps/obj.yml | 4 +- 5 file

[PATCH v5 3/4] bsps: Add ADC API

2022-07-24 Thread Duc Doan
--- bsps/include/bsp/adc.h| 292 ++ bsps/shared/dev/adc/adc.c | 200 +++ spec/build/bsps/bspopts.yml | 4 + spec/build/bsps/obj.yml | 2 + spec/build/bsps/optenadc.yml | 16 ++ spec/build/bsps/optnumadc.yml | 16 ++ 6 f

[PATCH v5 4/4] bsps/stm32f4: Implementation for GPIO and ADC

2022-07-24 Thread Duc Doan
--- bsps/arm/stm32f4/adc/adc.c| 655 ++ bsps/arm/stm32f4/gpio/gpio.c | 542 +++ bsps/arm/stm32f4/include/bsp.h| 4 - bsps/arm/stm32f4/include/bsp/stm32f4_adc.h| 209 ++ bsps/arm/stm32f4/include/bsp/stm32f4_g

Re: libbsd tests not linking

2022-07-24 Thread Sebastian Huber
On 24/07/2022 00:31, Joel Sherrill wrote: Binary file build/arm-rtems6-xilinx_zynq_a9_qemu-default/freebsd/lib/libc/stdio/fgetln.c.12.o matches Binary file build/arm-rtems6-xilinx_zynq_a9_qemu-default/libbsd.a matches b.log:/home/joel/rtems-work/rtems-libbsd/build/arm-rtems6-xilinx_zynq_a9_qemu

Re: libbsd tests not linking

2022-07-24 Thread Joel Sherrill
On Sun, Jul 24, 2022, 7:55 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 24/07/2022 00:31, Joel Sherrill wrote: > > Binary file > > > build/arm-rtems6-xilinx_zynq_a9_qemu-default/freebsd/lib/libc/stdio/fgetln.c.12.o > > > matches > > Binary file build/arm-rtems6-xilinx_zynq_

Fwd: [rtems-bsp-builder] 2022-07-23 23:03:59: Profile(s): everything

2022-07-24 Thread Joel Sherrill
Looks like some tests are two big for some lpc BSPs. I haven't looked into all the bfin failures. Those are new. The Microblaze ones are the linker script issue a patch was posted for. I need to push that. -- Forwarded message - From: OAR Tester Date: Sun, Jul 24, 2022, 5:24 A

confdefs.h bintime undefined compile error

2022-07-24 Thread Joel Sherrill
Hi Attached is a pretty simple RTEMS application that does not compile when -std=c99 is included on the compile line. arm-rtems6-gcc -B /home/joel/rtems-work/tools/6/bsp-install/arm-rtems6/xilinx_zynq_a9_qemu/lib/ -qrtems -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g

[PATCH 1/3] bsps/stm32h7: add board C files for nucleo-h7a3zi BSP

2022-07-24 Thread Karel Gardas
Besides C files for the BSP variant the patch also provides license clarification on system_stm32h7xx.c file which is provided in boards/stm/nucleo-h7a3zi directory. The files comes from STM32CubeH7 project and references "root directory" in its license comment and it's not clear where this points

[PATCH 3/3] bsps/stm32h7: disable Ethernet completely on nucleo-h7a3zi BSP

2022-07-24 Thread Karel Gardas
The board and hosted MCU do not provide any Ethernet support anyway. --- bsps/arm/stm32h7/start/stm32h7-hal-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/arm/stm32h7/start/stm32h7-hal-eth.c b/bsps/arm/stm32h7/start/stm32h7-hal-eth.c index 5fc75f0147..173d97c31f 10

[PATCH 2/3] bsps/stm32h7: add configuration and enable build of nucleo-h7a3zi BSP

2022-07-24 Thread Karel Gardas
--- .../bsps/arm/stm32h7/bspnucleoh7a3zi.yml | 25 +++ spec/build/bsps/arm/stm32h7/opthse.yml| 1 + spec/build/bsps/arm/stm32h7/optlinkcmds.yml | 1 + .../bsps/arm/stm32h7/optmemflashlatency.yml | 1 + .../build/bsps/arm/stm32h7/optmemsdram1sz.yml | 1 + .../bs

Re: [PATCH 1/2] basp/aarch64: Make the unexpected sections origin address 64bit

2022-07-24 Thread Chris Johns
On 22/7/2022 11:14 pm, Kinsey Moore wrote: > Has this patch been tested with ILP32? I suspect that this line might need to > get yanked out to a shared lp64 linkcmds.base and a shared ilp32 linkcmds.base > or this line pulled up into the bsp-specific linkcmds variants. No it has not been tested wi

Re: confdefs.h bintime undefined compile error

2022-07-24 Thread Joel Sherrill
On Sun, Jul 24, 2022 at 11:20 AM Joel Sherrill wrote: > Hi > > Attached is a pretty simple RTEMS application that does not compile when > -std=c99 is included on the compile line. > > arm-rtems6-gcc -B > /home/joel/rtems-work/tools/6/bsp-install/arm-rtems6/xilinx_zynq_a9_qemu/lib/ > -qrtems -marc

Re: [PATCH v4 3/7] bsps: Add GPIO API

2022-07-24 Thread Chris Johns
On 23/7/2022 1:53 pm, Duc Doan wrote: > This is the new GPIO API. The header file is > gpio2.h. > --- > bsps/include/bsp/gpio2.h| 526 > bsps/shared/dev/gpio/gpio.c | 189 + > spec/build/bsps/obj.yml | 2 +- > 3 files changed, 716 insertio

Re: [PATCH v4 3/7] bsps: Add GPIO API

2022-07-24 Thread Duc Doan
Hello, On Mon, 2022-07-25 at 11:42 +1000, Chris Johns wrote: > On 23/7/2022 1:53 pm, Duc Doan wrote: > > This is the new GPIO API. The header file is > > gpio2.h. > > --- > >  bsps/include/bsp/gpio2.h    | 526 > > > >  bsps/shared/dev/gpio/gpio.c | 189 +++

Re: [PATCH 1/2] basp/aarch64: Make the unexpected sections origin address 64bit

2022-07-24 Thread Kinsey Moore
On 7/24/2022 17:04, Chris Johns wrote: On 22/7/2022 11:14 pm, Kinsey Moore wrote: Has this patch been tested with ILP32? I suspect that this line might need to get yanked out to a shared lp64 linkcmds.base and a shared ilp32 linkcmds.base or this line pulled up into the bsp-specific linkcmds var

Re: [libbsd 00/22] Remove FreeBSD file descriptors and avoid VFS

2022-07-24 Thread Sebastian Huber
On 11/07/2022 15:04, Sebastian Huber wrote: On 24/06/2022 08:33, Sebastian Huber wrote: This patch set removes the FreeBSD file descriptors.  The VFS is no longer used if only the USB, SD/MMC, network, PCI, and NVMe support is used by the application.  This change significantly reduce the memor