Skip to content

Commit 1cca020

Browse files
committed
uVisor: Minor fix in the README
1 parent 2cbccba commit 1cca020

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

features/FEATURE_UVISOR/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,16 @@ Before compiling, we need to override the original `K64F` target to enable the u
138138
"target.features_add": ["UVISOR"],
139139
"target.extra_labels_add": ["UVISOR_SUPPORTED"]
140140
}
141-
}
141+
},
142+
"macros": [
143+
"FEATURE_UVISOR",
144+
"TARGET_UVISOR_SUPPORTED"
145+
]
142146
}
143147
```
144148

149+
The macros `FEATURE_UVISOR` and `TARGET_UVISOR_SUPPORTED` in the configuration file above are automatically defined for C and C++ files, but not for assembly files. Since the uVisor relies on those symbols in some assembly code, we need to define them manually.
150+
145151
---
146152

147153
**Checkpoint**

0 commit comments

Comments
 (0)