mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
common: Change linker variable to uint32.
This commit is contained in:
parent
1fa077ffbe
commit
5d7f52bf44
@ -53,7 +53,7 @@ void HAL_MspInit(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t *addr;
|
uint32_t addr;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
} dma_memory_table_t;
|
} dma_memory_table_t;
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ void HAL_MspInit(void) {
|
|||||||
if (buf->size >= 32) {
|
if (buf->size >= 32) {
|
||||||
MPU_InitStruct.Number = region_number--;
|
MPU_InitStruct.Number = region_number--;
|
||||||
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
|
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
|
||||||
MPU_InitStruct.BaseAddress = (uint32_t) buf->addr;
|
MPU_InitStruct.BaseAddress = buf->addr;
|
||||||
MPU_InitStruct.Size = dma_utils_mpu_region_size(buf->size);
|
MPU_InitStruct.Size = dma_utils_mpu_region_size(buf->size);
|
||||||
HAL_MPU_ConfigRegion(&MPU_InitStruct);
|
HAL_MPU_ConfigRegion(&MPU_InitStruct);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user