Skip to main content
Version: 2.10.0

Luos engine configuration

Compatible MCUs

Luos engine can manage any type of microcontrollers as long as they have a HAL. If your microcontroller is not supported yet, please contact us:

Check the list of MCU families Luos engine cover:Hardware Abstraction Layers for MCU families,

Depending on what network you have, you may also configure the specific HAL of your network. By default, Luos engine uses the Robus network layer with Robus HAL.

Default Configurations

Luos engine is made to run on MCU and use the hardware peripherals of the MCU to complete communication between services. In order to configure this low-level part, Luos company provide, for many MCU families, a default configuration that can be followed to plug and play Luos engine with the chosen MCU family. The peripheral configuration is described in the luos_hal_config.h files, and can be redefined in the node_config.h file to fit with your design.

Luos engine's HAL configuration

To match pinout and fonctionality with your design, you can create or use the file node_config.h (see Luos examples). Based on the default configuration defined in luos_hal_config.h, you can define in the file node_config.h, in the section "LUOS HAL LIBRARY DEFINITION", pinout usart timer, etc.

This way, you are able to change the default hardware configuration so it needs to be called in the preprossessor variable section of your IDE to be taken into consideration for your project.

info

Each example provided by Luos has a node_config.h file and includes the file platformio.ini.

For example, you can redefine PTPA to fit with your design.

in luos_hal_config.h, this is defined as followed:

#ifndef PTPA_PIN
#define PTPA_PIN GPIO_PIN_8
#endif

in node_config.h this should be redefined as followed:

#define PTPA_PIN                    GPIO_PIN_11

There are many possible configurations that you can change, not all of them being necessary for your design:

FunctionDescriptionComments
PORT_CLOCK_ENABLEActivates clock for GPIODepends on port
RX_EN_PIN/TX_EN_PINChooses pinout to activate Rx/Tx commsNecessary for special comms
COM_TX_PIN/COM_RX_PINChooses pinout for Rx/Tx commsAdapts to the chosen serial bus
PTPX_PIN/PTPX_IRQ/PINOUT_IRQHANDLERChooses pinout, IRQ and callback for the PTP lineNecessary for topology detection