summaryrefslogtreecommitdiff
path: root/board/berknip
diff options
context:
space:
mode:
authorBrian J. Nemec <bnemec@chromium.org>2020-05-24 01:42:38 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-05 08:40:32 +0000
commit9a579db9332205a4f2f5821d91e208dc0023c79a (patch)
tree8a3f3c23549c9b3af041b75f7a7bb0a7a196c20b /board/berknip
parent6d7a73847e676d04a38a4d2528c00648381a871a (diff)
downloadchrome-ec-9a579db9332205a4f2f5821d91e208dc0023c79a.tar.gz
servo: Add USB SPI helper functions and context states
Adds context states to USB SPI for handling receiving and transmitting data. These context states allow us to keep track of data buffers that can not fit within a single USB packet. A context state has been added to describe the USB packets accepted by the USB SPI protocol. This structure includes union fields for easily addressing the different packet's fields and to describe the basic attributes for a USB packet including its size and how many bytes are allocated to the header. Helper functions process the USB packets and aid in the transfer of data between them and receive and transmission buffers. BUG=b:139058552 BRANCH=servo TEST=Tested with Servo Micro reading and verifying flash writes are successful in a loop. Signed-off-by: Brian Nemec <bnemec@chromium.org> Change-Id: I3e0b31f33f442719123b9e897495cad25e9e6ed4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2224764 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Brian Nemec <bnemec@chromium.org> Commit-Queue: Brian Nemec <bnemec@chromium.org>
Diffstat (limited to 'board/berknip')
0 files changed, 0 insertions, 0 deletions