git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1441 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
3dea38d954
commit
cb565d0734
|
@ -54,10 +54,6 @@
|
||||||
#define MAC_BUFFERS_SIZE 1518
|
#define MAC_BUFFERS_SIZE 1518
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* EMAC specific settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Interrupt priority level for the EMAC device.
|
* @brief Interrupt priority level for the EMAC device.
|
||||||
*/
|
*/
|
||||||
|
@ -65,6 +61,14 @@
|
||||||
#define EMAC_INTERRUPT_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 3)
|
#define EMAC_INTERRUPT_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 3)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
|
||||||
|
#error "the MAC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* EMAC specific constants. */
|
/* EMAC specific constants. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,43 +29,6 @@
|
||||||
|
|
||||||
#if CH_HAL_USE_ADC || defined(__DOXYGEN__)
|
#if CH_HAL_USE_ADC || defined(__DOXYGEN__)
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* Driver pre-compile time settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief ADC1 driver enable switch.
|
|
||||||
* @details If set to @p TRUE the support for ADC1 is included.
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
#if !defined(USE_STM32_ADC1) || defined(__DOXYGEN__)
|
|
||||||
#define USE_STM32_ADC1 TRUE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief ADC1 DMA priority (0..3|lowest..highest).
|
|
||||||
*/
|
|
||||||
#if !defined(STM32_ADC1_DMA_PRIORITY) || defined(__DOXYGEN__)
|
|
||||||
#define STM32_ADC1_DMA_PRIORITY 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief ADC1 interrupt priority level setting.
|
|
||||||
* @note @p BASEPRI_KERNEL >= @p STM32_ADC1_IRQ_PRIORITY > @p PRIORITY_PENDSV.
|
|
||||||
*/
|
|
||||||
#if !defined(STM32_ADC1_IRQ_PRIORITY) || defined(__DOXYGEN__)
|
|
||||||
#define STM32_ADC1_IRQ_PRIORITY 0x70
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief ADC1 DMA error hook.
|
|
||||||
* @note The default action for DMA errors is a system halt because DMA error
|
|
||||||
* can only happen because programming errors.
|
|
||||||
*/
|
|
||||||
#if !defined(STM32_ADC1_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
|
|
||||||
#define STM32_ADC1_DMA_ERROR_HOOK() chSysHalt()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver constants. */
|
/* Driver constants. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -113,6 +76,51 @@
|
||||||
#define ADC_SQR1_SQ15_N(n) ((n) << 10)
|
#define ADC_SQR1_SQ15_N(n) ((n) << 10)
|
||||||
#define ADC_SQR1_SQ16_N(n) ((n) << 15)
|
#define ADC_SQR1_SQ16_N(n) ((n) << 15)
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Driver pre-compile time settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ADC1 driver enable switch.
|
||||||
|
* @details If set to @p TRUE the support for ADC1 is included.
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(USE_STM32_ADC1) || defined(__DOXYGEN__)
|
||||||
|
#define USE_STM32_ADC1 TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ADC1 DMA priority (0..3|lowest..highest).
|
||||||
|
*/
|
||||||
|
#if !defined(STM32_ADC1_DMA_PRIORITY) || defined(__DOXYGEN__)
|
||||||
|
#define STM32_ADC1_DMA_PRIORITY 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ADC1 interrupt priority level setting.
|
||||||
|
* @note @p BASEPRI_KERNEL >= @p STM32_ADC1_IRQ_PRIORITY > @p PRIORITY_PENDSV.
|
||||||
|
*/
|
||||||
|
#if !defined(STM32_ADC1_IRQ_PRIORITY) || defined(__DOXYGEN__)
|
||||||
|
#define STM32_ADC1_IRQ_PRIORITY 0x70
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ADC1 DMA error hook.
|
||||||
|
* @note The default action for DMA errors is a system halt because DMA error
|
||||||
|
* can only happen because programming errors.
|
||||||
|
*/
|
||||||
|
#if !defined(STM32_ADC1_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
|
||||||
|
#define STM32_ADC1_DMA_ERROR_HOOK() chSysHalt()
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if !CH_USE_SEMAPHORES
|
||||||
|
#error "the ADC driver requires CH_USE_SEMAPHORES"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -102,6 +102,14 @@
|
||||||
#define CAN_USE_SLEEP_MODE FALSE
|
#define CAN_USE_SLEEP_MODE FALSE
|
||||||
#endif /* !CAN_SUPPORTS_SLEEP */
|
#endif /* !CAN_SUPPORTS_SLEEP */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
|
||||||
|
#error "the ADC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
|
|
||||||
#if CH_HAL_USE_SPI || defined(__DOXYGEN__)
|
#if CH_HAL_USE_SPI || defined(__DOXYGEN__)
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Driver constants. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -105,6 +109,14 @@
|
||||||
#define STM32_SPI2_DMA_ERROR_HOOK() chSysHalt()
|
#define STM32_SPI2_DMA_ERROR_HOOK() chSysHalt()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if SPI_USE_MUTUAL_EXCLUSION && !CH_USE_MUTEXES && !CH_USE_SEMAPHORES
|
||||||
|
#error "SPI_USE_MUTUAL_EXCLUSION requires CH_USE_MUTEXES and/or CH_USE_SEMAPHORES"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,14 +29,22 @@
|
||||||
|
|
||||||
#if CH_HAL_USE_ADC || defined(__DOXYGEN__)
|
#if CH_HAL_USE_ADC || defined(__DOXYGEN__)
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Driver constants. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver constants. */
|
/* Derived constants and error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if !CH_USE_SEMAPHORES
|
||||||
|
#error "the ADC driver requires CH_USE_SEMAPHORES"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -56,6 +56,14 @@
|
||||||
#define CAN_USE_SLEEP_MODE FALSE
|
#define CAN_USE_SLEEP_MODE FALSE
|
||||||
#endif /* !CAN_SUPPORTS_SLEEP */
|
#endif /* !CAN_SUPPORTS_SLEEP */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
|
||||||
|
#error "the ADC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
|
|
||||||
#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
|
#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Driver constants. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -54,6 +58,14 @@
|
||||||
#define MAC_BUFFERS_SIZE 1518
|
#define MAC_BUFFERS_SIZE 1518
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
|
||||||
|
#error "the MAC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -37,6 +37,10 @@
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -42,6 +42,10 @@
|
||||||
#define PWM_CHANNELS 1
|
#define PWM_CHANNELS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,12 +29,16 @@
|
||||||
|
|
||||||
#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
|
#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Driver constants. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver constants. */
|
/* Derived constants and error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
|
|
||||||
#if CH_HAL_USE_SPI || defined(__DOXYGEN__)
|
#if CH_HAL_USE_SPI || defined(__DOXYGEN__)
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Driver constants. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -40,6 +44,10 @@
|
||||||
#define SPI_USE_MUTUAL_EXCLUSION TRUE
|
#define SPI_USE_MUTUAL_EXCLUSION TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Derived constants and error checks. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
#if SPI_USE_MUTUAL_EXCLUSION && !CH_USE_MUTEXES && !CH_USE_SEMAPHORES
|
#if SPI_USE_MUTUAL_EXCLUSION && !CH_USE_MUTEXES && !CH_USE_SEMAPHORES
|
||||||
#error "SPI_USE_MUTUAL_EXCLUSION requires CH_USE_MUTEXES and/or CH_USE_SEMAPHORES"
|
#error "SPI_USE_MUTUAL_EXCLUSION requires CH_USE_MUTEXES and/or CH_USE_SEMAPHORES"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue