Numerous fixes for basic STM32 SDIO DMA access
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2279 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7246fb2aef
commit
357aedef82
@ -67,6 +67,7 @@
|
|||||||
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
||||||
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
||||||
# the delay actually is 100 seconds.
|
# the delay actually is 100 seconds.
|
||||||
|
# CONFIG_ARCH_DMA - Support DMA initialization
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=arm
|
CONFIG_ARCH=arm
|
||||||
CONFIG_ARCH_ARM=y
|
CONFIG_ARCH_ARM=y
|
||||||
@ -86,6 +87,7 @@ CONFIG_ARCH_BOOTLOADER=n
|
|||||||
CONFIG_ARCH_LEDS=y
|
CONFIG_ARCH_LEDS=y
|
||||||
CONFIG_ARCH_BUTTONS=n
|
CONFIG_ARCH_BUTTONS=n
|
||||||
CONFIG_ARCH_CALIBRATION=n
|
CONFIG_ARCH_CALIBRATION=n
|
||||||
|
CONFIG_ARCH_DMA=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# Identify toolchain
|
# Identify toolchain
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
* Included Files
|
* Included Files
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
|
#include <nuttx/config.h>
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
||||||
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
||||||
# the delay actually is 100 seconds.
|
# the delay actually is 100 seconds.
|
||||||
|
# CONFIG_ARCH_DMA - Support DMA initialization
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=arm
|
CONFIG_ARCH=arm
|
||||||
CONFIG_ARCH_ARM=y
|
CONFIG_ARCH_ARM=y
|
||||||
@ -86,6 +87,7 @@ CONFIG_ARCH_BOOTLOADER=n
|
|||||||
CONFIG_ARCH_LEDS=y
|
CONFIG_ARCH_LEDS=y
|
||||||
CONFIG_ARCH_BUTTONS=n
|
CONFIG_ARCH_BUTTONS=n
|
||||||
CONFIG_ARCH_CALIBRATION=n
|
CONFIG_ARCH_CALIBRATION=n
|
||||||
|
CONFIG_ARCH_DMA=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
||||||
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
||||||
# the delay actually is 100 seconds.
|
# the delay actually is 100 seconds.
|
||||||
|
# CONFIG_ARCH_DMA - Support DMA initialization
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=arm
|
CONFIG_ARCH=arm
|
||||||
CONFIG_ARCH_ARM=y
|
CONFIG_ARCH_ARM=y
|
||||||
@ -86,6 +87,7 @@ CONFIG_ARCH_BOOTLOADER=n
|
|||||||
CONFIG_ARCH_LEDS=y
|
CONFIG_ARCH_LEDS=y
|
||||||
CONFIG_ARCH_BUTTONS=n
|
CONFIG_ARCH_BUTTONS=n
|
||||||
CONFIG_ARCH_CALIBRATION=n
|
CONFIG_ARCH_CALIBRATION=n
|
||||||
|
CONFIG_ARCH_DMA=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
|
@ -71,18 +71,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Initialize the DMA subsystem if the weak function stm32_dmainitialize has been
|
|
||||||
* brought into the build
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_DMA1) || defined(CONFIG_STM32_DMA2)
|
|
||||||
if (stm32_dmainitialize)
|
|
||||||
{
|
|
||||||
stm32_dmainitialize();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
|
||||||
* stm32_spiinitialize() has been brought into the link.
|
* stm32_spiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
@ -93,18 +82,18 @@ void stm32_boardinitialize(void)
|
|||||||
stm32_spiinitialize();
|
stm32_spiinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
|
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
|
||||||
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
|
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
|
||||||
* into the build.
|
* into the build.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
|
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
|
||||||
if (stm32_usbinitialize)
|
if (stm32_usbinitialize)
|
||||||
{
|
{
|
||||||
stm32_usbinitialize();
|
stm32_usbinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
|
||||||
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
|
||||||
# the delay actually is 100 seconds.
|
# the delay actually is 100 seconds.
|
||||||
|
# CONFIG_ARCH_DMA - Support DMA initialization
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=arm
|
CONFIG_ARCH=arm
|
||||||
CONFIG_ARCH_ARM=y
|
CONFIG_ARCH_ARM=y
|
||||||
@ -86,6 +87,7 @@ CONFIG_ARCH_BOOTLOADER=n
|
|||||||
CONFIG_ARCH_LEDS=y
|
CONFIG_ARCH_LEDS=y
|
||||||
CONFIG_ARCH_BUTTONS=n
|
CONFIG_ARCH_BUTTONS=n
|
||||||
CONFIG_ARCH_CALIBRATION=n
|
CONFIG_ARCH_CALIBRATION=n
|
||||||
|
CONFIG_ARCH_DMA=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
|
Loading…
Reference in New Issue
Block a user