mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
Merge 5df188f133
into 7f439f56de
This commit is contained in:
commit
60ee0d5803
@ -299,6 +299,15 @@ void HAL_MspInit(void) {
|
||||
HAL_RIF_RIMC_ConfigMasterAttributes(rif_config_pairs[i][0], &RIMC_master);
|
||||
HAL_RIF_RISC_SetSlaveSecureAttributes(rif_config_pairs[i][1], RIF_ATTRIBUTE_SEC | RIF_ATTRIBUTE_PRIV);
|
||||
}
|
||||
|
||||
// Array of peripheral indexes [periph_index]
|
||||
static const uint32_t rif_periph_indexes[] = {
|
||||
RIF_RISC_PERIPH_INDEX_ADC12
|
||||
};
|
||||
|
||||
for (int i = 0; i < sizeof(rif_periph_indexes) / sizeof(rif_periph_indexes[0]); i++) {
|
||||
HAL_RIF_RISC_SetSlaveSecureAttributes(rif_periph_indexes[i], RIF_ATTRIBUTE_SEC | RIF_ATTRIBUTE_PRIV);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user