2059 Commits

Author SHA1 Message Date
Shaunak Datar
fb08c8cb8d bsp/aarch64/raspberrypi: Add support for DMA
Adds the support for DMA on the Raspberry Pi 4b
2025-08-20 12:40:01 +05:30
Sebastian Huber
8baae3ee09 bsps/arm: Fix discarded qualifiers warning
Move volatile qualifier to the register block structure.

Close #5320.
2025-08-18 03:03:16 +02:00
Shaunak Datar
c8e5f206b4 bsp/aarch64/raspberrypi: Add C++ header guards
Adds header guards to the installed headers in raspberrypi/include/bsp
2025-08-13 12:04:14 -05:00
Sunil Hegde
fee83ad4fb bsps/no_cpu/no_bsp/clock/ckinit.c: Fixed formatting
Fixed formatting as suggested by the format diff, no
functional changes were made.
2025-08-13 15:28:45 +00:00
Sunil Hegde
6f51e669ad bsps/no_cpu: removed set_vector uses and prototype in the bsp template
removed set_vector uses and protoptypes from the bsp template.
Replaced it with rtems_interrupt_entry_install()

Updates #5215
2025-08-13 15:28:45 +00:00
Sebastian Huber
00bef3226d bsps/irq: Fix array bounds warning
Use a one element array to prevent array subscript index is outside
array bounds warnings.

Close #5298.
2025-08-13 01:53:05 +02:00
Lucian Silistru
45b1495a8a record: Avoid dependency on object link order
For the application configuration option
CONFIGURE_RECORD_INTERRUPTS_ENABLED, define
bsp_interrupt_get_dispatch_table_slot() in the application configuration
to avoid issues with the object link order within the RTEMS libraries.

Enable this option in an associated test.

Close #5244.
2025-08-12 13:18:30 -05:00
Sebastian Huber
16faa870a5 bsps/powerpc: Fix assembler warnings
Avoid arithmetic involving v0..v31 register names.
2025-08-12 16:51:45 +02:00
Sebastian Huber
e74e5e1644 bsps/powerpc: Fix assembler warnings
Use numeric value of cr0 to fix the following warnings:

