Skip to content

Commit

Permalink
Merge pull request #6572 from gebart/pr/mulle-lis3dh-settings
Browse files Browse the repository at this point in the history
mulle: Use hardware CS for on-board LIS3DH
  • Loading branch information
haukepetersen authored Aug 24, 2017
2 parents 952682b + 8614dbf commit 7ea1e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/mulle/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void board_init(void);
*/
#define LIS3DH_INT1 GPIO_PIN(PORT_C, 18)
#define LIS3DH_INT2 GPIO_PIN(PORT_C, 17)
#define LIS3DH_CS GPIO_PIN(PORT_D, 0)
#define LIS3DH_CS SPI_HWCS(0)
#define LIS3DH_CLK SPI_CLK_5MHZ
#define LIS3DH_SPI SPI_DEV(0)
/** @} */
Expand Down
2 changes: 1 addition & 1 deletion drivers/lis3dh/lis3dh.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define ENABLE_DEBUG (0)
#include "debug.h"

#define SPI_MODE SPI_MODE_0
#define SPI_MODE SPI_MODE_3

static inline int lis3dh_write_bits(const lis3dh_t *dev, const lis3dh_reg_t reg,
const uint8_t mask, const uint8_t values);
Expand Down

0 comments on commit 7ea1e9d

Please sign in to comment.