#define DOWNLOAD_ADDRESS 0x30000000
void (*run)(void)=(void (*)(void))(DOWNLOAD_ADDRESS);
run();
是不这样理解 执行run();后PC==0x30000000
也等于LJMP 0x30000000
void (*run)(void)=(void (*)(void))(DOWNLOAD_ADDRESS);
拆分
void = void
(*run)(void) = (*)(void) 相当与类型转换
run = DOWNLOAD_ADDRESS =0x30000000
平时这类 指针用 的少,!!!!!!!!!!!! |