Subversion Repositories svn.mios32

Rev

Rev 1353 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1352 lee 1
// $Id: mios32_config.h 1171 2011-04-10 18:58:03Z tk $
2
/*
3
 * Local MIOS32 configuration file
4
 *
5
 * this file allows to disable (or re-configure) default functions of MIOS32
6
 * available switches are listed in $MIOS32_PATH/modules/mios32/MIOS32_CONFIG.txt
7
 *
8
 */
9
 
10
#ifndef _MIOS32_CONFIG_H
11
#define _MIOS32_CONFIG_H
12
 
13
// The boot message which is print during startup and returned on a SysEx query
14
#define MIOS32_LCD_BOOT_MSG_LINE1 "SD card polyphonic sample player"
15
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2011 L O'Donnell lee@bassmaker.co.uk"
16
 
17
// Local override for sampling rate
18
#define MIOS32_I2S_AUDIO_FREQ   44100
19
 
20
// Override SD card speed to make it faster
21
#define MIOS32_SDCARD_SPI_PRESCALER MIOS32_SPI_PRESCALER_4
22
 
23
#if defined(MIOS32_FAMILY_STM32F10x)
1376 tk 24
// I2S device connected to J8 (-> SPI1), therefore we have to disable SRIO!
25
// DIN/DOUT won't be available for this board
26
// there is no suitable alternative port available, e.g. J16 used for SD Card
27
#define MIOS32_DONT_USE_SRIO 1
1352 lee 28
#endif
29
 
1353 tk 30
// avoid disk_read in FILE_ReadReOpen
31
#define FILE_NO_DISK_READ_ON_READREOPEN 1
32
 
33
 
1352 lee 34
// I2S support has to be enabled explicitely
35
#define MIOS32_USE_I2S
36
 
37
// enable MCLK pin (not for STM32 primer)
38
#ifdef MIOS32_BOARD_STM32_PRIMER
39
# define MIOS32_I2S_MCLK_ENABLE  0
40
#else
41
# define MIOS32_I2S_MCLK_ENABLE  1
42
#endif
43
 
44
#endif /* _MIOS32_CONFIG_H */