MOD5270 Putled struggle
Posted: Sat Apr 19, 2014 6:41 am
Hi,
I have started a new project on my MOD5270 after 2 years. Tried to start with a basic putleds project. Somehow Leds do not go on. Any guidance. See code below.
#include "predef.h"
#include <stdio.h>
#include <ctype.h>
#include <startnet.h>
#include <autoupdate.h>
#include <dhcpclient.h>
extern "C" {
void UserMain(void * pd);
}
const char * AppName="TestBasics";
void UserMain(void * pd) {
InitializeStack();
if (EthernetIP == 0) GetDHCPAddress();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
StartHTTP();
putleds(0x04);
iprintf("Led 4\n");
iprintf("Application started TestBasics \n");
while (1) {
OSTimeDly(20);
}
}
Appreciate some help.
I have started a new project on my MOD5270 after 2 years. Tried to start with a basic putleds project. Somehow Leds do not go on. Any guidance. See code below.
#include "predef.h"
#include <stdio.h>
#include <ctype.h>
#include <startnet.h>
#include <autoupdate.h>
#include <dhcpclient.h>
extern "C" {
void UserMain(void * pd);
}
const char * AppName="TestBasics";
void UserMain(void * pd) {
InitializeStack();
if (EthernetIP == 0) GetDHCPAddress();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
StartHTTP();
putleds(0x04);
iprintf("Led 4\n");
iprintf("Application started TestBasics \n");
while (1) {
OSTimeDly(20);
}
}
Appreciate some help.