|
|||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計(jì) | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
[求助]請教各位前輩, Iar EW3.1 不能識別關(guān)鍵字inter... |
| 作者:lzgmcu1999 欄目:單片機(jī) |
void interrupt[BASICTIMER_VECTOR] IntBasicTimer(void) { P1OUT│=BIT0; P1OUT&=~BIT0; } 編譯出錯信息如下: Rebuilding configuration: AmmeterIar - Debug 0 file(s) deleted. LzgMain.c icc430.exe -I C:\Program Files\IAR Systems\Embedded Workbench 4.0\430\INC\ -I C:\Program Files\IAR Systems\Embedded Workbench 4.0\430\INC\CLIB\ -o D:\LzgPg\Ammeter430\Debug\Obj\ -z3 --no_cse --no_unroll --no_inLINE --no_code_motion --no_tbaa --debug -e --double=32 D:\LzgPg\Ammeter430\LzgMain.c IAR MSP430 C/C++ Compiler V3.10A/W32 COPYRIGHT 1996-2004 IAR Systems. All rights reserved. Error[Pe094]: the size of an array must be greater than zero Error[Pe065]: expected a ";" Warning[Pe012]: parsing restarts here after previous syntax error Error[Pe077]: this declaration has no storage class or type specifier Error[Pe147]: declaration is incompatible with "unsigned CHAR volatile __data16 P1OUT" (declared at LINE 216 of "C:\Program Files\IAR Systems\Embedded Workbench 4.0\430\INC\MSP430XE42X.H") Error[Be012]: location address not allowed (object must have static storage duration and be const or __no_init) Error[Pe065]: expected a ";" Error[Pe169]: expected a declaration Warning[Pe012]: parsing restarts here after previous syntax error Warning[Pe001]: last LINE of file ends without a newLINE Error[Pe169]: expected a declaration Errors: 8 Warnings: 3 Total NUMBER of errors: 8 Total NUMBER of warnings: 3 |
| 2樓: | >>參與討論 |
| 作者: film 于 2004/11/22 17:42:00 發(fā)布:
改成這種格式就好了。 #pragma vector=WDT_VECTOR __interrupt void watchdog_timer(void) { } |
|
|
|
| 免費(fèi)注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |