mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
ports/stm32: Enable RIF settings for N6 ADC12.
Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
This commit is contained in:
parent
87b01fac51
commit
5df188f133
@ -294,11 +294,20 @@ void HAL_MspInit(void) {
|
||||
{ RIF_MASTER_INDEX_DCMIPP, RIF_RISC_PERIPH_INDEX_DCMIPP },
|
||||
{ RIF_MASTER_INDEX_DCMIPP, RIF_RISC_PERIPH_INDEX_CSI },
|
||||
};
|
||||
|
||||
|
||||
for (int i = 0; i < sizeof(rif_config_pairs) / sizeof(rif_config_pairs[0]); i++) {
|
||||
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