Commit Graph

35682 Commits

Author SHA1 Message Date
Sebastian Huber
5dc5ab5650 arm/lpc32xx: Hide MLC details 2022-06-08 09:33:20 +02:00
Sebastian Huber
bb29f8b5ff bsp/lpc32xx: Fix FIQ interrupt support
Do not sporadically service interrupts configured as FIQ by the IRQ
interrupt dispatch.
2022-06-08 09:33:20 +02:00
Sebastian Huber
9a69e43083 validation: Fix CallWithinISR()
Some BSPs require that Clear_tm27_intr() is called in the interrupt
service routine.

Update #3269.
2022-06-08 09:33:20 +02:00
Sebastian Huber
c93f0f01e5 arm: Fix PMSA regions for contiguous sections
Sections with identical attributes may be contiguous with a respective
begin and end address which is not on a minimum region boundary.  The
begin address is aligned down to the region base address.  The end
address is aligned up to the region end address.  Account for this in
the check for contiguous sections.

Update #4202.
2022-06-08 09:10:20 +02:00
Sebastian Huber
0b9497a6dd arm: Fix PMSA region mapping with 0x0 end address
A section may span up to the end of the address range.  In this case the
end address is zero.  Use the base address to check if a region should
be before another region.

Update #4202.
2022-06-08 09:10:12 +02:00
Sebastian Huber
ed51fad53a build: Assert value properties only if not None 2022-06-08 09:08:26 +02:00
Christian Mauderer
8beb1d2fb0 bsps/atsam: Fix type of options
ATSAM_CONSOLE_DEVICE_INDEX and ATSAM_CONSOLE_DEVICE_TYPE have to be
integers like suggested by their description. Otherwise it's not
possible to select (for example) USART2 as console device.
2022-06-07 08:31:26 +02:00
Sebastian Huber
a26b9936ff arm: Fix typo 2022-06-03 08:37:14 +02:00
Karel Gardas
c3ad1e3c27 bsps/stm32h7: set SDRAM 1 size to 0 by default on nucleo-h743zi BSP
Nucleo does not have any SDRAM, so 0 size is the only possible right
choice here.

Sponsored-By:	Precidata
2022-06-02 10:44:30 +02:00
Karel Gardas
925bcdb8e8 bsps/stm32h7: set default linkage to flash for nucleo-h743zi BSP
Nucleo does not have any SDRAM so default linkage to SDRAM does not make
any sense here.

Sponsored-By:	Precidata
2022-06-02 10:44:30 +02:00
Karel Gardas
5a1f87a071 bsps/stm32h7: set default printk instance on nucleo-h743zi BSP to USART3
This is the default configuration of the board out of the box.
Any other possible/supported configuration requires soldering,
so definitely not out of the box experience.

Sponsored-By:	Precidata
2022-06-02 10:44:30 +02:00
Karel Gardas
f2cf15b82a bsps/stm32h7: add stm32h747i-disco-m4 BSP variant
This patch adds stm32h747i-disco-m4 BSP variant and puts it in sync
with the stm32h747i-disco BSP variant hardware support. That means,
only USART 1, 2 and UART 8 are enabled. Also SDRAM 2 is set to 32MB,
SDRAM 1 size is set to 0.

Sponsored-By:	Precidata
2022-06-02 10:44:30 +02:00
Karel Gardas
8604b46ab6 bsps/stm32h7: set default SDRAM x sizes on stm32h747i-disco BSP
This means:

SDRAM 1: 0
SDRAM 2: 32 MB

Sponsored-By:	Precidata
2022-06-01 15:49:19 +02:00
Karel Gardas
587ce75111 bsps/stm32h7: disable all unsupported U(S)ARTs on stm32h747i-disco BSP
This patch disables all U(S)ARTs which are not supported by the board
itself and its provided connectors. That means only USART1 and 2
and UART8 are enabled.

