Hi,
did anyone get the AN3905 (Writing your first MQX Application) runing on the TWR-K60N512?
I tried it but i am strugeling with the defines for the LEDs in ioDriver.c
#define LED_1 (GPIO_PORT_TE | GPIO_PIN3)
i thought i can change this statement to
#define LED_1 (GPIO_PIN11)..... GPIO_PIN11 is the Pin on wich LED1 is connected.
but it doesn't work. Is there anything else i have to llok for?
Thanks
manu,
You can try with the following:
#define LED1 (GPIO_PORT_A | GPIO_PIN11)
#define LED2 (GPIO_PORT_A | GPIO_PIN28)
#define LED3 (GPIO_PORT_A | GPIO_PIN29)
#define LED4 (GPIO_PORT_A | GPIO_PIN10)
Note that you need to specify the port, in this case, port A and the pin.
Also MQX already has these definitions. If you're interested in using them, these are:
BSP_LED1
BSP_LED2
BSP_LED3
BSP_LED4
You can find them on the "twrk60n512.h" file at:
{MQX path}\lib\twrk60n512.cw10\bsp
Note that the specific BSP folder may change if you're using a different toolchain (IAR or Keil)
hey carlos,
thanks for your answer. Do you know if there are any documents where i can find the information you provided to me? Or do i have to look in the header files to find out what functions are provided?
I changend the source code as you told me. But still no LED is blinking. I opened a serial port and i can see that the different tasks are created and executed once. As i understand the source code, the different tasks should be executd more than once. Can anybody help me.
Thanks in advance :-)
Manu