Common library¶
The common library
-
manages the peripherals like GPIO, UART, SPI and I²C;
-
shares utilities across the different libraries;
-
exposes the parameters to set diverse options;
-
defines the structure and lists the pre-configured main controller boards;
-
lists the supported screen constants.
Configure¶
``` cpp // SDK and configuration
include “PDLS_Common.h”¶
```
The pre-processor statement calls the umbrella PDLS_Common
header file, which includes the SDK with the peripherals library, and the configuration with the common library.
Use¶
cpp
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¶
cpp
hV_HAL_exit();
hV_HAL_exit()
- displays the
code
value, and enters an endless loop for micro-controllers.