Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

I2C using deprecated Zephyr API #1807

@jimmy-huang

Description

@jimmy-huang

When you build samples involving I2C like samples/I2C.js, you will see warnings that it's using deprecated Zephyr structs:

/home/jimmy/projects/zephyrjs/zephyr.js/src/zjs_i2c_handler.c: In function ‘zjs_i2c_handle_open’:
/home/jimmy/projects/zephyrjs/zephyr.js/src/zjs_i2c_handler.c:32:19: warning: ‘dev_config’ is deprecated [-Wdeprecated-declarations]
union dev_config cfg;
^~~~~~~~~~
In file included from /home/jimmy/projects/zephyrjs/zephyr.js/src/zjs_i2c_handler.h:6:0,
from /home/jimmy/projects/zephyrjs/zephyr.js/src/zjs_i2c_handler.c:4:
/home/jimmy/projects/zephyrjs/zephyr.js/deps/zephyr/include/i2c.h:97:20: note: declared here
union __deprecated dev_config {
^~~~~~~~~~

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions