Skip to content

Commit e96f286

Browse files
SV-ZanshinSV-Zanshin
SV-Zanshin
authored and
SV-Zanshin
committed
I2C BUFFER_LENGTH definition
This is not defined in the M4
1 parent 91b175d commit e96f286

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/MB85_FRAM.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ Version| Date | Developer | Comments
6363
*****************************************************************************************************************/
6464
#ifndef FRAM_I2C_MODES
6565
/** @brief Guard code to prevent multiple definitions of I2C modes */
66-
#define FRAM_I2C_MODES
66+
#define FRAM_I2C_MODES
67+
#ifndef BUFFER_LENGTH
68+
/** @brief Define I2C Buffer length if not specified in library */
69+
#define BUFFER_LENGTH 32
70+
#endif
6771
const uint32_t I2C_STANDARD_MODE = 100000; ///< Default normal I2C 100KHz speed
6872
const uint32_t I2C_FAST_MODE = 400000; ///< Fast mode
6973
const uint32_t I2C_FAST_MODE_PLUS_MODE = 1000000; ///< Really fast mode

0 commit comments

Comments
 (0)