Skip to content

Commit

Permalink
Merge pull request #4 from Fl05chmidt/develop
Browse files Browse the repository at this point in the history
moved standard pin assignment to headerfile
  • Loading branch information
cyberschmiddi authored Mar 22, 2019
2 parents bd85c5b + 6d4cbc3 commit 11cd86e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TLE94112
version=1.3.0
version=1.4.0
author=Infineon Technologies
maintainer=Infineon Technologies <www.infineon.com>
sentence=This library provides an interface for Infineons DC Motor Control Shield with TLE94112EL
Expand Down
5 changes: 1 addition & 4 deletions src/TLE94112.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
//SPI address commands
#define TLE94112_CMD_WRITE 0x80;
#define TLE94112_CMD_CLEAR 0x80;
//standard pin assignment
#define TLE94112_PIN_CS1 10
#define TLE94112_PIN_CS2 9
#define TLE94112_PIN_EN 8

#define TLE94112_CS_RISETIME 2

#define TLE94112_STATUS_INV_MASK (Tle94112::TLE_POWER_ON_RESET)
Expand Down
12 changes: 12 additions & 0 deletions src/TLE94112.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
*/
#define TLE94112_NUM_STATUS_REGS 7

/*! \brief Standard pin for chip select on first shield
*/
#define TLE94112_PIN_CS1 10

/*! \brief Standard pin for chip select on second shield
*/
#define TLE94112_PIN_CS2 9

/*! \brief Standard enable pin
*/
#define TLE94112_PIN_EN 8


//! \brief Class that represents a TLE94112
class Tle94112
Expand Down

0 comments on commit 11cd86e

Please sign in to comment.