From 19332606181bffe0ba75105c3461196e096f1c81 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 14 Jun 2015 14:27:58 -0600 Subject: [PATCH] SAML21 minor stuff --- TODO | 2 +- arch/arm/src/samdl/sam_dmac.c | 5 +++-- configs/saml21-xplained/README.txt | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 3e9c297509..09e04ad80d 100644 --- a/TODO +++ b/TODO @@ -1080,7 +1080,7 @@ o USB (drivers/usbdev, drivers/usbhost) channels. This works okay until you add a hub and try connect multiple - devices. A typical device will require 3-4 pipe and, hence, + devices. A typical device will require 3-4 pipes and, hence, 4-5 channels. This effectively prevents using a hub with the STM32 devices. This also applies to the EFM32 which uses the same IP. diff --git a/arch/arm/src/samdl/sam_dmac.c b/arch/arm/src/samdl/sam_dmac.c index b6981dc60b..53f15eeaf5 100644 --- a/arch/arm/src/samdl/sam_dmac.c +++ b/arch/arm/src/samdl/sam_dmac.c @@ -803,9 +803,10 @@ void weak_function up_dmainitialize(void) putreg32((uint32_t)g_base_desc, SAM_DMAC_BASEADDR); putreg32((uint32_t)g_writeback_desc, SAM_DMAC_WRBADDR); - /* Enable the DMA controller */ + /* Enable the DMA controller and all priority levels */ - putreg16(DMAC_CTRL_DMAENABLE, SAM_DMAC_CTRL); + putreg16(DMAC_CTRL_DMAENABLE | DMAC_CTRL_LVLEN0 | DMAC_CTRL_LVLEN1 | + DMAC_CTRL_LVLEN2, SAM_DMAC_CTRL); /* Enable the IRQ at the NVIC (still disabled at the DMA controller) */ diff --git a/configs/saml21-xplained/README.txt b/configs/saml21-xplained/README.txt index 3453e0e1d1..16daece1b3 100644 --- a/configs/saml21-xplained/README.txt +++ b/configs/saml21-xplained/README.txt @@ -32,6 +32,8 @@ STATUS/ISSUES configuration is working well with the serial console provided by SERCOM4 as 115200 8N1. + - 2015-6-14: Added a DMAC driver. There is no way to verify it at present. + Modules =======