[
https://issues.apache.org/jira/browse/MYNEWT-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16238196#comment-16238196
]
ASF subversion and git services commented on MYNEWT-861:
--------------------------------------------------------
Commit 2ee7973145605ff4f41b165571e27b623e382212 in mynewt-core's branch
refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=mynewt-core.git;h=2ee7973 ]
MYNEWT-861 Fix bugs with bmp280 driver and cleanup
- fix per type polling
- fix os_time macros by using typedef for signed os_time_t
- fix stack overflow with bmp280 driver
- clean and reorganize some parts of the code
> Sensor per type polling
> -----------------------
>
> Key: MYNEWT-861
> URL: https://issues.apache.org/jira/browse/MYNEWT-861
> Project: Mynewt
> Issue Type: New Feature
> Security Level: Public(Viewable by anyone)
> Components: Drivers, Sensor Framework
> Reporter: Vipul Rahane
> Assignee: Vipul Rahane
> Priority: Normal
> Fix For: v1_3_0_rel
>
>
> Support per type polling
> Fix os_time macros by using typedef for signed os_time_t
> Fix stack overflow with bmp280 driver
> Clean and reorganize some parts of the code
> Fix poll rate for multiple sensors
> Adding a poller ram test log which is conditional based on
> SENSOR_POLL_TEST_LOG
> Configuration example:
> {noformat}
> struct sensor_type_traits stt_ms_temp;
> struct sensor_type_traits stt_ms_press;
> struct sensor_type_traits stt_bmp_temp;
> struct sensor_type_traits stt_bmp_press;
>
> /* Poll rates for MS5837 */
>
> sensor_set_poll_rate_ms("ms5837_0", 60);
>
> stt_ms_temp = (struct sensor_type_traits) {
> .stt_sensor_type = SENSOR_TYPE_AMBIENT_TEMPERATURE,
> .stt_poll_n = 2
> };
>
> sensor_set_n_poll_rate("ms5837_0", &stt_ms_temp);
>
> stt_ms_press = (struct sensor_type_traits) {
> .stt_sensor_type = SENSOR_TYPE_PRESSURE,
> .stt_poll_n = 4
> };
>
> sensor_set_n_poll_rate("ms5837_0", &stt_ms_press);
>
> /* Poll rates for BMP280 */
>
> sensor_set_poll_rate_ms("bmp280_0", 120);
>
> stt_bmp_temp = (struct sensor_type_traits) {
> .stt_sensor_type = SENSOR_TYPE_AMBIENT_TEMPERATURE,
> .stt_poll_n = 2
> };
> sensor_set_n_poll_rate("bmp280_0", &stt_bmp_temp);
>
> stt_bmp_press = (struct sensor_type_traits) {
> .stt_sensor_type = SENSOR_TYPE_PRESSURE,
> .stt_poll_n = 4
> };
>
> sensor_set_n_poll_rate("bmp280_0", &stt_bmp_press);
>
> /* Poll rates for Accelerometer */
>
> sensor_set_poll_rate_ms("bma253_0", 180);
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)