Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging/no os device #2276

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ce81ae5
include: Add no_os_device.h
dbogdan Jul 8, 2024
1ea1233
drivers: accel: Make use of no_os_device.h
dbogdan Jul 8, 2024
020a31b
drivers: temperature: Make use of no_os_device.h
dbogdan Jul 9, 2024
0102c17
drivers: rtc: Make use of no_os_device.h
dbogdan Jul 9, 2024
e598b9f
drivers: adc: Make use of no_os_device.h
dbogdan Aug 11, 2024
176afea
drivers: adc-dac: Make use of no_os_device.h
dbogdan Aug 12, 2024
a8096da
drivers: afe: Make use of no_os_device.h
dbogdan Aug 12, 2024
f3a2fc7
drivers: amplifiers: Make use of no_os_device.h
dbogdan Aug 12, 2024
36cbac9
drivers: cdc: Make use of no_os_device.h
dbogdan Aug 12, 2024
a3d8610
drivers: display: Make use of no_os_device.h
dbogdan Aug 12, 2024
457a1cf
drivers: dac: Make use of no_os_device.h
dbogdan Aug 12, 2024
0f25224
drivers: digital-io: Make use of no_os_device.h
dbogdan Aug 12, 2024
a00101a
drivers: ecg: Make use of no_os_device.h
dbogdan Aug 12, 2024
0075f0b
drivers: eeprom: Make use of no_os_device.h
dbogdan Aug 12, 2024
c0b2b2a
drivers: filter: Make use of no_os_device.h
dbogdan Aug 12, 2024
1dbbf6d
drivers: frequency: Make use of no_os_device.h
dbogdan Aug 12, 2024
87ad8ad
drivers: gyro: Make use of no_os_device.h
dbogdan Aug 12, 2024
d98804b
drivers: impedance-analyzer: Make use of no_os_device.h
dbogdan Aug 12, 2024
be717c3
drivers: imu: Make use of no_os_device.h
dbogdan Aug 12, 2024
9414785
drivers: io-expander: Make use of no_os_device.h
dbogdan Aug 12, 2024
fccba61
drivers: io-link: Make use of no_os_device.h
dbogdan Aug 12, 2024
ad94a5a
drivers: meter: Make use of no_os_device.h
dbogdan Aug 12, 2024
c1d0dff
drivers: mux: Make use of no_os_device.h
dbogdan Aug 12, 2024
9d1d348
drivers: net: Make use of no_os_device.h
dbogdan Aug 12, 2024
38966cf
drivers: photo-electronic: Make use of no_os_device.h
dbogdan Aug 12, 2024
dccf2d2
drivers: potentiometer: Make use of no_os_device.h
dbogdan Aug 12, 2024
f2f33d8
drivers: power: Make use of no_os_device.h
dbogdan Aug 13, 2024
24af132
drivers: resolver: Make use of no_os_device.h
dbogdan Aug 13, 2024
b7325e9
drivers: rf-transceiver: Make use of no_os_device.h
dbogdan Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions drivers/accel/adxl313/adxl313.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@
#include "no_os_util.h"
#include "no_os_delay.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl313_device_table[] = {
{.compatible = "adi,adxl312"},
{.compatible = "adi,adxl313"},
{.compatible = "adi,adxl314"},
{}
};

/******************************************************************************/
/************************ Functions Declarations ******************************/
Expand Down
10 changes: 10 additions & 0 deletions drivers/accel/adxl345/adxl345.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
#include <stdlib.h>
#include "adxl345.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl345_device_table[] = {
{.compatible = "adi,adxl345"},
{.compatible = "adi,adxl346"},
{}
};

/******************************************************************************/
/************************ Variable Declarations ******************************/
Expand Down
11 changes: 11 additions & 0 deletions drivers/accel/adxl355/adxl355.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@
#include "adxl355.h"
#include "no_os_delay.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl355_device_table[] = {
{.compatible = "adi,adxl355"},
{.compatible = "adi,adxl357"},
{.compatible = "adi,adxl359"},
{}
};

