Fixed bug 3510812.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4065 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
bae0692114
commit
3f5cf067d3
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -60,7 +60,7 @@ static SPIConfig hs_spicfg = {
|
||||||
(MAX_SPI_BITRATE << 8) | AT91C_SPI_NCPHA | AT91C_SPI_BITS_8
|
(MAX_SPI_BITRATE << 8) | AT91C_SPI_NCPHA | AT91C_SPI_BITS_8
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Low speed SPI configuration (192KHz, NCPHA=1, CPOL=0).*/
|
/* Low speed SPI configuration (192kHz, NCPHA=1, CPOL=0).*/
|
||||||
static SPIConfig ls_spicfg = {
|
static SPIConfig ls_spicfg = {
|
||||||
NULL,
|
NULL,
|
||||||
IOPORT1,
|
IOPORT1,
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -60,7 +60,7 @@ static SPIConfig hs_spicfg = {
|
||||||
(MAX_SPI_BITRATE << 8) | AT91C_SPI_NCPHA | AT91C_SPI_BITS_8
|
(MAX_SPI_BITRATE << 8) | AT91C_SPI_NCPHA | AT91C_SPI_BITS_8
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Low speed SPI configuration (192KHz, NCPHA=1, CPOL=0).*/
|
/* Low speed SPI configuration (192kHz, NCPHA=1, CPOL=0).*/
|
||||||
static SPIConfig ls_spicfg = {
|
static SPIConfig ls_spicfg = {
|
||||||
NULL,
|
NULL,
|
||||||
IOPORT1,
|
IOPORT1,
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -58,7 +58,7 @@ static SPIConfig hs_spicfg = {
|
||||||
2
|
2
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Low speed SPI configuration (281.250KHz, CPHA=0, CPOL=0).*/
|
/* Low speed SPI configuration (281.250kHz, CPHA=0, CPOL=0).*/
|
||||||
static SPIConfig ls_spicfg = {
|
static SPIConfig ls_spicfg = {
|
||||||
NULL,
|
NULL,
|
||||||
IOPORT1,
|
IOPORT1,
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -71,7 +71,7 @@ static const ADCConversionGroup adcgrpcfg = {
|
||||||
* the active state is a logic one.
|
* the active state is a logic one.
|
||||||
*/
|
*/
|
||||||
static PWMConfig pwmcfg = {
|
static PWMConfig pwmcfg = {
|
||||||
10000, /* 10KHz PWM clock frequency. */
|
10000, /* 10kHz PWM clock frequency. */
|
||||||
10000, /* PWM period 1S (in ticks). */
|
10000, /* PWM period 1S (in ticks). */
|
||||||
pwmpcb,
|
pwmpcb,
|
||||||
{
|
{
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -56,7 +56,7 @@ static bool_t fs_ready = FALSE;
|
||||||
/* Maximum speed SPI configuration (18MHz, CPHA=0, CPOL=0, MSb first).*/
|
/* Maximum speed SPI configuration (18MHz, CPHA=0, CPOL=0, MSb first).*/
|
||||||
static SPIConfig hs_spicfg = {NULL, IOPORT2, GPIOB_SPI2NSS, 0};
|
static SPIConfig hs_spicfg = {NULL, IOPORT2, GPIOB_SPI2NSS, 0};
|
||||||
|
|
||||||
/* Low speed SPI configuration (281.250KHz, CPHA=0, CPOL=0, MSb first).*/
|
/* Low speed SPI configuration (281.250kHz, CPHA=0, CPOL=0, MSb first).*/
|
||||||
static SPIConfig ls_spicfg = {NULL, IOPORT2, GPIOB_SPI2NSS,
|
static SPIConfig ls_spicfg = {NULL, IOPORT2, GPIOB_SPI2NSS,
|
||||||
SPI_CR1_BR_2 | SPI_CR1_BR_1};
|
SPI_CR1_BR_2 | SPI_CR1_BR_1};
|
||||||
|
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -74,7 +74,7 @@ static const ADCConversionGroup adcgrpcfg = {
|
||||||
* the active state is a logic one.
|
* the active state is a logic one.
|
||||||
*/
|
*/
|
||||||
static PWMConfig pwmcfg = {
|
static PWMConfig pwmcfg = {
|
||||||
10000, /* 10KHz PWM clock frequency. */
|
10000, /* 10kHz PWM clock frequency. */
|
||||||
10000, /* PWM period 1S (in ticks). */
|
10000, /* PWM period 1S (in ticks). */
|
||||||
pwmpcb,
|
pwmpcb,
|
||||||
{
|
{
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -73,7 +73,7 @@ static const ADCConversionGroup adcgrpcfg = {
|
||||||
* the active state is a logic one.
|
* the active state is a logic one.
|
||||||
*/
|
*/
|
||||||
static PWMConfig pwmcfg = {
|
static PWMConfig pwmcfg = {
|
||||||
10000, /* 10KHz PWM clock frequency. */
|
10000, /* 10kHz PWM clock frequency. */
|
||||||
10000, /* PWM period 1S (in ticks). */
|
10000, /* PWM period 1S (in ticks). */
|
||||||
pwmpcb,
|
pwmpcb,
|
||||||
{
|
{
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
Options: -O2 -fomit-frame-pointer
|
Options: -O2 -fomit-frame-pointer
|
||||||
Settings: MCLK=DCOCLK 750KHz
|
Settings: MCLK=DCOCLK 750kHz
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
* - Multipoint network drivers.
|
* - Multipoint network drivers.
|
||||||
* - Serial protocol decoders.
|
* - Serial protocol decoders.
|
||||||
* .
|
* .
|
||||||
* If your application requires a synchronoyus buffered driver then
|
* If your application requires a synchronous buffered driver then
|
||||||
* the @ref SERIAL should be used instead.
|
* the @ref SERIAL should be used instead.
|
||||||
* @pre In order to use the UART driver the @p HAL_USE_UART option
|
* @pre In order to use the UART driver the @p HAL_USE_UART option
|
||||||
* must be enabled in @p halconf.h.
|
* must be enabled in @p halconf.h.
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -153,7 +153,7 @@ void ext_lld_init(void) {
|
||||||
|
|
||||||
#if (SAM7_PLATFORM == SAM7X128) || (SAM7_PLATFORM == SAM7X256) || \
|
#if (SAM7_PLATFORM == SAM7X128) || (SAM7_PLATFORM == SAM7X256) || \
|
||||||
(SAM7_PLATFORM == SAM7X512)
|
(SAM7_PLATFORM == SAM7X512)
|
||||||
/* Aame for PIOB.*/
|
/* Same for PIOB.*/
|
||||||
extObjectInit(&EXTDB);
|
extObjectInit(&EXTDB);
|
||||||
EXTDB.pio = AT91C_BASE_PIOB;
|
EXTDB.pio = AT91C_BASE_PIOB;
|
||||||
EXTDB.pid = AT91C_ID_PIOB;
|
EXTDB.pid = AT91C_ID_PIOB;
|
||||||
|
|
|
@ -331,7 +331,7 @@ msg_t max_lld_get_transmit_descriptor(MACDriver *macp,
|
||||||
* @brief Writes to a transmit descriptor's stream.
|
* @brief Writes to a transmit descriptor's stream.
|
||||||
*
|
*
|
||||||
* @param[in] tdp pointer to a @p MACTransmitDescriptor structure
|
* @param[in] tdp pointer to a @p MACTransmitDescriptor structure
|
||||||
* @param[in] buf pointer to the buffer cointaining the data to be
|
* @param[in] buf pointer to the buffer containing the data to be
|
||||||
* written
|
* written
|
||||||
* @param[in] size number of bytes to be written
|
* @param[in] size number of bytes to be written
|
||||||
* @return The number of bytes written into the descriptor's
|
* @return The number of bytes written into the descriptor's
|
||||||
|
|
|
@ -77,7 +77,7 @@ void hal_lld_init(void) {
|
||||||
|
|
||||||
/* Optimal crossbar settings. The DMA priority is placed above the CPU
|
/* Optimal crossbar settings. The DMA priority is placed above the CPU
|
||||||
priority in order to not starve I/O activities while the CPU is
|
priority in order to not starve I/O activities while the CPU is
|
||||||
excuting tight loops (FLASH and SRAM slave ports only).
|
executing tight loops (FLASH and SRAM slave ports only).
|
||||||
The SRAM is parked on the load/store port, for some unknown reason it
|
The SRAM is parked on the load/store port, for some unknown reason it
|
||||||
is defaulted on the instructions port and this kills performance.*/
|
is defaulted on the instructions port and this kills performance.*/
|
||||||
XBAR.SGPCR3.B.PARK = 4; /* RAM slave on load/store port.*/
|
XBAR.SGPCR3.B.PARK = 4; /* RAM slave on load/store port.*/
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
RCC_AHB1ENR_GPIOIEN)
|
RCC_AHB1ENR_GPIOIEN)
|
||||||
#define AHB1_LPEN_MASK AHB1_EN_MASK
|
#define AHB1_LPEN_MASK AHB1_EN_MASK
|
||||||
#else
|
#else
|
||||||
#error "missing or usupported platform for GPIOv2 PAL driver"
|
#error "missing or unsupported platform for GPIOv2 PAL driver"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -195,7 +195,7 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
uint32_t mode:1;
|
uint32_t mode:1;
|
||||||
/**
|
/**
|
||||||
* @brief Filter sclae.
|
* @brief Filter scale.
|
||||||
* @note This bit represent the CAN_FS1R register bit associated to this
|
* @note This bit represent the CAN_FS1R register bit associated to this
|
||||||
* filter (0=16 bits mode, 1=32 bits mode).
|
* filter (0=16 bits mode, 1=32 bits mode).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -482,7 +482,7 @@ void sdc_lld_stop(SDCDriver *sdcp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Starts the SDIO clock and sets it to init mode (400KHz or less).
|
* @brief Starts the SDIO clock and sets it to init mode (400kHz or less).
|
||||||
*
|
*
|
||||||
* @param[in] sdcp pointer to the @p SDCDriver object
|
* @param[in] sdcp pointer to the @p SDCDriver object
|
||||||
*
|
*
|
||||||
|
@ -491,7 +491,7 @@ void sdc_lld_stop(SDCDriver *sdcp) {
|
||||||
void sdc_lld_start_clk(SDCDriver *sdcp) {
|
void sdc_lld_start_clk(SDCDriver *sdcp) {
|
||||||
|
|
||||||
(void)sdcp;
|
(void)sdcp;
|
||||||
/* Initial clock setting: 400KHz, 1bit mode.*/
|
/* Initial clock setting: 400kHz, 1bit mode.*/
|
||||||
SDIO->CLKCR = STM32_SDIO_DIV_LS;
|
SDIO->CLKCR = STM32_SDIO_DIV_LS;
|
||||||
SDIO->POWER |= SDIO_POWER_PWRCTRL_0 | SDIO_POWER_PWRCTRL_1;
|
SDIO->POWER |= SDIO_POWER_PWRCTRL_0 | SDIO_POWER_PWRCTRL_1;
|
||||||
SDIO->CLKCR |= SDIO_CLKCR_CLKEN;
|
SDIO->CLKCR |= SDIO_CLKCR_CLKEN;
|
||||||
|
|
|
@ -395,7 +395,7 @@
|
||||||
* @section stm32f1xx_rcc_2 STM32F1xx RCC driver implementation features
|
* @section stm32f1xx_rcc_2 STM32F1xx RCC driver implementation features
|
||||||
* - Peripherals reset.
|
* - Peripherals reset.
|
||||||
* - Peripherals clock enable.
|
* - Peripherals clock enable.
|
||||||
* - Periplerals clock disable.
|
* - Peripherals clock disable.
|
||||||
* .
|
* .
|
||||||
* @ingroup STM32F1xx_PLATFORM_DRIVERS
|
* @ingroup STM32F1xx_PLATFORM_DRIVERS
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
* drivers to coordinate the access to the resource.
|
* drivers to coordinate the access to the resource.
|
||||||
* @note The DMA ISR handlers are all declared into this module because
|
* @note The DMA ISR handlers are all declared into this module because
|
||||||
* sharing, the various device drivers can associate a callback to
|
* sharing, the various device drivers can associate a callback to
|
||||||
* IRSs when allocating streams.
|
* ISRs when allocating streams.
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -313,7 +313,7 @@
|
||||||
* @section stm32f2xx_rcc_2 STM32F2xx RCC driver implementation features
|
* @section stm32f2xx_rcc_2 STM32F2xx RCC driver implementation features
|
||||||
* - Peripherals reset.
|
* - Peripherals reset.
|
||||||
* - Peripherals clock enable.
|
* - Peripherals clock enable.
|
||||||
* - Periplerals clock disable.
|
* - Peripherals clock disable.
|
||||||
* .
|
* .
|
||||||
* @ingroup STM32F2xx_PLATFORM_DRIVERS
|
* @ingroup STM32F2xx_PLATFORM_DRIVERS
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
* drivers to coordinate the access to the resource.
|
* drivers to coordinate the access to the resource.
|
||||||
* @note The DMA ISR handlers are all declared into this module because
|
* @note The DMA ISR handlers are all declared into this module because
|
||||||
* sharing, the various device drivers can associate a callback to
|
* sharing, the various device drivers can associate a callback to
|
||||||
* IRSs when allocating streams.
|
* ISRs when allocating streams.
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -313,7 +313,7 @@
|
||||||
* @section stm32f4xx_rcc_2 STM32F4xx RCC driver implementation features
|
* @section stm32f4xx_rcc_2 STM32F4xx RCC driver implementation features
|
||||||
* - Peripherals reset.
|
* - Peripherals reset.
|
||||||
* - Peripherals clock enable.
|
* - Peripherals clock enable.
|
||||||
* - Periplerals clock disable.
|
* - Peripherals clock disable.
|
||||||
* .
|
* .
|
||||||
* @ingroup STM32F4xx_PLATFORM_DRIVERS
|
* @ingroup STM32F4xx_PLATFORM_DRIVERS
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
* drivers to coordinate the access to the resource.
|
* drivers to coordinate the access to the resource.
|
||||||
* @note The DMA ISR handlers are all declared into this module because
|
* @note The DMA ISR handlers are all declared into this module because
|
||||||
* sharing, the various device drivers can associate a callback to
|
* sharing, the various device drivers can associate a callback to
|
||||||
* IRSs when allocating streams.
|
* ISRs when allocating streams.
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -156,10 +156,10 @@
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define STM32_MSIRANGE_MASK (7 << 13) /**< MSIRANGE field mask. */
|
#define STM32_MSIRANGE_MASK (7 << 13) /**< MSIRANGE field mask. */
|
||||||
#define STM32_MSIRANGE_64K (0 << 13) /**< 64KHz nominal. */
|
#define STM32_MSIRANGE_64K (0 << 13) /**< 64kHz nominal. */
|
||||||
#define STM32_MSIRANGE_128K (1 << 13) /**< 128KHz nominal. */
|
#define STM32_MSIRANGE_128K (1 << 13) /**< 128kHz nominal. */
|
||||||
#define STM32_MSIRANGE_256K (2 << 13) /**< 256KHz nominal. */
|
#define STM32_MSIRANGE_256K (2 << 13) /**< 256kHz nominal. */
|
||||||
#define STM32_MSIRANGE_512K (3 << 13) /**< 512KHz nominal. */
|
#define STM32_MSIRANGE_512K (3 << 13) /**< 512kHz nominal. */
|
||||||
#define STM32_MSIRANGE_1M (4 << 13) /**< 1MHz nominal. */
|
#define STM32_MSIRANGE_1M (4 << 13) /**< 1MHz nominal. */
|
||||||
#define STM32_MSIRANGE_2M (5 << 13) /**< 2MHz nominal. */
|
#define STM32_MSIRANGE_2M (5 << 13) /**< 2MHz nominal. */
|
||||||
#define STM32_MSIRANGE_4M (6 << 13) /**< 4MHz nominal */
|
#define STM32_MSIRANGE_4M (6 << 13) /**< 4MHz nominal */
|
||||||
|
@ -684,7 +684,7 @@
|
||||||
#error "impossible to activate LSE"
|
#error "impossible to activate LSE"
|
||||||
#endif
|
#endif
|
||||||
#if (STM32_LSECLK < 1000) || (STM32_LSECLK > 1000000)
|
#if (STM32_LSECLK < 1000) || (STM32_LSECLK > 1000000)
|
||||||
#error "STM32_LSECLK outside acceptable range (1...1000KHz)"
|
#error "STM32_LSECLK outside acceptable range (1...1000kHz)"
|
||||||
#endif
|
#endif
|
||||||
#else /* !STM32_LSE_ENABLED */
|
#else /* !STM32_LSE_ENABLED */
|
||||||
#if STM_RTCCLK == STM32_LSECLK
|
#if STM_RTCCLK == STM32_LSECLK
|
||||||
|
|
|
@ -312,7 +312,7 @@
|
||||||
* @section stm32l1xx_rcc_2 STM32L1xx RCC driver implementation features
|
* @section stm32l1xx_rcc_2 STM32L1xx RCC driver implementation features
|
||||||
* - Peripherals reset.
|
* - Peripherals reset.
|
||||||
* - Peripherals clock enable.
|
* - Peripherals clock enable.
|
||||||
* - Periplerals clock disable.
|
* - Peripherals clock disable.
|
||||||
* .
|
* .
|
||||||
* @ingroup STM32L1xx_PLATFORM_DRIVERS
|
* @ingroup STM32L1xx_PLATFORM_DRIVERS
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
* drivers to coordinate the access to the resource.
|
* drivers to coordinate the access to the resource.
|
||||||
* @note The DMA ISR handlers are all declared into this module because
|
* @note The DMA ISR handlers are all declared into this module because
|
||||||
* sharing, the various device drivers can associate a callback to
|
* sharing, the various device drivers can associate a callback to
|
||||||
* IRSs when allocating streams.
|
* ISRs when allocating streams.
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ void hal_lld_init(void) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Clocks initially all disabled, note the boot ROM clock is disabled
|
/* Clocks initially all disabled, note the boot ROM clock is disabled
|
||||||
because the boot loader is no more required and it draws pretious uAs.*/
|
because the boot loader is no more required and it draws precious uAs.*/
|
||||||
CLK->PCKENR1 = 0;
|
CLK->PCKENR1 = 0;
|
||||||
CLK->PCKENR2 = 0;
|
CLK->PCKENR2 = 0;
|
||||||
CLK->PCKENR3 = 0;
|
CLK->PCKENR3 = 0;
|
||||||
|
|
|
@ -103,7 +103,7 @@ static uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Inserion monitor timer callback function.
|
* @brief Insertion monitor timer callback function.
|
||||||
*
|
*
|
||||||
* @param[in] p pointer to the @p MMCDriver object
|
* @param[in] p pointer to the @p MMCDriver object
|
||||||
*
|
*
|
||||||
|
|
|
@ -299,7 +299,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
* @note Attempts are performed at 10mS intevals.
|
* @note Attempts are performed at 10mS intervals.
|
||||||
*/
|
*/
|
||||||
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
#define SDC_INIT_RETRY 100
|
#define SDC_INIT_RETRY 100
|
||||||
|
|
|
@ -121,7 +121,7 @@ msg_t max_lld_get_transmit_descriptor(MACDriver *macp,
|
||||||
* @brief Writes to a transmit descriptor's stream.
|
* @brief Writes to a transmit descriptor's stream.
|
||||||
*
|
*
|
||||||
* @param[in] tdp pointer to a @p MACTransmitDescriptor structure
|
* @param[in] tdp pointer to a @p MACTransmitDescriptor structure
|
||||||
* @param[in] buf pointer to the buffer cointaining the data to be
|
* @param[in] buf pointer to the buffer containing the data to be
|
||||||
* written
|
* written
|
||||||
* @param[in] size number of bytes to be written
|
* @param[in] size number of bytes to be written
|
||||||
* @return The number of bytes written into the descriptor's
|
* @return The number of bytes written into the descriptor's
|
||||||
|
|
|
@ -324,7 +324,7 @@ typedef struct {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Adds status flags to the channel's mask.
|
* @brief Adds status flags to the channel's mask.
|
||||||
* @details This function is usually called from the I/O ISTs in order to
|
* @details This function is usually called from the I/O ISRs in order to
|
||||||
* notify I/O conditions such as data events, errors, signal
|
* notify I/O conditions such as data events, errors, signal
|
||||||
* changes etc.
|
* changes etc.
|
||||||
*
|
*
|
||||||
|
|
|
@ -209,7 +209,7 @@ extern "C" {
|
||||||
#endif /* !defined(PORT_OPTIMIZED_DOYIELDS) */
|
#endif /* !defined(PORT_OPTIMIZED_DOYIELDS) */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Inlineable preemption code.
|
* @brief Inline-able preemption code.
|
||||||
* @details This is the common preemption code, this function must be invoked
|
* @details This is the common preemption code, this function must be invoked
|
||||||
* exclusively from the port layer.
|
* exclusively from the port layer.
|
||||||
*
|
*
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
#define S2ST(sec) ((systime_t)((sec) * CH_FREQUENCY))
|
#define S2ST(sec) ((systime_t)((sec) * CH_FREQUENCY))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Milliseconds t0 system ticks.
|
* @brief Milliseconds to system ticks.
|
||||||
* @details Converts from milliseconds to system ticks number.
|
* @details Converts from milliseconds to system ticks number.
|
||||||
* @note The result is rounded upward to the next tick boundary.
|
* @note The result is rounded upward to the next tick boundary.
|
||||||
*
|
*
|
||||||
|
@ -147,7 +147,7 @@ extern VTList vtlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns TRUE if the speciified timer is armed.
|
* @brief Returns TRUE if the specified timer is armed.
|
||||||
*
|
*
|
||||||
* @iclass
|
* @iclass
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -383,7 +383,7 @@ eventmask_t chEvtWaitAll(eventmask_t mask) {
|
||||||
* This means that Event Listeners with a lower event identifier have
|
* This means that Event Listeners with a lower event identifier have
|
||||||
* an higher priority.
|
* an higher priority.
|
||||||
*
|
*
|
||||||
* @param[in] mask mask of the event flagss that the function should wait
|
* @param[in] mask mask of the event flags that the function should wait
|
||||||
* for, @p ALL_EVENTS enables all the events
|
* for, @p ALL_EVENTS enables all the events
|
||||||
* @param[in] time the number of ticks before the operation timeouts,
|
* @param[in] time the number of ticks before the operation timeouts,
|
||||||
* the following special values are allowed:
|
* the following special values are allowed:
|
||||||
|
|
|
@ -124,14 +124,14 @@ void chMtxLockS(Mutex *mp) {
|
||||||
chDbgCheckClassS();
|
chDbgCheckClassS();
|
||||||
chDbgCheck(mp != NULL, "chMtxLockS");
|
chDbgCheck(mp != NULL, "chMtxLockS");
|
||||||
|
|
||||||
/* Ia the mutex already locked? */
|
/* Is the mutex already locked? */
|
||||||
if (mp->m_owner != NULL) {
|
if (mp->m_owner != NULL) {
|
||||||
/* Priority inheritance protocol; explores the thread-mutex dependencies
|
/* Priority inheritance protocol; explores the thread-mutex dependencies
|
||||||
boosting the priority of all the affected threads to equal the priority
|
boosting the priority of all the affected threads to equal the priority
|
||||||
of the running thread requesting the mutex.*/
|
of the running thread requesting the mutex.*/
|
||||||
Thread *tp = mp->m_owner;
|
Thread *tp = mp->m_owner;
|
||||||
/* Does the running thread have higher priority than the mutex
|
/* Does the running thread have higher priority than the mutex
|
||||||
ownning thread? */
|
owning thread? */
|
||||||
while (tp->p_prio < ctp->p_prio) {
|
while (tp->p_prio < ctp->p_prio) {
|
||||||
/* Make priority of thread tp match the running thread's priority.*/
|
/* Make priority of thread tp match the running thread's priority.*/
|
||||||
tp->p_prio = ctp->p_prio;
|
tp->p_prio = ctp->p_prio;
|
||||||
|
@ -265,7 +265,7 @@ Mutex *chMtxUnlock(void) {
|
||||||
chDbgAssert(ctp->p_mtxlist->m_owner == ctp,
|
chDbgAssert(ctp->p_mtxlist->m_owner == ctp,
|
||||||
"chMtxUnlock(), #2",
|
"chMtxUnlock(), #2",
|
||||||
"ownership failure");
|
"ownership failure");
|
||||||
/* Removes the top Mutex from the Threads's owned mutexes list and matk it
|
/* Removes the top Mutex from the Thread's owned mutexes list and matk it
|
||||||
as not owned.*/
|
as not owned.*/
|
||||||
ump = ctp->p_mtxlist;
|
ump = ctp->p_mtxlist;
|
||||||
ctp->p_mtxlist = ump->m_next;
|
ctp->p_mtxlist = ump->m_next;
|
||||||
|
|
|
@ -153,7 +153,7 @@ void _thread_memfill(uint8_t *startp, uint8_t *endp, uint8_t v) {
|
||||||
*/
|
*/
|
||||||
Thread *chThdCreateI(void *wsp, size_t size,
|
Thread *chThdCreateI(void *wsp, size_t size,
|
||||||
tprio_t prio, tfunc_t pf, void *arg) {
|
tprio_t prio, tfunc_t pf, void *arg) {
|
||||||
/* Thread structure is layed out in the lower part of the thread workspace */
|
/* Thread structure is laid out in the lower part of the thread workspace.*/
|
||||||
Thread *tp = wsp;
|
Thread *tp = wsp;
|
||||||
|
|
||||||
chDbgCheckClassI();
|
chDbgCheckClassI();
|
||||||
|
|
|
@ -466,7 +466,7 @@
|
||||||
* @brief Threads initialization hook.
|
* @brief Threads initialization hook.
|
||||||
* @details User initialization code added to the @p chThdInit() API.
|
* @details User initialization code added to the @p chThdInit() API.
|
||||||
*
|
*
|
||||||
* @note It is invoked from within @p chThdInit() and implicitily from all
|
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||||
* the threads creation APIs.
|
* the threads creation APIs.
|
||||||
*/
|
*/
|
||||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -83,7 +83,7 @@ void port_unlock_from_isr(void) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
*/
|
*/
|
||||||
void port_disable(void) {
|
void port_disable(void) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -386,7 +386,7 @@ struct context {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
* @note In this port it disables both the IRQ and FIQ sources.
|
* @note In this port it disables both the IRQ and FIQ sources.
|
||||||
* @note Implements a workaround for spurious interrupts taken from the NXP
|
* @note Implements a workaround for spurious interrupts taken from the NXP
|
||||||
* LPC214x datasheet.
|
* LPC214x datasheet.
|
||||||
|
|
|
@ -421,7 +421,7 @@ struct context {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
* @note In this port it disables all the interrupt sources by raising
|
* @note In this port it disables all the interrupt sources by raising
|
||||||
* the priority mask to level 0.
|
* the priority mask to level 0.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -281,7 +281,7 @@ struct context {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
* @note Implemented as global interrupt disable.
|
* @note Implemented as global interrupt disable.
|
||||||
*/
|
*/
|
||||||
#define port_disable() asm volatile ("cli" : : : "memory")
|
#define port_disable() asm volatile ("cli" : : : "memory")
|
||||||
|
|
|
@ -254,7 +254,7 @@ struct context {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
* @note Implemented as global interrupt disable.
|
* @note Implemented as global interrupt disable.
|
||||||
*/
|
*/
|
||||||
#define port_disable() asm volatile ("dint" : : : "memory")
|
#define port_disable() asm volatile ("dint" : : : "memory")
|
||||||
|
|
|
@ -409,7 +409,7 @@ struct context {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
* @note In this port it disables all the interrupt sources by raising
|
* @note In this port it disables all the interrupt sources by raising
|
||||||
* the priority mask to level 0.
|
* the priority mask to level 0.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -263,7 +263,7 @@ struct stm8_startctx {
|
||||||
/**
|
/**
|
||||||
* @brief Disables all the interrupt sources.
|
* @brief Disables all the interrupt sources.
|
||||||
* @note Implemented as global interrupts disable.
|
* @note Implemented as global interrupts disable.
|
||||||
* @note Of course non maskable interrupt sources are not included.
|
* @note Of course non-maskable interrupt sources are not included.
|
||||||
*/
|
*/
|
||||||
#define port_disable() _sim_()
|
#define port_disable() _sim_()
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue