aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/l3gd20.c
diff options
context:
space:
mode:
authorroccomarco <roccomarco@35acf78f-673a-0410-8e92-d51de3d6d3f4>2017-07-02 09:29:51 +0000
committerroccomarco <roccomarco@35acf78f-673a-0410-8e92-d51de3d6d3f4>2017-07-02 09:29:51 +0000
commit291f788fbcbc2749a5240a38f74cd4b906c6c4fd (patch)
tree028ef55fa152e210b83951ff20a60f570f5fdb22 /os/ex/ST/l3gd20.c
parentc6d3697eda985c4ecbd0021ae0c20e5194436c9f (diff)
downloadChibiOS-291f788fbcbc2749a5240a38f74cd4b906c6c4fd.tar.gz
ChibiOS-291f788fbcbc2749a5240a38f74cd4b906c6c4fd.tar.bz2
ChibiOS-291f788fbcbc2749a5240a38f74cd4b906c6c4fd.zip
Improved ChibiOS\EX documentation (almost complete)
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10285 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex/ST/l3gd20.c')
-rw-r--r--os/ex/ST/l3gd20.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/ex/ST/l3gd20.c b/os/ex/ST/l3gd20.c
index f9c645c4e..066e11962 100644
--- a/os/ex/ST/l3gd20.c
+++ b/os/ex/ST/l3gd20.c
@@ -57,12 +57,12 @@
* @param[in] b pointer to an output buffer.
*/
static void l3gd20SPIReadRegister(SPIDriver *spip, uint8_t reg, size_t n,
- uint8_t* rxbuf) {
+ uint8_t* b) {
uint8_t cmd;
(n == 1) ? (cmd = reg | L3GD20_RW) : (cmd = reg | L3GD20_RW | L3GD20_MS);
spiSelect(spip);
spiSend(spip, 1, &cmd);
- spiReceive(spip, n, rxbuf);
+ spiReceive(spip, n, b);
spiUnselect(spip);
}
@@ -73,7 +73,7 @@ static void l3gd20SPIReadRegister(SPIDriver *spip, uint8_t reg, size_t n,
* @param[in] spip pointer to the SPI interface
* @param[in] reg starting register address
* @param[in] n number of adjacent registers to write
- * @param[in] value pointer to a buffer of values.
+ * @param[in] b pointer to a buffer of values.
*/
static void l3gd20SPIWriteRegister(SPIDriver *spip, uint8_t reg, size_t n,
uint8_t* b) {