Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/cral/commit/215a3deaf2c4f4eb8db5be5c5bc00280810621af?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Move module and driver initialisation code into separate function.

git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@65 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
master
follower 18 years ago
parent 137136833f
commit 215a3deaf2

@ -88,12 +88,13 @@ void configureSPI() {
} }
void setup () { void initModule() {
Serial.begin(9600); /*
Serial.println("Setup enter...");
configureSPI();
Initialise the WIZ810MJ module and driver.
*/
// I thought this wasn't needed but seems like it is. // I thought this wasn't needed but seems like it is.
Serial.println("Triggering reset..."); Serial.println("Triggering reset...");
pinMode(PIN_RESET, OUTPUT); pinMode(PIN_RESET, OUTPUT);
@ -114,7 +115,16 @@ void setup () {
// driver sysinit // driver sysinit
Serial.println("Call sysinit..."); Serial.println("Call sysinit...");
sysinit(0x55, 0x55); sysinit(0x55, 0x55);
}
void setup () {
Serial.begin(9600);
Serial.println("Setup enter...");
configureSPI();
initModule();
Serial.println("Test W5100 configuration..."); Serial.println("Test W5100 configuration...");

Loading…
Cancel
Save