Skip to content
Commit 0b2fa631 authored by YouhuaX Zhu's avatar YouhuaX Zhu Committed by Anas Nashif
Browse files

Tests: create new test cases to verify sensor APIs.



1. Create a dummy sensor driver and implement the sensor interfaces:
    .sample_fetch = &dummy_sensor_sample_fetch,
    .channel_get = &dummy_sensor_channel_get,
    .attr_set = dummy_sensor_attr_set,
    .trigger_set = dummy_sensor_trigger_set.

2. Create below two test cases to verify the sensor subsys APIs:
    test_sensor_get_channels() for verifying sensor channel APIs,
    test_sensor_handle_triggers for verifying sensor trigger APIs.

Signed-off-by: default avatarYouhuaX Zhu <youhuax.zhu@intel.com>
parent 79481837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment