Chibios definition updates for the Olimex-SAM7EX256
This commit is contained in:
parent
867324f1d5
commit
d532ab02c3
2 changed files with 35 additions and 11 deletions
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue