u32 test[5] = {0};
int main()
{
#define FLASH_ADR_BASE (0x00407030)
#define r32_FLASH_ADR ((volatile u32*)FLASH_ADR_BASE)
r32_FLASH_ADR[0] = 1;
r32_FLASH_ADR[1] = 2;
printf("%d\r\n", test[0]);
printf("%d\r\n", test[1]);
}
C(指定内存地址write data)
于 2024-07-31 16:50:23 首次发布