1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00
LibrePilot/flight/OpenPilot/System
stac a3a2dbd634 spi: Add support for hardware CRC generation/checking
PIOS SPI devices may now make use of automatic CRC generation
and checking on block transfers.  Only supports CRC8 for now.

Since the SPI interface CRC calculation continues across message
boundaries (ie. not reset on every transfer), we must manually reset
the CRC registers for every transfer to allow the two sides of the
link to resynchronize.

Unfortunately, resetting the CRC registers requires disabling the
SPI peripheral which must now be done on every block transfer.

Note: The last byte of the tx buffer is never sent and is assumed to
      be a place holder for the tx CRC8.
Note: The last byte of the rx buffer is expected to hold the rx CRC8.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1011 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:42 +00:00
..
inc Minini removed from OpenPilot 2010-07-01 08:57:06 +00:00
alarms.c Flight/UAVObjects Added support for default field values (used to initialize settings with defaults) 2010-04-28 01:54:24 +00:00
openpilot.c No need to include telemetry.h in openpilot.c 2010-06-20 17:43:00 +00:00
pios_board.c spi: Add support for hardware CRC generation/checking 2010-07-04 02:21:42 +00:00