git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6294 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0f341a84ec
commit
7404ce9c28
|
@ -136,7 +136,6 @@ typedef uint64_t stkalign_t;
|
||||||
real declarations are inside the sub-headers being specific for the
|
real declarations are inside the sub-headers being specific for the
|
||||||
sub-architectures.*/
|
sub-architectures.*/
|
||||||
#if defined(__DOXYGEN__)
|
#if defined(__DOXYGEN__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Interrupt saved context.
|
* @brief Interrupt saved context.
|
||||||
* @details This structure represents the stack frame saved during a
|
* @details This structure represents the stack frame saved during a
|
||||||
|
|
|
@ -41,12 +41,17 @@
|
||||||
/* Derived constants and error checks. */
|
/* Derived constants and error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if (CH_CFG_ST_RESOLUTION != 16) && (CH_CFG_ST_RESOLUTION != 32)
|
||||||
|
#error "invalid CH_CFG_ST_RESOLUTION specified, must be 16 or 32"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CH_CFG_ST_FREQUENCY <= 0
|
#if CH_CFG_ST_FREQUENCY <= 0
|
||||||
#error "invalid CH_CFG_ST_FREQUENCY specified"
|
#error "invalid CH_CFG_ST_FREQUENCY specified, must be greated than zero"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CH_CFG_ST_TIMEDELTA < 0) || (CH_CFG_ST_TIMEDELTA == 1)
|
#if (CH_CFG_ST_TIMEDELTA < 0) || (CH_CFG_ST_TIMEDELTA == 1)
|
||||||
#error "invalid CH_CFG_ST_TIMEDELTA specified"
|
#error "invalid CH_CFG_ST_TIMEDELTA specified, must " \
|
||||||
|
"be zero or greater than one"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CH_CFG_ST_TIMEDELTA > 0) && (CH_CFG_TIME_QUANTUM > 0)
|
#if (CH_CFG_ST_TIMEDELTA > 0) && (CH_CFG_TIME_QUANTUM > 0)
|
||||||
|
|
|
@ -110,18 +110,32 @@
|
||||||
asm module.*/
|
asm module.*/
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
|
|
||||||
/* The following declarations are there just for Doxygen documentation, the
|
|
||||||
real declarations are inside the sub-headers being specific for the
|
|
||||||
sub-architectures.*/
|
|
||||||
#if defined(__DOXYGEN__)
|
|
||||||
/**
|
/**
|
||||||
* @brief Stack and memory alignment enforcement.
|
* @brief Type of system time.
|
||||||
|
*/
|
||||||
|
#if (CH_CFG_ST_RESOLUTION == 32) || defined(__DOXYGEN__)
|
||||||
|
typedef uint32_t systime_t;
|
||||||
|
#else
|
||||||
|
typedef uint16_t systime_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Type of a generic ARM register.
|
||||||
|
*/
|
||||||
|
typedef void *regarm_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Type of stack and memory alignment enforcement.
|
||||||
* @note In this architecture the stack alignment is enforced to 64 bits,
|
* @note In this architecture the stack alignment is enforced to 64 bits,
|
||||||
* 32 bits alignment is supported by hardware but deprecated by ARM,
|
* 32 bits alignment is supported by hardware but deprecated by ARM,
|
||||||
* the implementation choice is to not offer the option.
|
* the implementation choice is to not offer the option.
|
||||||
*/
|
*/
|
||||||
typedef uint64_t stkalign_t;
|
typedef uint64_t stkalign_t;
|
||||||
|
|
||||||
|
/* The following declarations are there just for Doxygen documentation, the
|
||||||
|
real declarations are inside the sub-headers being specific for the
|
||||||
|
sub-architectures.*/
|
||||||
|
#if defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief Interrupt saved context.
|
* @brief Interrupt saved context.
|
||||||
* @details This structure represents the stack frame saved during a
|
* @details This structure represents the stack frame saved during a
|
||||||
|
@ -138,6 +152,16 @@ struct port_extctx {};
|
||||||
struct port_intctx {};
|
struct port_intctx {};
|
||||||
#endif /* defined(__DOXYGEN__) */
|
#endif /* defined(__DOXYGEN__) */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Platform dependent part of the @p thread_t structure.
|
||||||
|
* @details In this port the structure just holds a pointer to the
|
||||||
|
* @p port_intctx structure representing the stack pointer
|
||||||
|
* at context switch time.
|
||||||
|
*/
|
||||||
|
struct context {
|
||||||
|
struct port_intctx *r13;
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* !defined(_FROM_ASM_) */
|
#endif /* !defined(_FROM_ASM_) */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -147,17 +147,9 @@
|
||||||
|
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Generic ARM register.
|
|
||||||
*/
|
|
||||||
typedef void *regarm_t;
|
|
||||||
|
|
||||||
/* The documentation of the following declarations is in chconf.h in order
|
/* The documentation of the following declarations is in chconf.h in order
|
||||||
to not have duplicated structure names into the documentation.*/
|
to not have duplicated structure names into the documentation.*/
|
||||||
#if !defined(__DOXYGEN__)
|
#if !defined(__DOXYGEN__)
|
||||||
|
|
||||||
typedef uint64_t stkalign_t;
|
|
||||||
|
|
||||||
struct port_extctx {
|
struct port_extctx {
|
||||||
regarm_t r0;
|
regarm_t r0;
|
||||||
regarm_t r1;
|
regarm_t r1;
|
||||||
|
@ -180,19 +172,8 @@ struct port_intctx {
|
||||||
regarm_t r7;
|
regarm_t r7;
|
||||||
regarm_t lr;
|
regarm_t lr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* !defined(__DOXYGEN__) */
|
#endif /* !defined(__DOXYGEN__) */
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Platform dependent part of the @p thread_t structure.
|
|
||||||
* @details In this port the structure just holds a pointer to the
|
|
||||||
* @p port_intctx structure representing the stack pointer
|
|
||||||
* at context switch time.
|
|
||||||
*/
|
|
||||||
struct context {
|
|
||||||
struct port_intctx *r13;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Module macros. */
|
/* Module macros. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -208,17 +208,9 @@
|
||||||
asm module.*/
|
asm module.*/
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Generic ARM register.
|
|
||||||
*/
|
|
||||||
typedef void *regarm_t;
|
|
||||||
|
|
||||||
/* The documentation of the following declarations is in chconf.h in order
|
/* The documentation of the following declarations is in chconf.h in order
|
||||||
to not have duplicated structure names into the documentation.*/
|
to not have duplicated structure names into the documentation.*/
|
||||||
#if !defined(__DOXYGEN__)
|
#if !defined(__DOXYGEN__)
|
||||||
|
|
||||||
typedef uint64_t stkalign_t;
|
|
||||||
|
|
||||||
struct port_extctx {
|
struct port_extctx {
|
||||||
regarm_t r0;
|
regarm_t r0;
|
||||||
regarm_t r1;
|
regarm_t r1;
|
||||||
|
@ -279,19 +271,8 @@ struct port_intctx {
|
||||||
regarm_t r11;
|
regarm_t r11;
|
||||||
regarm_t lr;
|
regarm_t lr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* !defined(__DOXYGEN__) */
|
#endif /* !defined(__DOXYGEN__) */
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Platform dependent part of the @p thread_t structure.
|
|
||||||
* @details In this port the structure just holds a pointer to the
|
|
||||||
* @p port_intctx structure representing the stack pointer
|
|
||||||
* at context switch time.
|
|
||||||
*/
|
|
||||||
struct context {
|
|
||||||
struct port_intctx *r13;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Module macros. */
|
/* Module macros. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -51,7 +51,6 @@
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
typedef uint32_t systime_t; /**< System time. */
|
|
||||||
typedef uint32_t rtcnt_t; /**< Realtime counter. */
|
typedef uint32_t rtcnt_t; /**< Realtime counter. */
|
||||||
typedef uint64_t rttime_t; /**< Time accumulator. */
|
typedef uint64_t rttime_t; /**< Time accumulator. */
|
||||||
typedef uint32_t syssts_t; /**< System status word. */
|
typedef uint32_t syssts_t; /**< System status word. */
|
||||||
|
|
Loading…
Reference in New Issue