Common libraries¶
The common libraries
-
provide a light hardware abstraction layer to manage the GPIO, UART, SPI and I²C peripherals.
-
share utilities across the different libraries;
-
expose the parameters to set diverse options;
-
define the structure and list the pre-configured main controller boards;
-
list the supported screen constants.
Configure¶
Main code
// SDK and configuration
#include "PDLS_Common.h"
The pre-processor statement calls the common libraries. The PDLS_Common umbrella header file includes the SDK with the peripherals library, the utilities, the constants and the configuration.
Use¶
Main code
hV_HAL_begin();
hV_HAL_begin()- proceeds with the general initialisation. It configures and starts the peripherals GPIO, UART, SPI, and I²C if needed.
Terminate¶
Main code
hV_HAL_exit();
hV_HAL_exit()- displays the
codevalue, and enters an endless loop for micro-controllers.