This repository is managed mainly on Linux. This means that changes should
be submitted using Linux LF format. Usually running a similar command to
find * type f -print0 | xargs -0 dos2unix -k should be enough.
Make sure directory structure is respected.
Directory names should be converted to lowercase.
The recommendation is add all fixups in the hal_bouffalolab instead
on the ZephyrRTOS project.
The above are general guidelines and exceptions could happen. In this case, the
exception should be addressed at review phase.
The standard API
The BouffaloLab standard API define all information to access the SoC’s
peripherals. This library does not have namespaces and prefixes which easily
results in name collision with ZephyrRTOS core and libraries. To avoid that
situation, macros, enum values and function names should follow two general
rules:
Public API functions must be prefixed with bflb_.
Public defines and enum values must be uppercase and prefixed with BFLB_.
Introduction
The hal_bouffalolab is a set of register definitions for Bouffalo Lab SoC’s. The HAL is organized following the directory structure detailed below.
Directory Structure
The directory is composed by eight parts:
zephyr).How to submit code
Any contribution should follow the
How to submit codeusing as premisses the Zephyr Contribution Guidelines. For more information about External Modules see Modules Section in special Submitting Changes to ModulesRepository specific guidelines
find * type f -print0 | xargs -0 dos2unix -kshould be enough.hal_bouffalolabinstead on the ZephyrRTOS project.The above are general guidelines and exceptions could happen. In this case, the exception should be addressed at review phase.
The standard API
The BouffaloLab standard API define all information to access the SoC’s peripherals. This library does not have namespaces and prefixes which easily results in name collision with ZephyrRTOS core and libraries. To avoid that situation, macros, enum values and function names should follow two general rules:
bflb_.BFLB_.