MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / list_temp

Function list_temp

bsp/efm32/dev_misc.c:177–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175#include <finsh.h>
176
177void list_temp(void)
178{
179 rt_int32_t temp = rt_hw_get_temp();
180
181 rt_kprintf("Temperature is %2d.%02d C\n", temp / 100, temp % 100);
182}
183FINSH_FUNCTION_EXPORT(list_temp, list current temperature value.)
184
185void list_vdd(void)

Callers

nothing calls this directly

Calls 2

rt_hw_get_tempFunction · 0.85
rt_kprintfFunction · 0.85

Tested by

no test coverage detected