 
 void loop()
 {
+#ifdef STM32_F429ZI_BOARD
+  IWatchdog.reload();
+#else
   wdt_reset();
+#endif
 
   long now = millis() / 1000;
 

}
#endif

// ######### SETUP #######################

void setup()
{
  // Start watchdog
  wdt_enable (WDTO_2S);

  nibegw.setCallback(nibeCallbackMsgReceived, nibeCallbackTokenReceived);
  nibegw.setAckModbus40Address(ACK_MODBUS40);


#ifdef TRANSPORT_ETH_ENC28J60
#include <UIPEthernet.h>
#elif defined STM32_F429ZI_BOARD
#include <LwIP.h>
#include <STM32Ethernet.h>
#include <EthernetUdp.h> 
#else
#include <SPI.h>
#include <Ethernet.h>
