enekas
Newbie level 6
- Joined
- Aug 8, 2011
- Messages
- 14
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,368
Hello
I wanna use RIT by CMSIS for LPC1768 ( Compiler : Keil )
my code:
Compiler error:
I solve some errors by changing some headers , but I can't settle this one
any suggestion?
Tanx.
I wanna use RIT by CMSIS for LPC1768 ( Compiler : Keil )
my code:
Code:
#include "LPC17xx.H"
#include "system_LPC17xx.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_rit.h"
unsigned int i=0;
void RIT_IRQHandler(void)
{ i++;
if(i%2==0)
LPC_GPIO2->FIOSET=0X01;
else
LPC_GPIO2->FIOCLR=0X01;
RIT_GetIntStatus(LPC_RIT);
}
int main(void)
{
// NVIC_SetVTOR(0X2000);
LPC_GPIO2->FIODIR=0X03;
RIT_Init(LPC_RIT);
RIT_TimerConfig(LPC_RIT,100);
RIT_Cmd(LPC_RIT,ENABLE);
NVIC_EnableIRQ(RIT_IRQn);
while(1);
}
Compiler error:
Build target 'Target 1'
assembling startup_LPC17xx.s...
compiling main.c...
compiling core_cm3.c...
compiling system_LPC17xx.c...
compiling lpc17xx_clkpwr.c...
compiling lpc17xx_rit.c...
linking...
rit.axf: Error: L6218E: Undefined symbol check_failed (referred from lpc17xx_rit.o).
Target not created
I solve some errors by changing some headers , but I can't settle this one
any suggestion?
Tanx.