Added Tiva UDMA initialization in hal_lld of TM4C123x devices.

Added UDMA and SPI driver to platform.mk of TM4C123x devices.
This commit is contained in:
marcoveeneman 2015-03-17 21:49:01 +01:00
parent c38910ced9
commit 7a68c44dd0
3 changed files with 8 additions and 1 deletions

View File

@ -131,6 +131,10 @@ void tiva_clock_init(void)
#if HAL_USE_PWM
SYSCTL->RCC |= TIVA_PWM_FIELDS;
#endif
#if defined(TIVA_UDMA_REQUIRED)
udmaInit();
#endif
}
/**

View File

@ -349,6 +349,7 @@
/* Various helpers.*/
#include "nvic.h"
#include "tiva_isr.h"
#include "tiva_udma.h"
#ifdef __cplusplus
extern "C" {

View File

@ -6,7 +6,9 @@ PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/serial_lld.c \
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/i2c_lld.c \
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/gpt_lld.c \
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/pwm_lld.c
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/pwm_lld.c \
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/spi_lld.c \
${CHISIOS}/community/os/hal/ports/TIVA/LLD/tiva_udma.c
# Required include directories
PLATFORMINC = ${CHIBIOS}/os/hal/ports/common/ARMCMx \