Skip to content

Commit

Permalink
Give Bridge implementation of stepper code a different major version …
Browse files Browse the repository at this point in the history
…number.
  • Loading branch information
modmaker committed Aug 3, 2013
1 parent 3d9768f commit 2d129c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions algo2cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
#define UCODE_MAGIC 0xba512191

// PRUSS code and C-code must have the same FW_VERSION to be compatible
#ifdef BONE_BRIDGE
#define FW_VERSION 7
#else
#define FW_VERSION 6
#endif

#define NR_CMD_FIFO_ENTRIES 64

Expand Down
2 changes: 1 addition & 1 deletion pruss_stepper.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ int pruss_stepper_init( void)
} else {
if (signature.ucode_magic == UCODE_MAGIC) {
// This is stepper code, must be an incompatible version
fprintf( stderr, "ERROR: the STEPPER code in file '%s' (version %d.%d) is not compatible with our version (%d.x)!\n",
fprintf( stderr, "ERROR: the STEPPER code in file '%s' (version %d.%d) has not the required version (%d.x)!\n",
code_fname, signature.fw_version, signature.fw_revision, FW_VERSION);
} else {
// This is not stepper code.
Expand Down

0 comments on commit 2d129c6

Please sign in to comment.