Convert vnd7050aj to Zephyr module and add device tree binding
This commit is contained in:
1
modules/vnd7050aj/CMakeLists.txt
Normal file
1
modules/vnd7050aj/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
zephyr_library()
|
||||
4
modules/vnd7050aj/Kconfig
Normal file
4
modules/vnd7050aj/Kconfig
Normal file
@@ -0,0 +1,4 @@
|
||||
config VND7050AJ
|
||||
bool "VND7050AJ library support"
|
||||
help
|
||||
Enable support for the VND7050AJ high-side driver.
|
||||
14
modules/vnd7050aj/include/vnd7050aj.h
Normal file
14
modules/vnd7050aj/include/vnd7050aj.h
Normal 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__
|
||||
10
modules/vnd7050aj/src/vnd7050aj.c
Normal file
10
modules/vnd7050aj/src/vnd7050aj.c
Normal 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.");
|
||||
}
|
||||
4
modules/vnd7050aj/zephyr/module.yml
Normal file
4
modules/vnd7050aj/zephyr/module.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
name: vnd7050aj
|
||||
build:
|
||||
cmake:
|
||||
- .
|
||||
Reference in New Issue
Block a user