/******************************************************************************/
/************************ Variable Declarations ******************************/
Expand Down
11 changes: 11 additions & 0 deletions drivers/accel/adxl362/adxl362.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
#include <stdlib.h>
#include "adxl362.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl362_device_table[] = {
{.compatible = "adi,adxl355"},
{.compatible = "adi,adxl357"},
{.compatible = "adi,adxl359"},
{}
};

/******************************************************************************/
/************************ Functions Definitions *******************************/
Expand Down
9 changes: 9 additions & 0 deletions drivers/accel/adxl367/adxl367.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "no_os_print_log.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl367_device_table[] = {
{.compatible = "adi,adxl367"},
{}
};

/******************************************************************************/
/************************ Variable Declarations ******************************/
Expand Down
9 changes: 9 additions & 0 deletions drivers/accel/adxl372/adxl372.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
#include <string.h>
#include "adxl372.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl372_device_table[] = {
{.compatible = "adi,adxl372"},
{}
};

/******************************************************************************/
/************************** Functions Implementation **************************/
Expand Down
10 changes: 10 additions & 0 deletions drivers/accel/adxl38x/adxl38x.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@
#include "no_os_delay.h"
#include "no_os_alloc.h"
#include "no_os_util.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device adxl38x_device_table[] = {
{.compatible = "adi,adxl380"},
{.compatible = "adi,adxl382"},
{}
};

/******************************************************************************/
/********************Variable & Constants Declarations ************************/
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc-dac/ad5592r/ad5592r.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
#include "no_os_error.h"
#include "ad5592r-base.h"
#include "ad5592r.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad5592r_device_table[] = {
{.compatible = "adi,ad5592r"},
{}
};

const struct ad5592r_rw_ops ad5592r_rw_ops = {
.write_dac = ad5592r_write_dac,
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc-dac/ad5592r/ad5593r.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
#include "ad5592r-base.h"
#include "no_os_error.h"
#include "ad5593r.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad5593r_device_table[] = {
{.compatible = "adi,ad5593r"},
{}
};

#define AD5593R_MODE_CONF (0 << 4)
#define AD5593R_MODE_DAC_WRITE (1 << 4)
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc-dac/ad74413r/ad74413r.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad74413r_device_table[] = {
{.compatible = "adi,ad74413r"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AD74412R is also supported by this driver.

{}
};

/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc-dac/ad74416h/ad74416h.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad74416h_device_table[] = {
{.compatible = "adi,ad74416h"},
{}
};

/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
Expand Down
35 changes: 35 additions & 0 deletions drivers/adc/ad400x/ad400x.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,41 @@
#include "no_os_error.h"
#include "no_os_alloc.h"
#include "no_os_util.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad400x_device_table[] = {
{.compatible = "adi,ad4000"},
{.compatible = "adi,ad4001"},
{.compatible = "adi,ad4002"},
{.compatible = "adi,ad4003"},
{.compatible = "adi,ad4004"},
{.compatible = "adi,ad4005"},
{.compatible = "adi,ad4006"},
{.compatible = "adi,ad4007"},
{.compatible = "adi,ad4008"},
{.compatible = "adi,ad4010"},
{.compatible = "adi,ad4011"},
{.compatible = "adi,ad4020"},
{.compatible = "adi,ad4021"},
{.compatible = "adi,ad4022"},
{.compatible = "adi,adaq4003"},
{.compatible = "adi,ad7690"},
{.compatible = "adi,ad7691"},
{.compatible = "adi,ad7693"},
{.compatible = "adi,ad7942"},
{.compatible = "adi,ad7944"},
{.compatible = "adi,ad7946"},
{.compatible = "adi,ad7980"},
{.compatible = "adi,ad7982"},
{.compatible = "adi,ad7983"},
{.compatible = "adi,ad7984"},
{.compatible = "adi,ad7985"},
{.compatible = "adi,ad7986"},
{}
};

const struct ad400x_dev_info ad400x_devices[] = {
[ID_AD4000] = {.resolution = 16, .sign = 'u', .max_rate = 2000},
Expand Down
10 changes: 10 additions & 0 deletions drivers/adc/ad405x/ad405x.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
#include "ad405x.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad405x_device_table[] = {
{.compatible = "adi,ad4050"},
{.compatible = "adi,ad4052"},
{}
};

/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc/ad4080/ad4080.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
#include <errno.h>
#include "ad4080.h"
#include "no_os_delay.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad4080_device_table[] = {
{.compatible = "adi,ad4080"},
{}
};

/******************************************************************************/
/************************ Functions Definitions *******************************/
Expand Down
12 changes: 12 additions & 0 deletions drivers/adc/ad4170/ad4170.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@
#include "no_os_delay.h"
#include "no_os_crc8.h"
#include "ad4170.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad4170_device_table[] = {
{.compatible = "adi,ad4170"},
{.compatible = "adi,ad4171"},
{.compatible = "adi,ad4172"},
{.compatible = "adi,ad4190"},
{}
};

NO_OS_DECLARE_CRC8_TABLE(ad4170_crc8);

Expand Down
19 changes: 19 additions & 0 deletions drivers/adc/ad463x/ad463x.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@
#include "no_os_print_log.h"
#include "no_os_alloc.h"
#include "no_os_spi.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad463x_device_table[] = {
{.compatible = "adi,ad4630-24"},
{.compatible = "adi,ad4630-20"},
{.compatible = "adi,ad4630-16"},
{.compatible = "adi,ad4631-24"},
{.compatible = "adi,ad4631-20"},
{.compatible = "adi,ad4631-16"},
{.compatible = "adi,ad4632-24"},
{.compatible = "adi,ad4632-20"},
{.compatible = "adi,ad4632-16"},
{.compatible = "adi,ad4030"},
{.compatible = "adi,adaq4224"},
{}
};

/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
Expand Down
12 changes: 12 additions & 0 deletions drivers/adc/ad469x/ad469x.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad469x_device_table[] = {
{.compatible = "adi,ad4695"},
{.compatible = "adi,ad4696"},
{.compatible = "adi,ad4697"},
{.compatible = "adi,ad4698"},
{}
};

/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
Expand Down
17 changes: 17 additions & 0 deletions drivers/adc/ad4858/ad4858.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@
#include "ad4858.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad4858_device_table[] = {
{.compatible = "adi,ad4858"},
{.compatible = "adi,ad4857"},
{.compatible = "adi,ad4856"},
{.compatible = "adi,ad4855"},
{.compatible = "adi,ad4854"},
{.compatible = "adi,ad4853"},
{.compatible = "adi,ad4852"},
{.compatible = "adi,ad4851"},
{.compatible = "adi,ad4858i"},
{}
};

/**
* @brief Write device register.
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc/ad6673/ad6673.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
#include "ad6673.h"
#include "ad6673_cfg.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad6673_device_table[] = {
{.compatible = "adi,ad6673"},
{}
};

/*****************************************************************************/
/***************************** Constant definition ***************************/
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc/ad6676/ad6676.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
#include <stdio.h>
#include "ad6676.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad6676_device_table[] = {
{.compatible = "adi,ad6676"},
{}
};

/***************************************************************************//**
* @brief SPI read from device.
Expand Down
9 changes: 9 additions & 0 deletions drivers/adc/ad7091r/ad7091r.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@
#include <stdlib.h>
#include "ad7091r.h"
#include "no_os_alloc.h"
#include "no_os_device.h"

/**
* @brief Device driver compatibility list.
*/
const struct no_os_device ad7091r_device_table[] = {
{.compatible = "adi,ad7091r"},
{}
};

/******************************************************************************/
/************************ Functions Definitions *******************************/
Expand Down
Loading
Loading