bug fix on luos hal need to be call before portmng_init
@@ -68,18 +68,18 @@ void Robus_Init(memory_stats_t *memory_stats)
// Init reception
Recep_Init();
- // init detection structure
- PortMng_Init();
-
// Clear message allocation buffer table
MsgAlloc_Init(memory_stats);
+ // Init hal
+ LuosHAL_Init();
+
+ // init detection structure
+ PortMng_Init();
+
// Initialize the robus container status
ctx.rx.status.unmap = 0;
ctx.rx.status.identifier = 0xF;
-
- // Init hal
- LuosHAL_Init();
}
/******************************************************************************
* @brief Loop of the Robus communication protocole
