diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-02-07 21:59:09 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-02-07 21:59:09 +1000 |
commit | d532ab02c35cc2ee461f426477a3fdd9f84d8833 (patch) | |
tree | 9f6cd7bc6a6f20c40bca9b06ef7535324cb24eeb /boards/base/Olimex-SAM7EX256-GE8 | |
parent | 867324f1d54382cbb967223699b15912cd880991 (diff) | |
download | uGFX-d532ab02c35cc2ee461f426477a3fdd9f84d8833.tar.gz uGFX-d532ab02c35cc2ee461f426477a3fdd9f84d8833.tar.bz2 uGFX-d532ab02c35cc2ee461f426477a3fdd9f84d8833.zip |
Chibios definition updates for the Olimex-SAM7EX256
Diffstat (limited to 'boards/base/Olimex-SAM7EX256-GE8')
-rw-r--r-- | boards/base/Olimex-SAM7EX256-GE8/example/halconf.h | 8 | ||||
-rw-r--r-- | boards/base/Olimex-SAM7EX256-GE8/example/mcuconf.h | 38 |
2 files changed, 35 insertions, 11 deletions
diff --git a/boards/base/Olimex-SAM7EX256-GE8/example/halconf.h b/boards/base/Olimex-SAM7EX256-GE8/example/halconf.h index 3b60d923..ccb3f66e 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/example/halconf.h +++ b/boards/base/Olimex-SAM7EX256-GE8/example/halconf.h @@ -59,7 +59,7 @@ * @brief Enables the ADC subsystem. */ #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) -#define HAL_USE_ADC TRUE +#define HAL_USE_ADC FALSE #endif /** @@ -80,7 +80,7 @@ * @brief Enables the GPT subsystem. */ #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) -#define HAL_USE_GPT TRUE +#define HAL_USE_GPT FALSE #endif /** @@ -115,7 +115,7 @@ * @brief Enables the PWM subsystem. */ #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) -#define HAL_USE_PWM TRUE +#define HAL_USE_PWM FALSE #endif /** @@ -150,7 +150,7 @@ * @brief Enables the SPI subsystem. */ #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) -#define HAL_USE_SPI TRUE +#define HAL_USE_SPI FALSE #endif /** diff --git a/boards/base/Olimex-SAM7EX256-GE8/example/mcuconf.h b/boards/base/Olimex-SAM7EX256-GE8/example/mcuconf.h index 8acdd42d..d5bab5f1 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/example/mcuconf.h +++ b/boards/base/Olimex-SAM7EX256-GE8/example/mcuconf.h @@ -33,17 +33,30 @@ * is enabled in halconf.h. */ +#define HAL_USE_PAL TRUE // Used by all sorts of IO +#define HAL_USE_ICU FALSE +#define HAL_USE_TM FALSE +#define HAL_USE_EXT FALSE +#define HAL_USE_MMC_SPI FALSE +#define HAL_USE_RTC FALSE +#define HAL_USE_SDC FALSE +#define HAL_USE_SERIAL_USB FALSE +#define HAL_USE_USB FALSE + /* * ADC driver system settings. */ +#define HAL_USE_ADC TRUE // Used by audio-in /* * CAN driver system settings. */ +#define HAL_USE_CAN FALSE /* * MAC driver system settings. */ +#define HAL_USE_MAC FALSE #define MAC_TRANSMIT_BUFFERS 2 #define MAC_RECEIVE_BUFFERS 2 #define MAC_BUFFERS_SIZE 1518 @@ -52,14 +65,17 @@ /* * PWM driver system settings. */ -#define PWM_USE_PWM1 TRUE // used by audio-out -#define PWM_USE_PWM2 TRUE // used by back-light +#define HAL_USE_PWM TRUE +#define PWM_USE_PWM1 TRUE // Used by audio-out +#define PWM_USE_PWM2 TRUE // Used by back-light #define PWM_USE_PWM3 FALSE #define PWM_USE_PWM4 FALSE /* * SERIAL driver system settings. */ +#define HAL_USE_SERIAL FALSE +#define HAL_USE_UART FALSE #define USE_SAM7_USART0 TRUE #define USE_SAM7_USART1 TRUE #define SAM7_USART0_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2) @@ -69,14 +85,22 @@ * SPI driver system settings. */ #define USE_AT91SAM7_SPI FALSE -#define AT91SAM7_SPI_USE_SPI0 TRUE -#define AT91SAM7_SPI_USE_SPI1 FALSE +#define HAL_USE_SPI FALSE +#define AT91SAM7_SPI_USE_SPI0 FALSE // Used by LCD but addressed directly +#define AT91SAM7_SPI_USE_SPI1 FALSE // Used by lots of UEXT devices #define AT91SAM7_SPI0_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 1) #define AT91SAM7_SPI1_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 1) /* * GPT driver system settings. */ -#define AT91_GPT_USE_TC0 FALSE // used internally by ADC driver -#define AT91_GPT_USE_TC1 TRUE // uGFX used for audio-out -#define AT91_GPT_USE_TC2 FALSE +#define HAL_USE_GPT TRUE +#define AT91_GPT_USE_TC0 FALSE // used internally by ADC driver +#define AT91_GPT_USE_TC1 TRUE // uGFX used for audio-out +#define AT91_GPT_USE_TC2 FALSE + +/* + * I2C driver system settings + */ +#define SAM7_I2C_USE_I2C1 TRUE +#define HAL_USE_I2C TRUE |