diff options
| author | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2026-01-02 03:15:34 +0300 |
|---|---|---|
| committer | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2026-01-02 03:15:34 +0300 |
| commit | ad2dfef092949ed18109419994d931033aa57068 (patch) | |
| tree | cf8445b647d9b686bad613eff966da1a433a5bdf /os/drivers/include/device.h | |
| parent | 78ee7d5717807e6ac779293d0d3c78341de6130a (diff) | |
Add structured device drivers
* Add lowlevel generic device struct
* Add clock control driver for stm32f769
Generic device struct and common device driver init
scheme will help in implementation implementation
of device tree or something like that for generalized hardware configuration.
Diffstat (limited to 'os/drivers/include/device.h')
| -rw-r--r-- | os/drivers/include/device.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/drivers/include/device.h b/os/drivers/include/device.h new file mode 100644 index 00000000..ee3a675d --- /dev/null +++ b/os/drivers/include/device.h @@ -0,0 +1,10 @@ +#ifndef __DEVICE_H__ +#define __DEVICE_H__ + +struct device { + void *devptr; + volatile void *data; + void *config; +}; + +#endif/*__DEVICE_H__*/ |
