Subversion Repositories svn.mios32

Rev

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

Rev Author Line No. Line
823 philetaylo 1
// $Id: mios32_config.h 387 2009-03-04 23:15:36Z 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 "uIP Example"
15
#define MIOS32_LCD_BOOT_MSG_LINE2 "(c) 2009 T.Klose"
16
 
17
// function used to output debug messages (must be printf compatible!)
18
#define DEBUG_MSG MIOS32_MIDI_SendDebugMessage
19
 
20
// ENC28J60 settings
21
#define MIOS32_ENC28J60_FULL_DUPLEX 1
22
// Must be at least 4 bytes larger than UIP_CONF_BUFFER_SIZE
23
#define MIOS32_ENC28J60_MAX_FRAME_SIZE 1504
24
 
25
// a unique MAC address in your network (6 bytes are required)
26
// If all bytes are 0, the serial number of STM32 will be taken instead,
27
// which should be unique in your private network.
28
#define MIOS32_ENC28J60_MY_MAC_ADDR1 0
29
#define MIOS32_ENC28J60_MY_MAC_ADDR2 0
30
#define MIOS32_ENC28J60_MY_MAC_ADDR3 0
31
#define MIOS32_ENC28J60_MY_MAC_ADDR4 0
32
#define MIOS32_ENC28J60_MY_MAC_ADDR5 0
33
#define MIOS32_ENC28J60_MY_MAC_ADDR6 0
34
 
35
#define MIOS32_SDCARD_MUTEX_TAKE    APP_MutexSPI0Take()
36
#define MIOS32_SDCARD_MUTEX_GIVE    APP_MutexSPI0Give()
37
#define MIOS32_ENC28J60_MUTEX_TAKE    APP_MutexSPI0Take()
38
#define MIOS32_ENC28J60_MUTEX_GIVE    APP_MutexSPI0Give()
39
 
40
// optional performance measuring
41
#define configGENERATE_RUN_TIME_STATS           1
2425 tk 42
#if configGENERATE_RUN_TIME_STATS
823 philetaylo 43
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS  FREERTOS_UTILS_PerfCounterInit
44
#define portGET_RUN_TIME_COUNTER_VALUE          FREERTOS_UTILS_PerfCounterGet
2425 tk 45
#endif
823 philetaylo 46
 
47
 
48
// optional task information
49
#define configUSE_TRACE_FACILITY                1
50
#define configINCLUDE_vTaskDelete               1
51
#define configINCLUDE_vTaskSuspend              1
52
 
53
 
54
// Disable malloc hook as I want to test if program can survive if malloc fails!
825 philetaylo 55
#define configUSE_MALLOC_FAILED_HOOK        0
823 philetaylo 56
 
57
// Use malloc function. Seems to fail occasionally (best to set the above to 0 as well!)
825 philetaylo 58
#define WEBSERVER_USE_MALLOC                1
823 philetaylo 59
 
60
#endif /* _MIOS32_CONFIG_H */