[riot-notifications] [RIOT-OS/RIOT] cpu/efm32: add coretemp driver (#15461)

Bas Stottelaar notifications at github.com
Wed Nov 18 01:47:02 CET 2020


### Contribution description
This PR adds a driver for the internal temperature sensor that is connected to an internal ADC channel. Because its an EFM32-only driver that relies on chip-specific defines, I put it in `cpu/efm32/drivers`. Contrary to the NRF temperature peripheral, this driver relies on the ADC peripheral. SAUL integration is provided.

More information can be found [here](https://www.silabs.com/community/mcu/32-bit/knowledge-base.entry.html/2016/12/28/efr32_adc_internalt-osgP).

### Testing procedure
Use `examples/default` or `tests/cpu_efm32_drivers`. The last one is a small test application for EFM32-specific drivers (currently only this PR).

![image](https://user-images.githubusercontent.com/815976/99468002-d9483a80-293f-11eb-977c-a86f0ba852c4.png)

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

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

-- Commit Summary --

  * cpu/efm32: add coretemp driver
  * drivers/saul: add auto init for efm32_coretemp
  * boards/efm32: enable efm32_coretemp driver
  * tests/cpu_efm32_drivers: add test application

-- File Changes --

    M boards/common/slwstk6000b/Makefile.dep (1)
    M boards/common/slwstk6000b/include/board.h (10)
    M boards/ikea-tradfri/Makefile.dep (1)
    M boards/ikea-tradfri/include/board.h (10)
    M boards/slstk3401a/Makefile.dep (1)
    M boards/slstk3401a/include/board.h (10)
    M boards/slstk3402a/Makefile.dep (1)
    M boards/slstk3402a/include/board.h (10)
    M boards/sltb001a/Makefile.dep (1)
    M boards/sltb001a/include/board.h (10)
    M boards/slwstk6220a/Makefile.dep (1)
    M boards/slwstk6220a/include/board.h (10)
    M boards/stk3200/Makefile.dep (1)
    M boards/stk3200/include/board.h (10)
    M boards/stk3600/Makefile.dep (1)
    M boards/stk3600/include/board.h (10)
    M boards/stk3700/Makefile.dep (1)
    M boards/stk3700/include/board.h (10)
    M cpu/efm32/Makefile (5)
    M cpu/efm32/Makefile.dep (4)
    M cpu/efm32/Makefile.include (3)
    A cpu/efm32/drivers/coretemp/Makefile (3)
    A cpu/efm32/drivers/coretemp/coretemp.c (70)
    A cpu/efm32/drivers/coretemp/coretemp_saul.c (44)
    A cpu/efm32/drivers/doc.txt (5)
    A cpu/efm32/include/drivers/coretemp.h (68)
    A drivers/saul/init_devs/auto_init_efm32_coretemp.c (58)
    M drivers/saul/init_devs/init.c (4)
    A tests/cpu_efm32_drivers/Makefile (17)
    A tests/cpu_efm32_drivers/README.md (11)
    A tests/cpu_efm32_drivers/main.c (51)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15461.patch
https://github.com/RIOT-OS/RIOT/pull/15461.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/15461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201117/ad098a3a/attachment-0001.htm>


More information about the notifications mailing list