Skip to content

Commit

Permalink
TMC2209: Added a condition to enable TMC2209_Cache in the header
Browse files Browse the repository at this point in the history
  • Loading branch information
trinamic-ASU committed Jun 11, 2024
1 parent 29e2fa1 commit 9dbaf83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tmc/ic/TMC2209/TMC2209.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static inline void tmc2209_fieldWrite(uint16_t icID, RegisterField field, uint32
}

/**************************************************************** Cache Implementation *************************************************************************/
#if TMC2209_CACHE == 1
#ifdef TMC2209_ENABLE_TMC_CACHE

// By default, support one IC in the cache
Expand Down Expand Up @@ -144,6 +145,7 @@ extern uint8_t tmc2209_registerAccess[TMC2209_IC_CACHE_COUNT][TMC2209_REGISTER_C
extern int32_t tmc2209_shadowRegister[TMC2209_IC_CACHE_COUNT][TMC2209_REGISTER_COUNT];
extern bool tmc2209_cache(uint16_t icID, TMC2209CacheOp operation, uint8_t address, uint32_t *value);
#endif
#endif

/***************************************************************************************************************************************************/

Expand Down

0 comments on commit 9dbaf83

Please sign in to comment.