diff --git a/CMakeLists.txt b/CMakeLists.txt index 594777d..9fe7a98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,3 +4,5 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(hello_world) target_sources(app PRIVATE src/main.c) + + diff --git a/dts/bindings/vnd7050aj.yaml b/dts/bindings/vnd7050aj.yaml new file mode 100644 index 0000000..70aae35 --- /dev/null +++ b/dts/bindings/vnd7050aj.yaml @@ -0,0 +1,21 @@ +description: STMicroelectronics VND7050AJ High-Side Driver + +compatible: + - st,vnd7050aj + +properties: + label: + type: string + required: true + description: Human readable name for the device + + # Example property for a GPIO pin, adjust as needed + gpio-enable-pin: + type: phandle-array + required: true + description: GPIO pin for enabling the device + + # Add other properties relevant to the VND7050AJ, e.g., + # current-sense-gpios: + # type: phandle-array + # description: GPIO pin for current sense feedback diff --git a/modules/vnd7050aj/CMakeLists.txt b/modules/vnd7050aj/CMakeLists.txt new file mode 100644 index 0000000..02d6ac9 --- /dev/null +++ b/modules/vnd7050aj/CMakeLists.txt @@ -0,0 +1 @@ +zephyr_library() diff --git a/modules/vnd7050aj/Kconfig b/modules/vnd7050aj/Kconfig new file mode 100644 index 0000000..748ab16 --- /dev/null +++ b/modules/vnd7050aj/Kconfig @@ -0,0 +1,4 @@ +config VND7050AJ + bool "VND7050AJ library support" + help + Enable support for the VND7050AJ high-side driver. diff --git a/modules/vnd7050aj/include/vnd7050aj.h b/modules/vnd7050aj/include/vnd7050aj.h new file mode 100644 index 0000000..1e125bc --- /dev/null +++ b/modules/vnd7050aj/include/vnd7050aj.h @@ -0,0 +1,14 @@ +#ifndef VND7050AJ_H__ +#define VND7050AJ_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +void vnd7050aj_init(void); + +#ifdef __cplusplus +} +#endif + +#endif // VND7050AJ_H__ diff --git a/modules/vnd7050aj/src/vnd7050aj.c b/modules/vnd7050aj/src/vnd7050aj.c new file mode 100644 index 0000000..bcf7385 --- /dev/null +++ b/modules/vnd7050aj/src/vnd7050aj.c @@ -0,0 +1,10 @@ +#include +#include +#include + +LOG_MODULE_REGISTER(vnd7050aj, LOG_LEVEL_INF); + +void vnd7050aj_init(void) +{ + LOG_INF("VND7050AJ library initialized."); +} diff --git a/modules/vnd7050aj/zephyr/module.yml b/modules/vnd7050aj/zephyr/module.yml new file mode 100644 index 0000000..6533b66 --- /dev/null +++ b/modules/vnd7050aj/zephyr/module.yml @@ -0,0 +1,4 @@ +name: vnd7050aj +build: + cmake: + - .