Skip to content

Commit 0112801

Browse files
BST-Github-Adminkegov
authored andcommitted
Updated BMI270 sensor API and added the variants. Added more examples.
1 parent c535fbe commit 0112801

File tree

92 files changed

+21863
-18084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+21863
-18084
lines changed

LICENSE

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are met:
77

88
1. Redistributions of source code must retain the above copyright
9-
notice, this list of conditions and the following disclaimer.
9+
notice, this list of conditions and the following disclaimer.
1010

1111
2. Redistributions in binary form must reproduce the above copyright
12-
notice, this list of conditions and the following disclaimer in the
13-
documentation and/or other materials provided with the distribution.
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
1414

1515
3. Neither the name of the copyright holder nor the names of its
16-
contributors may be used to endorse or promote products derived from
17-
this software without specific prior written permission.
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
1818

1919
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2020
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT

OIS_README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- User has to include _bmi2_ois.h_ in the code to call OIS related APIs and a _variant header_ for initialization as
1616
well as BMI2 related API calls, as shown below:
1717
``` c
18-
#include "bmi261.h"
18+
#include "bmi270.h"
1919
#include "bmi2_ois.h"
2020
````
2121
### Driver files information<a name=file></a>
@@ -86,7 +86,7 @@ if (rslt != BMI2_OK) {
8686
}
8787

8888
/* Enable accelerometer and gyroscope through host interface */
89-
rslt = bmi2_sensor_enable(sens_list, 2, &dev);
89+
rslt = bmi270_sensor_enable(sens_list, 2, &dev);
9090
if (rslt != BMI2_OK) {
9191
printf("Error: %d\n", rslt);
9292
return;
@@ -167,6 +167,4 @@ if (rslt != BMI2_OK) {
167167
printf("Error: %d\n", rslt);
168168
return;
169169
}
170-
```
171-
172-
170+
```

0 commit comments

Comments
 (0)