From 316c3b4825689afca170576e5a5681302f64fdfa Mon Sep 17 00:00:00 2001 From: Michael Spradling Date: Mon, 29 Jun 2015 21:54:13 -0400 Subject: Add CRC Driver This patch includes a high level and two low level drivers. The high level driver is enabled with flag HAL_USE_CRC The low level drivers include: * Hardware CRC for the STM32 cortex processor lines.(when supported) * Enabled with flag STM32_CRC_USE_CRC1 * DMA is enabled with CRC_USE_DMA * SYNC api will use DMA, but put calling thread to sleep * ASYNC api enabled. * DMA Disabled * SYNC api spin while calculating CRC * ASYNC api disabled * Software CRC (3 modes) * CRCSW_CRC32_TABLE - Enables crc32 with lookup table. * CRCSW_CRC16_TABLE - Enables crc16 with lookup tables. * CRCSW_PROGRAMMBLE - Enables any crc done with computation. * Can calculate any crc configuration. * CRC_USE_DMA obviously not support with software CRC --- os/hal/hal.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os/hal/hal.mk') diff --git a/os/hal/hal.mk b/os/hal/hal.mk index 51cda56..c193ef4 100644 --- a/os/hal/hal.mk +++ b/os/hal/hal.mk @@ -3,6 +3,7 @@ include ${CHIBIOS}/os/hal/hal.mk HALSRC += ${CHIBIOS}/community/os/hal/src/hal_community.c \ ${CHIBIOS}/community/os/hal/src/nand.c \ ${CHIBIOS}/community/os/hal/src/onewire.c \ - ${CHIBIOS}/community/os/hal/src/eicu.c + ${CHIBIOS}/community/os/hal/src/eicu.c \ + ${CHIBIOS}/community/os/hal/src/crc.c HALINC += ${CHIBIOS}/community/os/hal/include -- cgit v1.2.3