This project is a driver, it provide an abstraction layer alongside with the HAL provided by STMicroelectronics for optical communication using the PAM4 modulation scheme.
Copyright (c) 2025 Luc_Creeper74 - STM32_OPAL_Driver is under the Apache 2.0 License.
| MCU Model Familly | Status |
|---|---|
| STM32L0xx | Supported ✅ |
| STM32F3xx | Supported ✅ |
Important
Template projects already contain the OPAL_Driver as a git submodule and can be found here :
https://github.com/Lucreeper74/LIFI-Project-Emitter for the Emitter system.
https://github.com/Lucreeper74/LIFI-Project-Receiver for the Receiver system.
Make sure to install the latest version of git:
See here for Git installation : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
In the Driver directory of a STM32 project, get the latest version of this repository using git:
$ git clone https://github.com/Lucreeper74/STM32_OPAL_DriverOr download manual project files using the Green "Code" button above and unzip the file into the Driver directory.
Important
You need to include all the driver source and header files into CMakeList.txt if you using Cmake.
Make sure to define the definition in the CMakeList.txt in the target_compile_definitions in your project.