Hi,
I am trying to use the GP I/O pins on the J1 peripheral, but I can't get it to work. To test, I'd like to toggle a pin. I've included csl_gpio.h, csl_gpiohal.h
So far, I have this:
//define
GPIO_Handle hGpio;
//and this is in main()
hGpio = GPIO_open(GPIO_DEV0,GPIO_OPEN_RESET);
GPIO_pinEnable(hGpio,GPIO_PIN3);
GPIO_pinDirection(hGpio, GPIO_PIN3,GPIO_OUTPUT);
Does anybody have any examples on how to do this?
Thanks.