1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

79 Commits

Author SHA1 Message Date
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
Gunar Schorcht
26030e28af boards: remove extern mtd_dev_t* Declarations 2023-12-07 15:32:49 +01:00
bors[bot]
03d3874e51
Merge #19465 #19981 #19995
19465: drivers/mtd: use XFA for pointers to defined MTDs r=benpicco a=gschorcht

### Contribution description

This PR provides the support to hold pointers to defined MTDs within a XFA. The XFA allows
- to access MTDs of different types (`mtd_flashpage`, `mtd_sdcard`, `mtd_emulated`, ...) by an index
- to determine the number of MTDs defined in the system.

### Testing procedure

To be defined once PR #19443 is merged because emulated MTDs will allow to test this PR on arbitrary boards.

### Porting Guide

For external boards:
 - remove the `MTD_NUMOF` definition from `board.h`
 - add `MTD_XFA_ADD(<mtd_dev>, <idx>);` to the definition of `<mtd_dev>`.
 - `MTD_0`, `MTD_1`, … defines are no longer needed.

### Issues/PRs references

 Related to PR #19443

19981: Fletcher32: Add incremental API r=benpicco a=bergzand

### Contribution description

This PR extends the current fletcher32 checksum with an incremental API mode. This way the bytes to be checksummed can be supplied via multiple successive calls and do not have to be provided in a single consecutive buffer.

I've also rephrased the warning with the original function a bit as that function uses an `unaligned_get_u16` to access the data. The data thus does not require alignment, but the length does need to be supplied as number of 16 bit words.

### Testing procedure

The test has been extended


### Issues/PRs references

None

19995: sys/psa_crypto: Fix macro for public key max size and SE example r=benpicco a=Einhornhool

### Contribution description
#### 1. Wrong public key size when using secure elements, introduced by  #19954
Fixed conditions for key size macros in `crypto_sizes.h`.

#### 2. EdDSA and ECDSA examples fail when using a secure element because of unsopported changes introduced by #19954
Updated `example/psa_crypto` to use only supported functions for secure elements.

### Testing procedure
Build `example/psa_crypto` for secure elements and run application

Output on master:
```
2023-10-19 14:33:24,372 # main(): This is RIOT! (Version: 2019.07-devel-22378-gb6772)
2023-10-19 14:33:24,372 # HMAC SHA256 took 56393 us
2023-10-19 14:33:24,372 # Cipher AES 128 took 68826 us
2023-10-19 14:33:24,372 # *** RIOT kernel panic:
2023-10-19 14:33:24,373 # HARD FAULT HANDLER
2023-10-19 14:33:24,373 # 
2023-10-19 14:33:24,373 # *** rebooting...

```
Output with fixes:
```
2023-10-19 13:35:24,715 # main(): This is RIOT! (Version: 2019.07-devel-22384-g8ef66-dev/psa-crypto-fixes)
2023-10-19 13:35:24,715 # HMAC SHA256 took 56374 us
2023-10-19 13:35:24,715 # Cipher AES 128 took 68805 us
2023-10-19 13:35:24,715 # ECDSA took 281164 us
2023-10-19 13:35:24,715 # All Done
```


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
2023-10-19 19:01:12 +00:00
Marian Buschsieweke
edc43201db
tree-wide: fix typos in doc and comments
This should not change any generated binary
2023-10-16 12:17:48 +02:00
Gunar Schorcht
46040a4361 boards: use XFA with MTD pointers for defined MTDs 2023-10-02 12:28:08 +02:00
Gunar Schorcht
c80591779f boards: fix references in documentation 2023-09-27 09:12:06 +02:00
Teufelchen1
1231807bab Documentation: Renaming OS X to macOS 2022-06-23 17:25:48 +02:00
29c7e6c0bf
boards/iotlab-m3: fix mixed sensors in implementation status 2022-05-18 08:58:34 +02:00
Benjamin Valentin
a866a745b5 boards/iotlab-m3: configure littlefs2 on external flash 2022-03-29 10:24:01 +02:00
Benjamin Valentin
67417ce5a9 drivers/mtd_spi_nor: drop addr_width from mtd_spi_nor_params_t
This is now always determined at run-time.
2022-02-04 12:17:17 +01:00
796e127df9
boards/stm32: replace GPIO_UNDEF with SPI_CS_UNDEF 2022-01-06 12:34:09 +01:00
MrKevinWeiss
deda2cfb97
boards: Fix stm32 based boards kconfig models 2021-12-15 09:31:45 +01:00
Benjamin Valentin
f2ebb5178a boards/iotlab-m3: add MTD definition
The board comes with a 16 MiB SPI-NOR flash (N25Q128).
Provide the needed MTD definitions to support it.
2021-12-04 00:44:55 +01:00
e731533e6a
boards/iotlab-*: model features in Kconfig 2020-07-16 11:34:03 +02:00
Marian Buschsieweke
387000995c
boards/iotlab-m3: Fix units & alignment in doc 2020-06-16 11:36:48 +02:00
Gunar Schorcht
da46cc8657 boards/iotlab-m3: fix broken links 2020-03-24 10:38:40 +01:00
713fead00a
boards: move some USEMODULE to Makefile.dep 2020-02-07 13:21:22 +01:00
Francisco Molina
f79397f7be boards/iotlab-%: use common openocd config 2020-01-28 11:56:38 +01:00
e6d3963cd4 boards/iotlab-m3: fix typos 2019-11-23 22:39:07 +01:00
Gaëtan Harter
c1b32fe1f3
boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
Use the new OPENOCD_RESET_USE_CONNECT_ASSERT_SRST to configure
'reset_config connect_assert_srst' when flashing and resetting only.

