|
|
@ -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...");
|
|
|
|
|
|
|
|
|
|
|
|