Sponsored-By:	Precidata
2022-06-01 15:49:19 +02:00
Karel Gardas
8abb339640 bsps/stm32h7: add configuration and enable build of stm32h747i-disco BSP
Sponsored-By:	Precidata
2022-06-01 15:49:19 +02:00
Karel Gardas
a5bde172fe bsps/stm32h7: add board C files for stm32h747i-disco BSP
Besides C files for the BSP variant the patch also provides license
clarification on system_stm32h7xx.c file which is provided
in boards/stm/stm32h747i-disco directory.
The files comes from STM32CubeH7 project and references "root directory"
in its license comment and it's not clear where this points out.
Let's add clarification comment about it and also based on it
and resulting license let's add SPDX license identifier.

Sponsored-By:	Precidata
2022-06-01 15:49:19 +02:00
Karel Gardas
04fd4ef2b6 bsps/stm32h7: set default SDRAM x sizes on stm32h757i-eval-m4 BSP
This means:

SDRAM 1: 0
SDRAM 2: 32 MB

Sponsored-By:   Precidata
2022-06-01 11:20:59 +02:00
Karel Gardas
30b2ad318b bsps/stm32h7: disable all U(S)ARTs except USART1 on stm32h757i-eval-m4 BSP
This patch disables all U(S)ARTs which are not supported by the board
itself and its provided connectors.

Sponsored-By:   Precidata
2022-06-01 11:20:59 +02:00
Karel Gardas
250254ff8f bsps/stm32h7: add configuration and enable build of stm32h757i-eval-m4 BSP
This is minimalist configuration for the stm32h757i-eval-m4 BSP provided
here. The only general enhancement worth mention is a flash origin address
configuration which is needed for simplification as M4 core boots
from second flash bank which starts at 0x8100000 by default. The boot
address of the core may be changed by using STM32CubeProgrammer. If done
so then also BSP configuration needs to be changed accordingly.

As the BSP variant is running on M4 core, there is also more configuration
changes required here. E.g. boot core and ABI (compilation flags)
in comparison with stm32h757i-eval BSP. On the other hand, C code is shared
completely with this BSP variant.

Sponsored-By:   Precidata
2022-06-01 11:20:59 +02:00
Karel Gardas
7cb73a34d4 bsps/stm32h7: include CMSIS Cortex-M4 header when required by configuration
Sponsored-By:	Precidata
2022-06-01 11:20:59 +02:00
Karel Gardas
bdfc8d8f4d bsps/stm32h7: move cache implementation from obj to BSPs own yml file
This is done in preparation for future Cortex-M4 based BSP variants
which do not provide cache at all.

Sponsored-By:	Precidata
2022-06-01 11:20:59 +02:00
Karel Gardas
ec39a69529 bsps/stm32h7: enable cache and MPU only on Cortex-M7
Sponsored-By:	Precidata
2022-06-01 11:20:49 +02:00
Karel Gardas
ed814cd8bc bsps/arm: add CMSIS Cortex-M4 Core Peripheral Access Layer Header File 2022-05-30 01:34:24 +02:00
Karel Gardas
186c891182 bsps/stm32h7: set default SDRAM x sizes on stm32h757i-eval BSP
This means:

SDRAM 1: 0
SDRAM 2: 32 MB

Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
99f00b12dd bsps/stm32h7: enable SDRAM 2 MPU region
Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
42ed4a6338 bsps/stm32h7: provide linkcmds for SRAM, FLASH_SDRAM and SRAM_SDRAM linking
Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
3aab95f3a7 bsps/stm32h7: add and enable test set exclusion for stm32h757i-eval BSP
Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
1ea6540c62 bsps/stm32h7: disable all U(S)ARTs except USART1 on stm32h757i-eval BSP
This patch disables all U(S)ARTs which are not supported by the board
itself and its provided connectors.

Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
124912445c bsps/stm32h7: add configuration and enable build of stm32h757i-eval BSP
This is minimalist configuration for the stm32h757i-eval BSP provided
here. The only general enhancement worth mention is boot core
configuration which is needed here as this is the first dual-core board
supported by stm32h7 BSP family and we need to choose boot core in order
to get C files compiling well.

Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
2fded8138d bsps/stm32h7: add board C files for stm32h757i-eval BSP
Besides C files for the BSP variant the patch also provides license
clarification on system_stm32h7xx.c file which is provided
in boards/stm/stm32h757i-eval directory.
The files comes from STM32CubeH7 project and references "root directory"
in its license comment and it's not clear where this points out.
Let's add clarification comment about it and also based on it
and resulting license let's add SPDX license identifier.

