diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-21 13:13:05 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-21 13:13:05 -0600 |
commit | 801977de7c84d03616329795e1c59929ab948906 (patch) | |
tree | b9d9220000c01cf9aca8e010f43fc488ccc26f26 /nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h | |
parent | 3895e0ec4c2c3057935bbeb7558fa4b815385334 (diff) | |
download | px4-nuttx-801977de7c84d03616329795e1c59929ab948906.tar.gz px4-nuttx-801977de7c84d03616329795e1c59929ab948906.tar.bz2 px4-nuttx-801977de7c84d03616329795e1c59929ab948906.zip |
Audio subystem update from Ken Pettit. Plus moved some header files
Diffstat (limited to 'nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h')
-rw-r--r-- | nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h b/nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h index d1a69547e..0f6894316 100644 --- a/nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h +++ b/nuttx/configs/mikroe-stm32f4/src/mikroe-stm32f4-internal.h @@ -92,7 +92,9 @@ GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN3) #define GPIO_CS_FLASH (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN7) -#define GPIO_CS_MP3 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ +#define GPIO_CS_MP3_DATA (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ + GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN9) +#define GPIO_CS_MP3_CMD (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN8) #define GPIO_CS_EXP_SPI3 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN0) @@ -182,6 +184,13 @@ #define GPIO_TP_XL (GPIO_ANALOG|GPIO_PORTB|GPIO_PIN1) +/* MP3 Codec control pins */ + +#define GPIO_VS1053_RST (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ + GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN7) +#define GPIO_VS1053_DREQ (GPIO_INPUT|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN6) + + /**************************************************************************************************** * Public Types ****************************************************************************************************/ @@ -258,5 +267,17 @@ void stm32_lcdinitialize(void); int up_lcdinitialize(void); #endif +/**************************************************************************************************** + * Name: up_vs1053initialize + * + * Description: + * Initialize the VS1053 Audio CODEC hardware. + * + ****************************************************************************************************/ + +#ifdef CONFIG_VS1053 +void up_vs1053initialize(FAR struct spi_dev_s *spi); +#endif + #endif /* __ASSEMBLY__ */ #endif /* __CONFIGS_MIKROE_STM32F4_SRC_MIKROE_STM32F4_INTERNAL_H */ |