我使用16F1527单片机,具有两个配置字,我写成
__CONFIG(1,0x12f2);
__CONFIG(2,0x12f2);
为什么报错啊?
Warning [171] E:\NS-001\NS_001_relate_program\Flash\flash.c; 4.18 wrong number of preprocessor macro arguments for "__CONFIG" (2 instead of 1)
Warning [171] E:\NS-001\NS_001_relate_program\Flash\flash.c; 5.18 wrong number of preprocessor macro arguments for "__CONFIG" (2 instead of 1)
Error [0] E:\NS-001\NS_001_relate_program\Flash\flash.c; 4.29 Cannot use literal values (1) with __CONFIG(), use __PROG_CONFIG() instead
Error [0] E:\NS-001\NS_001_relate_program\Flash\flash.c; 5.29 Cannot use literal values (2) with __CONFIG(), use __PROG_CONFIG() instead
(908) exit status = 1 |