Subversion Repositories svn.mios32


Rev 1353 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

// $Id: mios32_config.h 1171 2011-04-10 18:58:03Z tk $
 * Local MIOS32 configuration file
 * this file allows to disable (or re-configure) default functions of MIOS32
 * available switches are listed in $MIOS32_PATH/modules/mios32/MIOS32_CONFIG.txt

#ifndef _MIOS32_CONFIG_H
#define _MIOS32_CONFIG_H

// The boot message which is print during startup and returned on a SysEx query
#define MIOS32_LCD_BOOT_MSG_LINE1 "SD card polyphonic sample player"
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2011 L O'Donnell"

// Local override for sampling rate
#define MIOS32_I2S_AUDIO_FREQ   44100

// Override SD card speed to make it faster

#if defined(MIOS32_FAMILY_STM32F10x)
// I2S device connected to J8 (-> SPI1), therefore we have to disable SRIO!
// DIN/DOUT won't be available for this board
// there is no suitable alternative port available, e.g. J16 used for SD Card
#define MIOS32_DONT_USE_SRIO 1

// avoid disk_read in FILE_ReadReOpen

// I2S support has to be enabled explicitely
#define MIOS32_USE_I2S

// enable MCLK pin (not for STM32 primer)
# define MIOS32_I2S_MCLK_ENABLE  0
# define MIOS32_I2S_MCLK_ENABLE  1

#endif /* _MIOS32_CONFIG_H */