Sponsored-By:	Precidata
2022-05-27 20:17:32 +02:00
Gabriel Moyano
34ba0e5a8e sppps01: Improve default handler test
Update #2349.
2022-05-27 13:42:56 +02:00
Sebastian Huber
044e8b6b97 score: Fix pps_fetch()
Return early only if there was a timeout, otherwise return the PPS info.

Update #2349.
2022-05-27 11:30:51 +02:00
Karel Gardas
f91f30f69a MAINTAINERS: Add myself to Write After Approval
Add myself also to Localized Write Permission for x86_64.
2022-05-26 20:40:34 +02:00
Sebastian Huber
495f8363de score: Reformat for code coverage
Close #2349.
2022-05-23 09:09:08 +02:00
Gabriel Moyano
6553bf4ab6 testsuites/sptests: Add sppps01 test
Update #2349.
2022-05-23 09:09:06 +02:00
Gabriel Moyano
5ccf9605dd timecounter.h: Add _Timecounter_Discipline()
Update #2349.
2022-05-23 09:09:03 +02:00
Gabriel Moyano
b3e4f5809d timepps.h: PPS_SYNC defined by default
Update #2349.
2022-05-23 09:09:01 +02:00
Gabriel Moyano
b304603b62 kern_ntptime.c: Add define in order to remove warning
Update #2349.
2022-05-23 09:08:59 +02:00
Gabriel Moyano
13513b8104 kern_tc.c: Enable PPS API support
Update #2349.
2022-05-23 09:08:57 +02:00
Gabriel Moyano
c34d3aecb1 kern_tc.c: Add definitions required by PPS API
Update #2349.
2022-05-23 09:08:55 +02:00
Gabriel Moyano
ac4ea53664 score: Rename tc_getfrequency()
Rename tc_getfrequency() to _Timecounter_Get_frequency().

Update #2349.
2022-05-23 09:08:52 +02:00
Gabriel Moyano
95c747d9e7 kern_tc.c: Replace FreeBSD event mechanism by adding pointers to function
Update #2349.
2022-05-23 09:08:50 +02:00
Gabriel Moyano
bf61753a92 kern_tc.c: Add atomic dependencies required by the PPS API
Update #2349.
2022-05-23 09:08:48 +02:00
Gabriel Moyano
a3930e8c49 kern_ntptime.c: Add lmax() qmin() definitions
Update #2349.
2022-05-23 09:08:46 +02:00
Gabriel Moyano
9b4212c7b0 kern_ntptime.c: Disable freebsd features
Update #2349.
2022-05-23 09:08:29 +02:00
Karel Gardas
635cd68aa7 bsp/arm: allocate .rtemsstack on REGION_STACK instead of on REGION_WORK
REGION_WORK may be backed by external RAM which may not be initialized
in a time we need stack to work well. E.g. code loaded in flash,
stack allocated on in-cpu SRAM and data (REGION_WORK) on external SDRAM.

Sponsored-By:	Precidata
2022-05-23 08:36:41 +02:00
Sebastian Huber
89c498ccda score: Add SPDX License Identifier
Remove URL in copyright notice.

Update #3053.
2022-05-18 11:34:53 +02:00
Sebastian Huber
93800e09d7 rtems: Relicense rtemsmaxprio.c
Change license to BSD-2-Clause according to file history.

Update #3053.
2022-05-18 11:34:50 +02:00
Sebastian Huber
6476cdc67c bsps: Relicense <bsp/fatal.h>
Add Doxygen documentation.  Change license to BSD-2-Clause according
to file history.

Update #3053.
2022-05-18 11:34:45 +02:00
Sebastian Huber
be580201dd bsps: Relicense <bsp/default-initial-extension.h>
Replace Doxygen documentation.  Change license to BSD-2-Clause according
to file history.

Update #3053.
2022-05-18 11:34:38 +02:00