ppc_exc_asm_macros.h: Assembler messages:
ppc_exc_asm_macros.h:242: Warning: invalid register expression
ppc_exc_asm_macros.h:730:  Info: macro invoked from here
ppc_exc.S:134:   Info: macro invoked from here
ppc_exc_asm_macros.h:242: Warning: invalid register expression
ppc_exc_asm_macros.h:730:  Info: macro invoked from here
ppc_exc.S:137:   Info: macro invoked from here
2025-08-12 16:51:34 +02:00
Joel Sherrill
fdba64f306 bsps/aarch64: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Joel Sherrill
be6e30dff3 bsps/arm: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Joel Sherrill
b162f65fb1 bsps/include: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Joel Sherrill
a265d69094 bsps/riscv: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Joel Sherrill
4549be01e3 bsps/shared: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Joel Sherrill
3a51fd9e6f bsps/sparc: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Joel Sherrill
548cb8e07c bsps/x86_64: Move SPDX line to top of file
The RTEMS Software Engineering Guide specifies that the SPDX license
annotation shouldbe the first line of the file and not part of the
copyright/license comment block.
2025-08-11 19:06:32 +00:00
Sebastian Huber
eeaef74d07 bsps/arm/*: Relicense to 2-BSD
All files were written by Sebastian Huber who has previously given
permission to relicense.

Update #3053.
Close #5318.
2025-08-11 03:53:04 +02:00
Kinsey Moore
e8c5bba5bf arm/imxrt: Resolve missing prototype
This resolves a missing prototype by making a file used in the arm/imx
BSP family shared so that it can be used by the arm/imxrt BSP family to
provide the missing prototypes.
2025-08-06 14:58:49 +00:00
Joel Sherrill
b9b572335e bsps/powerpc/include/mpc8xx.h: Disable zero length array
A padding array ends up with a size of 0 which is illegal in newer
versions of C -- at least C17 and later.
2025-08-05 13:53:38 -05:00
Joel Sherrill
47e4832f9a atsam/contrib/.../source/board_lowlevel.c: Fix comparison of two arrays
Casted both as uintptr_t to resolve this.
2025-08-05 09:01:33 -05:00
Kinsey Moore
2cc6af6188 bsps/aarch64: Fix warning on ILP32
ILP32 can't represent 4GB in uintptr_t. Avoid the warning that this
assignment generates and update MMU config processing to avoid overflow
when ILP32 is in use.
2025-08-05 13:43:53 +00:00
Joel Sherrill
6b89dc82e9 stm32h7/.../stm32h743i-eval/ext-mem-ctl.c: Add prototype
Fixed missing prototype for SystemInit_ExtMemCtl().  This file is
STM code and SystemInit_ExtMemCtl() is protyped for BSP use in
bsp.h. We do not want to include that in this file to avoid
potential conflicts.
2025-08-05 13:33:57 +00:00
Joel Sherrill
414181bf2c powerpc/beatnik/include/bsp.h: Disable inport_ and outport_
The inport_[byte|word|long] and outport_[byte|word|long] methods
assume that the port is an address. The Beatnick definitions just
pass through the offset into IO Space. These are broken until they
do that. They do not appear to be used in anything this BSP actually
uses so disabling them works. Code is disabled with a lengthy comment
added if someone needs them to work in the future.
2025-08-05 13:31:47 +00:00
Joel Sherrill
0e81a0653a arm/stm32h7/.../stm32h750b-dk/system_stm32h7xx.c: Fix indentation
Address GCC warning for misleading indentation.
2025-08-05 13:30:53 +00:00
Joel Sherrill
2f0abe10e3 arm/stm32f4/.../stm32f4xxxx_rcc.h: RCC_CFGR_PPRE2 multiply defined
RCC_CFGR_PPRE2 was defined three times. Deleted the second and
third definitions. The second appeared to be wrong and the third
looked to be an alternate way to express the first.
2025-08-05 13:26:57 +00:00
Joel Sherrill
347fe98fe4 arm/stm32f4/.../stm32f4.h: Duplicate definition of STM32F4_FLASH
STM32F4_FLASH was defined in two places. The first used a hard
coded full address while the second used a more appropriate
base address and offset. Kept the second.
2025-08-05 13:26:20 +00:00
Joel Sherrill
5fe179df8f arm/stm32h7/.../stm32h757i-eval/system_stm32h7xx.c: Fix indentation
Address GCC warning for misleading indentation.
2025-08-05 13:21:23 +00:00
Joel Sherrill
0183fa1766 bsps/arm/atsam/contrib/.../source/pmc.c: Fix misleading indentation
Added braces to help gcc interpret the code.
2025-08-05 13:19:36 +00:00
Joel Sherrill
2c24c8cb0c imxrt/mcux-sdk/.../fsl_mipi_dsi.c: Fix used before initialized warning
These were outputs from a called function. Initialized to 0 to
make GCC happy.
2025-08-05 13:18:45 +00:00
Kinsey Moore
f18fc04657 bsps/shared/gpio: Fix array bounds warning
GCC currently has issues with false positive warnings about array bounds
violations when the value used as the index is a pointer. This slightly
reworks the code to make it cleaner and to avoid this warning.
2025-07-31 18:13:12 -05:00
Joel Sherrill
75312c1b9b bsps/include/grlib/ambapp.h: Fix warning for zero length array use
The use of an array of zero length at the end of a structure needs to
be careful to use RTEMS_ZERO_LENGTH_ARRAY since the accepted syntax
varies across C language versions.
2025-08-01 09:12:23 +10:00
Amar Takhar
d75cfcb52f bsps: Delete stm32u5xx HAL
Also add new build locations and include directories.

This renames 4 files to their original names that had no changes:

stm32u5xx_hal_msp.c ->
  stm32u5xx_hal_msp_template.c

stm32u5xx_hal_timebase_rtc_wakeup.c ->
  stm32u5xx_hal_timebase_rtc_wakeup_template.c

stm32u5xx_hal_timebase_tim.c ->
  stm32u5xx_hal_timebase_tim_template.c

stm32u5xx_hal_timebase_rtc_alarm.c ->
  stm32u5xx_hal_timebase_rtc_alarm_template.c

There is one file left behind that will be sorted out in the future:

stm32u5/hal/system_stm32u5xx.c

It comes from

07b6fedf4b/Projects/NUCLEO-U575ZI-Q/Applications/ThreadX/Tx_LowPower/Src/system_stm32u5xx.c

As per Christian on Discord.
2025-08-01 08:43:29 +10:00
Amar Takhar
1110ef4303 bsps: Remove stm32h7xx_hal
These have now moved to:

contrib/bsps/arm/stm32h7/cmsis-device-h7
contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver

Also add include directories to the build.
2025-08-01 08:43:29 +10:00
Jeremy Lorelli
d8c5b7fa85 bsps/uC5282: Convert tabs to spaces
Most of these files were mixed spaces/tabs, this normalizes it
2025-07-28 17:01:56 -05:00
Joel Sherrill
b7f35f9db9 bsps/m68k/mcf5235/console/console.c: Fix misleading indentation
GCC warned that the indentation was misleading. Corrected the
format and added braces on the while.
2025-07-27 01:26:48 +00:00
Joel Sherrill
a350345e29 arm/.../stm32h757i-eval/system_stm32h7xx.c: Fix misleading indentation
GCC warned that the incorrectly indented line could be misinterpreted
as needing to belong to the previous for loop which does not have
braces.
2025-07-24 21:20:17 -05:00
Joel Sherrill
86253b9e05 bsps/powerpc/gen5200/mscan/mscan.c: Fix format specifier warning
Calling rtems_panic() and should have used %ul.
2025-07-24 22:01:38 -04:00
Joel Sherrill
54f8249915 bsps/mvme5500: Remove the BSP
MVME5500 was deprecated in 6 and will not be present in 7.
The Beatnik is recommended.

Updates rtems/rtos/rtems#4160
2025-07-24 22:00:04 -04:00
Joel Sherrill
41f6f28c6d bsps/powerpc/ss555/start/bspstart.c: Fix array bounds warning
GCC warned that the pointer magic was resulting in an array bounds
violation. The solution is to use uintptr_t when doing abusive
pointer math.
2025-07-24 21:59:20 -04:00
Joel Sherrill
4773863245 bsps/x86_64/amd64/clock/clock.c: Correct printf() format specifiers
The DBG_PRINTF() is disabled by default which meant the warning
was normally hidden.
2025-07-24 20:37:11 -05:00
Joel Sherrill
ccc5651c99 altera-cyclone-v/contrib/.../hwmgr/*.c: Fix warnings
Some of these were missing prototypes. Usually this could be addressed
by adding static or conditionally compiling unused functions out.
2025-07-24 20:36:11 -05:00
Joel Sherrill
2f04281682 bsps/mips/malta/pci/pci.c: Correct printf() format specifiers
Switched to PRIu32.
2025-07-24 20:26:15 -05:00
Joel Sherrill
b934583853 bsps/mips/include/libcpu/au1x00.h: Correct au_sync() prototype
GCC warns that ‘static’ is not at beginning of the function
declaration.
2025-07-24 19:48:22 -05:00
Joel Sherrill
95a90047df bsps/arm/lpc176x/include/bsp/lpc176x.h: Correct ADC_DR_VALUE() macro
ADC_DR_VALUE() should used starting bit 4 not 6. See the issue
for a link to the LPC17xx manual for reference.

Closes #5293.
2025-07-24 19:29:11 -05:00
Christian Mauderer
c16bb34650 bsps/imxrt: Fix warning
The implementation of the BUILD_ASSURE in mcux-sdk causes a warning. Use
a C11 _Static_assert instead.

Updates #5300
2025-07-24 19:26:24 -05:00
Joel Sherrill
58795be2cb bsps/m68k/genmcf548x/console/console.c: Fix misleading indentation
Added braces and corrected indentation to reflect intent.
2025-07-24 18:36:27 -05:00
Joel Sherrill
e856c4b985 bsps/m68k/genmcf548x/start/bspstart.c: Fix negative array subsscript
GCC warned that the pointer magic was resulting in an array bounds
violation. The solution is to use uintptr_t when doing abusive
pointer math.
2025-07-24 18:31:11 -05:00
Joel Sherrill
f95385da23 m68k/genmcf548x/start/init548x.c: Fix warning for comparing two arrays
GCC warnings when comparing the starting addresses of two arrays when
using just the name of the array. Changes to use the address of
element 0 which resolved the warning.
2025-07-24 18:29:51 -05:00
Joel Sherrill
262cbd69f3 bsps/m68k/mcf5329/start/init5329.c: Address comparison of arrays
GCC warned about comparing arrays by name. Changed to casting all
array names to (uintptr_t).
2025-07-24 18:28:56 -05:00
Joel Sherrill
1a394709eb bsps/or1k/generic_or1k/btimer/btimer.c: Address misleading indentation
GCC warned that the indentation was misleading.
2025-07-24 18:28:16 -05:00