[riot-notifications] [RIOT-OS/RIOT] cpu/efm32: provide periph_uart_mode (#12323)

Bas Stottelaar notifications at github.com
Sat Sep 28 12:26:17 CEST 2019

### Contribution description
This PR removes the non-standard UART mode feature, and replaces it with the `uart_mode` implementation for both UART and LEUART (only supports 8 or 9 bit frames).

### Testing procedure
Run `tests/periph_uart_mode` and follow the test instructions. All other tests that output to the shell should still work.

Here are some oscilloscope screenshots that show that the API is working (it's time-consuming to test this). I've used a custom application that just sends out 0x55.



LEUART 8N1 (default)


My scope show question marks whenever it cannot match the decoding settings to the actual data:


### Issues/PRs references
Depends on #12322.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * cpu: efm32: move LOW_POWER_ENABLED to efm32-features.mk
  * tests/cpu_efm32_features: update test
  * boards+efm32: remove LOW_POWER_ENABLED from doc.txt
  * efm32: remove UART modes via non-standard api
  * pkg/gecko_sdk: update to newer version
  * cpu/efm32: implement uart_mode
  * boards+efm32: remove non-standard uart modes feature
  * boards+efm32: provide periph_uart_modecfg
  * tests/cpu_efm32_features: update test

-- File Changes --

    M boards/ikea-tradfri/Makefile.features (2)
    M boards/ikea-tradfri/include/periph_conf.h (3)
    M boards/slstk3401a/Makefile.features (2)
    M boards/slstk3401a/doc.txt (2)
    M boards/slstk3401a/include/periph_conf.h (9)
    M boards/slstk3402a/Makefile.features (2)
    M boards/slstk3402a/doc.txt (2)
    M boards/slstk3402a/include/periph_conf.h (6)
    M boards/sltb001a/Makefile.features (2)
    M boards/sltb001a/doc.txt (2)
    M boards/sltb001a/include/periph_conf.h (9)
    M boards/slwstk6000b/Makefile.features (2)
    M boards/slwstk6000b/include/periph_conf.h (3)
    M boards/stk3600/Makefile.features (2)
    M boards/stk3600/include/periph_conf.h (9)
    M boards/stk3700/Makefile.features (2)
    M boards/stk3700/include/periph_conf.h (9)
    M cpu/efm32/Makefile.features (4)
    M cpu/efm32/doc.txt (7)
    M cpu/efm32/efm32-features.mk (2)
    M cpu/efm32/include/periph_cpu.h (52)
    M cpu/efm32/periph/uart.c (60)
    M pkg/gecko_sdk/Makefile (2)
    M tests/cpu_efm32_features/Makefile (2)
    M tests/cpu_efm32_features/README.md (3)
    M tests/cpu_efm32_features/main.c (22)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190928/42a502af/attachment-0001.htm>

More information about the notifications mailing list