Hi. I'm starting with efm 32 Tiny gecko.
I have the demo kit and i wrote simple hello world program to turn on user led, but it wont turn on and when i look into the ports they are all empty.
do you guys know what is wrong with my code?
#include "em_device.h"
#include "em_chip.h"
#include "em_gpio.h"
//define ports
enum ports {PORT_A,PORT_B,PORT_C,PORT_D,PORT_E,PORT_F,PORT_G};
int main(void)
{
/* Chip errata */
CHIP_Init();
//turn led on
GPIO->P[PORT_D].MODEL = (GPIO->P[2].MODEL & ~_GPIO_P_MODEL_MODE7_MASK) | GPIO_P_MODEL_MODE7_PUSHPULL;
GPIO->P[PORT_D].DOUT = (1 << 7);
/* Infinite loop */
while(1)
{
}
}