1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/msp430
Marian Buschsieweke 675dcc381c
cpu/msp430: rework MSP430 x1xx periph drivers
- Move common code for USART (shared SPI / UART peripheral) to its
  own file and allow sharing the USART peripheral to provide both
  UART and SPI in round-robin fashion.
- Configure both UART and SPI bus via a `struct` in the board's
  `periph_conf.h`
    - this allows allocating the two UARTs as needed by the use case
    - since both USARTs signals have a fixed connection to a single
      GPIO, most configuration is moved to the CPU
    - the board now only needs to decide which bus is provided by
      which USART

Note: Sharing an USART used as UART requires cooperation from the app:
- If the UART is used in TX-only mode (no RX callback), the driver
  will release the USART while not sending
- If the UART is used to also receive, the application needs to power
  the UART down while not expecting something to send. An
  `spi_acquire()` will be blocked while the UART is powered up.
2024-01-22 16:59:23 +01:00
..
include cpu/msp430: rework MSP430 x1xx periph drivers 2024-01-22 16:59:23 +01:00
kconfigs cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
ldscripts cpu/msp430: improve periph_timer 2023-12-10 09:11:23 +01:00
periph cpu/msp430: rework MSP430 x1xx periph drivers 2024-01-22 16:59:23 +01:00
vendor cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
clock.c cpu/msp430: aid optimizer 2023-12-10 09:11:23 +01:00
cpu.c cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
doc.txt cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
irq.c cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
Kconfig cpu/msp430: improve periph_timer 2023-12-10 09:11:23 +01:00
Makefile cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
Makefile.dep cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
Makefile.features cpu/msp430: improve periph_timer 2023-12-10 09:11:23 +01:00
Makefile.include cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
msp430-main.c cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
mspgcc-supplement.c cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00
startup.c cpu/msp430: reorganize code 2023-06-19 17:14:57 +02:00