Convert vnd7050aj to Zephyr module and add device tree binding

This commit is contained in:
2025-07-09 08:37:40 +02:00
parent 5579a3993a
commit a4a0c7bb05
7 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1 @@
zephyr_library()

View File

@@ -0,0 +1,4 @@
config VND7050AJ
bool "VND7050AJ library support"
help
Enable support for the VND7050AJ high-side driver.

View File

@@ -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__

View File

@@ -0,0 +1,10 @@
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <vnd7050aj.h>
LOG_MODULE_REGISTER(vnd7050aj, LOG_LEVEL_INF);
void vnd7050aj_init(void)
{
LOG_INF("VND7050AJ library initialized.");
}

View File

@@ -0,0 +1,4 @@
name: vnd7050aj
build:
cmake:
- .