This removes the need for a special debug configuration and should allow
connecting to a running target again.
2019-09-02 16:12:55 +02:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
80b337b756
boards/iotlab: update lps331ap device addr define
The default address is the same one
2019-03-20 14:43:36 +01:00
8d1a0ae074
boards: revert forced use of periph_dma with STM32
The periph_dma is not pulled in automatically for all applications.
Applications willing to use the configured peripherals with periph_dma
for a given board will have to include the feature explictly in their
Makefile.

It was causing unrelated issues as threads got de-scheduled while
calling printf and this was not handled properly in tests at that
moment.
2019-01-21 15:14:28 +01:00
9daf3c74a9 boards/iotlab-m3: disable DMA with SPI 2019-01-15 19:49:32 +01:00
0b6bccb543 boards/iotlab-m3: configure and use DMA
Used with UART and SPI peripheral
2019-01-08 09:32:18 +01:00
cladmi
b450141d4d
boards: unconditionally include CPU/Makefile.features
The file always exist so no need to do '-include'.

Replaced using:

    sed -i 's|-\(include $(RIOTCPU)/.*/Makefile.features\)|\1|' \
        $(git grep -l  '$(RIOTCPU)/.*/Makefile.features' boards)
2018-10-11 17:13:40 +02:00
cladmi
6fc8fae2c8
boards/Makefile.include: remove duplicate includes
Includes of $(CPU)/include and $(BOARD)/include and already added in the
main Makefile.include.

Verification:

There are no common headers names between boards and cpus.
Except native that has a 'periph_conf.h' in cpu instead of being in board.
2018-09-11 16:28:18 +02:00
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Jose Alamos
a1e17ab5af doc: add wiki documentation to Doxygen files 2018-08-01 15:24:54 +02:00
Gaëtan Harter
d4ca2644a3
boards/iotlab-m3|a8: fix openocd configuration
iotlab-m3 boards always ended up not being able to flash after time.
This changes managed to fix and flash boards that where able to be flashed with
the deprecated `ft2232` driver and not with the `ftdi` driver used in RIOT.

It combines configuration from openocd, iot-lab, RIOT config and Alexandre
Abadie feedback

* http://repo.or.cz/openocd.git/blob/HEAD:/tcl/interface/ftdi/iotlab-usb.cfg
  * ftdi configuration
* https://github.com/iot-lab/iot-lab-gateway/blob/2.4.1/gateway_code/static/iot-lab-m3.cfg
  * `trst_and_srst` config
* Alexandre feedback and http://openocd.org/doc/html/Reset-Configuration.html
  * 'connect_assert_srst' reset configuration
    * it prevents errors in the output on first flash
    * should help on boards with invalid code
    * It was taken from what Alexandre found for board 'b-l072z-lrwan1'
  * It requires using '-c reset halt' instead of '-c halt' before debug
* RIOT
  * Keep the `configure -rtos` auto
2018-07-02 11:00:48 +02:00
79ab920333 boards/iotlab*: fix driver params usage 2018-02-28 18:26:39 +01:00
b78c96ffc7 boards/*: make brief description consistent 2018-01-24 08:30:56 +01:00
Hauke Petersen
eb2b9f2169 boards/iotlab: move shared code to common/iotlab 2017-11-30 10:26:35 +01:00
02e055fc81 make: include cpu Makefile.features from board Makefile.features 2017-09-14 13:15:52 +02:00
ebc35a0613 boards: fix doxygen @brief in periph.conf 2017-01-27 10:31:56 +01:00
Peter Kietzmann
513b20ffd3 Merge pull request #4780 from haukepetersen/opt_periph_spi2
drivers/spi: reworked SPI driver interface
2017-01-25 22:07:36 +01:00
Oleg Hahm
c5abb08316 Merge pull request #4058 from daniel-k/pr/gdb_threads_openocd
cortex_m: Add debug symbols for OpenOCD/GDB thread support
2017-01-25 17:49:42 +01:00
Hauke Petersen
0edef2a0e1 cpu/stm32*+boards: adapted to new SPI API
- adapted the SPI driver
- adapted all boards using the CPU
2017-01-25 16:46:45 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
daniel-k
9d403d95ce cortex_m: Add debug symbols for OpenOCD/GDB thread support 2017-01-16 20:50:35 +01:00
Pieter Willemsen
a0835ccb1d stm32: use periph_clk_en/dis functions for clock changes 2016-12-16 15:01:56 +01:00
Martine Lenders
95792d348e iotlab-m3: add missing makefile include to dependencies
This got lost somehow in 10e9336. Without this fix gnrc_netdev_default
does not include the at86rf2xx module.
2016-10-30 13:14:57 +01:00
10e9336c78 boards: adapt to automatically included boards/$board/Makefile.dep 2016-09-29 15:41:12 +02:00
Cedric Adjih
292f4bc1ee boards/iotlab-a8-m3: initial implementation 2016-05-31 14:52:49 +02:00
Peter Kietzmann
5817d91b91 Merge pull request #5192 from DipSwitch/pr/fix_stm32f1_also_disable_hsi_on_hse
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-05-17 10:51:46 +02:00
DipSwitch
a259cc42b0 [SQUASH] Make PLL_DIV and PLL_MUL behave the same as for the F3 and F4 2016-04-05 23:51:55 +02:00
DipSwitch
bd9b3a269c cpu/stm32/perip/dac: Move DAC implementation to stm32_common/periph since all STM32 DAC's have the same basics 2016-03-29 22:25:50 +02:00
Oleg Hahm
10f5f1aa33 make: introduce netif_default pseudomodule
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
2016-03-24 16:47:30 +01:00
Martine Lenders
5bfc9e43fb at86rf2xx: port to netdev2 2016-03-23 17:45:16 +01:00