Skip to content
Commit 521cb6d8 authored by Michał Barnaś's avatar Michał Barnaś Committed by Carles Cufí
Browse files

i2c: allow shell commands to operate on up to 32-bit registers



Improve shell commands to support up to 32-bit addresses.
The check if function should use 8/16/24/32-bit address is basing
on the length of address used in function parameter. To address
registers below 256 using 16-bit, one should write them left-padded
with zeroes. Address is sent in big endian.

Signed-off-by: default avatarMichał Barnaś <mb@semihalf.com>
parent d9a657de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment