Skip to content

Commit

Permalink
Protect target (name and id) defines
Browse files Browse the repository at this point in the history
  • Loading branch information
tjoly-ledger committed Jun 25, 2024
1 parent 2e56806 commit 4954dd1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/flex/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#ifndef ST33K1M5
#define ST33K1M5
#endif // ST33K1M5

#ifndef TARGET_ID
#define TARGET_ID 0x33300004
#endif // TARGET_ID


#ifndef TARGET_FLEX
#define TARGET_FLEX
#endif // TARGET_FLEX
6 changes: 6 additions & 0 deletions target/nanos/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#ifndef ST31
#define ST31
#endif // ST31

#ifndef TARGET_ID
#define TARGET_ID 0x31100004
#endif // TARGET_ID

#ifndef TARGET_NANOS
#define TARGET_NANOS
#endif // TARGET_NANOS
6 changes: 6 additions & 0 deletions target/nanos2/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#ifndef ST33K1M5
#define ST33K1M5
#endif // ST33K1M5

#ifndef TARGET_ID
#define TARGET_ID 0x33100004
#endif // TARGET_ID

#ifndef TARGET_NANOS2
#define TARGET_NANOS2
#endif // TARGET_NANOS2
6 changes: 6 additions & 0 deletions target/nanox/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#ifndef ST33
#define ST33
#endif // ST33

#ifndef TARGET_ID
#define TARGET_ID 0x33000004
#endif // TARGET_ID

#ifndef TARGET_NANOX
#define TARGET_NANOX
#endif // TARGET_NANOX
4 changes: 4 additions & 0 deletions target/stax/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef ST33K1M5
#define ST33K1M5
#endif // ST33K1M5

#ifndef TARGET_ID
#define TARGET_ID 0x33200004
#endif // TARGET_ID

#ifndef TARGET_STAX
#define TARGET_STAX
#endif // TARGET_STAX

0 comments on commit 4954dd1

Please sign in to comment.