Part Number: CC2530
Hello I am new at cc2530 and embedded developing. I wrote a simple code on IAR Workbench that turns on and off a LED. But it doesn't work and I can't find where the ploblem is?
int main( void )
{
halMcuInit();
//GPIO Settings
out.port=0;
out.pin=1;
out.dir=HAL_DIGIO_OUTPUT;
out.initval=0;
out.pin_bm=0x00;
uint16 x=0;
halDigioConfig(&out);
halDigioSet(&out);
halMcuWaitMs(500);
while( x<100){
halDigioClear(&out);
halMcuWaitMs(500);
halDigioSet(&out);
halMcuWaitMs(500);
x++;
}
}