Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
38da8b67
Commit
38da8b67
authored
Aug 12, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LSM303C: update old driver spi calls
parent
fee3d141
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
LSM303C_ACC_driver.c
sw/common/drivers/LSM303C/LSM303C_ACC_driver.c
+1
-2
LSM303C_MAG_driver.c
sw/common/drivers/LSM303C/LSM303C_MAG_driver.c
+1
-2
No files found.
sw/common/drivers/LSM303C/LSM303C_ACC_driver.c
View file @
38da8b67
...
...
@@ -45,8 +45,7 @@
*******************************************************************************/
u8_t
LSM303C_ACC_ReadReg
(
u8_t
Reg
,
u8_t
*
Data
)
{
*
Data
=
spi_read
(
DEV_ACC
,
Reg
);
return
MEMS_SUCCESS
;
return
spi_read
(
DEV_ACC
,
Reg
,
Data
);
}
/*******************************************************************************
...
...
sw/common/drivers/LSM303C/LSM303C_MAG_driver.c
View file @
38da8b67
...
...
@@ -45,8 +45,7 @@ u8_t LSM303C_MAG_flags=0;
*******************************************************************************/
u8_t
LSM303C_MAG_ReadReg
(
u8_t
Reg
,
u8_t
*
Data
)
{
*
Data
=
spi_read
(
DEV_MAG
,
Reg
);
return
MEMS_SUCCESS
;
return
spi_read
(
DEV_MAG
,
Reg
,
Data
);
}
/*******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment