vinodhembedded
Junior Member level 2
hi,
I know i can use delay_ms inside main() but guys help me to call the function delay().
ERROR i m getting is,
1) result is not defined function:dealy
2) Routine delay signature do not match routine call signature
thanks
I know i can use delay_ms inside main() but guys help me to call the function delay().
Code:
#include<built_in.h>
void delay();
void main()
{
TRISB=0;
PORTB=0;
while(1)
{
PORTB=~PORTB;
delay();
}}
delay()
{
Delay_ms(1000); //wait for 1 sec
}
ERROR i m getting is,
1) result is not defined function:dealy
2) Routine delay signature do not match routine call signature
thanks