[PATCH rtems 2/3] bsps/atsam: Add NULL pointer protection

2022-12-09 Thread Christian Mauderer
--- bsps/arm/atsam/README | 6 +- .../libraries/libboard/source/board_lowlevel.c | 17 + bsps/arm/atsam/include/bsp.h| 4 bsps/arm/atsam/include/libchip/include/mpu.h| 1 + bsps/arm/atsam/start/bspstarthooks.c

[PATCH rtems 1/3] bsps/atsam: Fix unidirectional SPI transfers

2022-12-09 Thread Christian Mauderer
A SPI transfer where the Rx or Tx buffer is set to NULL currently transfers or overwrites data starting from address 0x via DMA. This patch changes the DMA setup so that dummy transfers are done. Just reading / writing to a single location is simpler than changing the whole logic of the

[PATCH rtems 3/3] bsp/atsam: Allow to use custom SDRAM

2022-12-09 Thread Christian Mauderer
With the old build system in RTEMS 5 that was possible by just overwriting BOARD_Sdram_Config and setting a custom ATSAM_MEMORY_SDRAM_SIZE during building the BSP. In the new build system that ATSAM_MEMORY_SDRAM_SIZE is set exclusively by the selected SDRAM chip. This patch adds the possibility

[PATCH rtems 0/3] bsps/atsam: Various small improvements

2022-12-09 Thread Christian Mauderer
Hello, this patch set adds a number of improvements to the ATSAM BSP. The patches accumulated over the last few month on a branch. The first one fixes a problem with unidirectional SPI transfers. The current driver would overwrite or send data at / from 0x00. The second one adds a small