forked from Archive/PX4-Autopilot
nxp_ucans32k146:Use DMA on I2C
This commit is contained in:
parent
45244e610f
commit
f1ff47c088
|
@ -9,6 +9,7 @@
|
|||
# CONFIG_NET_ETHERNET is not set
|
||||
# CONFIG_NET_IPv4 is not set
|
||||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||
# CONFIG_S32K1XX_EDMA_HOE is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD_CUSTOM=y
|
||||
CONFIG_ARCH_BOARD_CUSTOM_DIR="../../../../boards/nxp/ucans32k146/nuttx-config"
|
||||
|
@ -46,6 +47,7 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
|
|||
CONFIG_INIT_STACKSIZE=2176
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_LIBC_STRERROR=y
|
||||
CONFIG_LPI2C0_DMA=y
|
||||
CONFIG_LPUART0_BAUD=38400
|
||||
CONFIG_LPUART0_RXBUFSIZE=600
|
||||
CONFIG_LPUART0_RXDMA=y
|
||||
|
@ -85,10 +87,16 @@ CONFIG_RAM_START=0x1fff0000
|
|||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_RTC=y
|
||||
CONFIG_S32K1XX_EDMA=y
|
||||
CONFIG_S32K1XX_EDMA_EDBG=y
|
||||
CONFIG_S32K1XX_EDMA_ELINK=y
|
||||
CONFIG_S32K1XX_EDMA_NTCD=64
|
||||
CONFIG_S32K1XX_EEEPROM=y
|
||||
CONFIG_S32K1XX_FLEXCAN0=y
|
||||
CONFIG_S32K1XX_FLEXCAN1=y
|
||||
CONFIG_S32K1XX_LPI2C0=y
|
||||
CONFIG_S32K1XX_LPI2C_DMA=y
|
||||
CONFIG_S32K1XX_LPI2C_DYNTIMEO=y
|
||||
CONFIG_S32K1XX_LPSPI0=y
|
||||
CONFIG_S32K1XX_LPUART0=y
|
||||
CONFIG_S32K1XX_LPUART1=y
|
||||
|
|
|
@ -78,6 +78,14 @@
|
|||
*/
|
||||
|
||||
const struct peripheral_clock_config_s g_peripheral_clockconfig0[] = {
|
||||
{
|
||||
.clkname = DMAMUX0_CLK,
|
||||
#ifdef CONFIG_S32K1XX_EDMA
|
||||
.clkgate = true,
|
||||
#else
|
||||
.clkgate = false,
|
||||
#endif
|
||||
},
|
||||
{
|
||||
.clkname = FLEXCAN0_CLK,
|
||||
#ifdef CONFIG_S32K1XX_FLEXCAN0
|
||||
|
|
Loading…
Reference in New Issue