Commit Graph

35220 Commits

Author SHA1 Message Date
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
Sebastian Huber
f49ef6b6cb Add file descriptions to kernel space headers 2022-05-18 10:01:29 +02:00
Sebastian Huber
b9926483b1 Fix copyright notice of kernel space headers
Use the copyright notice of the associated header file from FreeBSD if the
kernel space header file contains a substantial amount of imported code.
2022-05-18 10:01:29 +02:00
Sebastian Huber
81962136cc Add include guard checks to kernel space headers 2022-05-18 10:01:29 +02:00
Sebastian Huber
3ccfb58311 Synchronize all file descriptors in sync()
Synchronize all file descriptors and not just the ones associated with a FILE
object.

Close #4656.
2022-05-17 15:20:37 +02:00
Karel Gardas
135d5274bd bsp/stm32h7: remove system files from start directory
The files are already presented in boards directories and are not needed
in start directory anymore.

Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
31f756b07c bsp/stm32h7: copy system files to nucleo-h743zi board directory
Also adjust BSP spec file to make it buildable with board files.

Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
f8a9a47de1 bsp/stm32h7: copy system files to stm32h743i-eval board directory
Also adjust BSP spec file to make it buildable with board files.

Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
6b051182a9 bsp/stm32h7: remove stm32h7b3i-dk related changes from start system files
Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
d8017f203e bsp/stm32h7: update stm32h7b3i-dk board system_stm32h7xx.c file
Updated content comes from STM32CubeIDE 1.9.0 generated for STM32H7B3I-DK
board and have RTEMS related changes merged in.

Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
63e327f9fb bsp/stm32h7: cleanup osc, clk, per files for stm32h7b3i-dk board
Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
7234516cc5 bsp/stm32h7: copy system files to stm32h7b3i-dk board directory
Also adjust BSP spec file to make it buildable with board files.

Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
836eeb686b bsp/stm32h7: move compilation of system files to BSPs spec. files
The patch is done in preparation for stm32h7 BSP tree refactoring.

Sponsored-By:	Precidata
2022-05-16 10:23:27 +02:00