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:
parent
c38910ced9
commit
7a68c44dd0
|
@ -131,6 +131,10 @@ void tiva_clock_init(void)
|
||||||
#if HAL_USE_PWM
|
#if HAL_USE_PWM
|
||||||
SYSCTL->RCC |= TIVA_PWM_FIELDS;
|
SYSCTL->RCC |= TIVA_PWM_FIELDS;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(TIVA_UDMA_REQUIRED)
|
||||||
|
udmaInit();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -349,6 +349,7 @@
|
||||||
/* Various helpers.*/
|
/* Various helpers.*/
|
||||||
#include "nvic.h"
|
#include "nvic.h"
|
||||||
#include "tiva_isr.h"
|
#include "tiva_isr.h"
|
||||||
|
#include "tiva_udma.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -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/serial_lld.c \
|
||||||
${CHIBIOS}/community/os/hal/ports/TIVA/LLD/i2c_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/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
|
# Required include directories
|
||||||
PLATFORMINC = ${CHIBIOS}/os/hal/ports/common/ARMCMx \
|
PLATFORMINC = ${CHIBIOS}/os/hal/ports/common/ARMCMx \
|
||||||
|
|
Loading…
Reference in New Issue