Skip to content

Commit 36edf89

Browse files
committed
Allow for external setting of HSM_HIERARCHY_DEPTH_MAX
1 parent 16d0ac8 commit 36edf89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/hsm/hsm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ struct am_hsm_state {
166166
AM_GET_MACRO_2_(__VA_ARGS__, AM_STATE2_, AM_STATE1_, _)(__VA_ARGS__)
167167

168168
/** HSM hierarchy maximum depth */
169+
#ifndef HSM_HIERARCHY_DEPTH_MAX
169170
#define HSM_HIERARCHY_DEPTH_MAX 16
171+
#endif
170172

171173
/** HSM hierarchy level representation bits number */
172174
#define AM_HSM_HIERARCHY_LEVEL_BITS 5

0 commit comments

Comments
 (0)