首选原始情况可以编译成功:
接着打开宏定义:
最后编译出错:
22:40:57 **** 构建 of configuration obj for project Peripheral ****
make -j16 all
Memory region Used Size Region Size %age Used
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./HAL/MCU.o: in function `HAL_ProcessEvent':
FLASH: 151032 B 448 KB 32.92%
D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:209: undefined reference to `HalLedUpdate'
RAM: 17540 B 32 KB 53.53%
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:212: undefined reference to `HAL_KeyPoll'
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./HAL/MCU.o: in function `HAL_Init':
D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:225: undefined reference to `HAL_LedInit'
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:226: undefined reference to `HAL_KeyInit'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:57: Peripheral.elf] Error 1
22:40:58 Build Failed. 7 errors, 0 warnings. (took 1s.55ms)