Chibios definition updates for the Olimex-SAM7EX256

ugfx_release_2.6
inmarket 2015-02-07 21:59:09 +10:00
parent 867324f1d5
commit d532ab02c3
2 changed files with 35 additions and 11 deletions

View File

@ -59,7 +59,7 @@
* @brief Enables the ADC subsystem. * @brief Enables the ADC subsystem.
*/ */
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
#define HAL_USE_ADC TRUE #define HAL_USE_ADC FALSE
#endif #endif
/** /**
@ -80,7 +80,7 @@
* @brief Enables the GPT subsystem. * @brief Enables the GPT subsystem.
*/ */
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
#define HAL_USE_GPT TRUE #define HAL_USE_GPT FALSE
#endif #endif
/** /**
@ -115,7 +115,7 @@
* @brief Enables the PWM subsystem. * @brief Enables the PWM subsystem.
*/ */
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
#define HAL_USE_PWM TRUE #define HAL_USE_PWM FALSE
#endif #endif
/** /**
@ -150,7 +150,7 @@
* @brief Enables the SPI subsystem. * @brief Enables the SPI subsystem.
*/ */
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
#define HAL_USE_SPI TRUE #define HAL_USE_SPI FALSE
#endif #endif
/** /**

View File

@ -33,17 +33,30 @@
* is enabled in halconf.h. * 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. * ADC driver system settings.
*/ */
#define HAL_USE_ADC TRUE // Used by audio-in
/* /*
* CAN driver system settings. * CAN driver system settings.
*/ */
#define HAL_USE_CAN FALSE
/* /*
* MAC driver system settings. * MAC driver system settings.
*/ */
#define HAL_USE_MAC FALSE
#define MAC_TRANSMIT_BUFFERS 2 #define MAC_TRANSMIT_BUFFERS 2
#define MAC_RECEIVE_BUFFERS 2 #define MAC_RECEIVE_BUFFERS 2
#define MAC_BUFFERS_SIZE 1518 #define MAC_BUFFERS_SIZE 1518
@ -52,14 +65,17 @@
/* /*
* PWM driver system settings. * PWM driver system settings.
*/ */
#define PWM_USE_PWM1 TRUE // used by audio-out #define HAL_USE_PWM TRUE
#define PWM_USE_PWM2 TRUE // used by back-light #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_PWM3 FALSE
#define PWM_USE_PWM4 FALSE #define PWM_USE_PWM4 FALSE
/* /*
* SERIAL driver system settings. * SERIAL driver system settings.
*/ */
#define HAL_USE_SERIAL FALSE
#define HAL_USE_UART FALSE
#define USE_SAM7_USART0 TRUE #define USE_SAM7_USART0 TRUE
#define USE_SAM7_USART1 TRUE #define USE_SAM7_USART1 TRUE
#define SAM7_USART0_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2) #define SAM7_USART0_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2)
@ -69,14 +85,22 @@
* SPI driver system settings. * SPI driver system settings.
*/ */
#define USE_AT91SAM7_SPI FALSE #define USE_AT91SAM7_SPI FALSE
#define AT91SAM7_SPI_USE_SPI0 TRUE #define HAL_USE_SPI FALSE
#define AT91SAM7_SPI_USE_SPI1 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_SPI0_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 1)
#define AT91SAM7_SPI1_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 1) #define AT91SAM7_SPI1_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 1)
/* /*
* GPT driver system settings. * GPT driver system settings.
*/ */
#define AT91_GPT_USE_TC0 FALSE // used internally by ADC driver #define HAL_USE_GPT TRUE
#define AT91_GPT_USE_TC1 TRUE // uGFX used for audio-out #define AT91_GPT_USE_TC0 FALSE // used internally by ADC driver
#define AT91_GPT_USE_TC2 FALSE #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