[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.

UART 5N1:
![uart-5n1](https://user-images.githubusercontent.com/815976/65815071-a5b1ca80-e1ea-11e9-874c-b24c5db6f3f4.png)

UART 7E2:
![uart-7e2](https://user-images.githubusercontent.com/815976/65815073-a64a6100-e1ea-11e9-82a0-6be38c25e997.png)

LEUART 8N1 (default)
![leuart-8n1](https://user-images.githubusercontent.com/815976/65815095-dd207700-e1ea-11e9-9d83-235db1f74d1b.png)

LEUART 8O2:
![leuart-8o2](https://user-images.githubusercontent.com/815976/65815096-dd207700-e1ea-11e9-8ea3-be1c793b7dd1.png)



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

![uart-7e2-questionmark](https://user-images.githubusercontent.com/815976/65815072-a64a6100-e1ea-11e9-8437-4741c42305ed.png)

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

  https://github.com/RIOT-OS/RIOT/pull/12323

-- 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 --

https://github.com/RIOT-OS/RIOT/pull/12323.patch
https://github.com/RIOT-OS/RIOT/pull/12323.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12323
-------------- 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