summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu
diff options
context:
space:
mode:
authorAndreas Dachsberger <andreas.dachsberger@embedded-brains.de>2019-03-26 09:50:42 +0100
committerAndreas Dachsberger <andreas.dachsberger@embedded-brains.de>2019-04-01 12:02:30 +0200
commit9fa3561b2d7fadd104e16196221537c854b2ed11 (patch)
tree8e9b0a893caf44663785d420532e6c4ee8a1f399 /cpukit/score/cpu
parentdoxygen: score: Add i386 CPU architecture group (diff)
downloadrtems-9fa3561b2d7fadd104e16196221537c854b2ed11.tar.bz2
doxygen: score: Add lm32 CPU architecture group
Update #3706.
Diffstat (limited to 'cpukit/score/cpu')
-rw-r--r--cpukit/score/cpu/lm32/include/rtems/asm.h11
-rw-r--r--cpukit/score/cpu/lm32/include/rtems/score/cpu.h45
-rw-r--r--cpukit/score/cpu/lm32/include/rtems/score/cpuimpl.h11
3 files changed, 53 insertions, 14 deletions
diff --git a/cpukit/score/cpu/lm32/include/rtems/asm.h b/cpukit/score/cpu/lm32/include/rtems/asm.h
index 15046df81c..312602491c 100644
--- a/cpukit/score/cpu/lm32/include/rtems/asm.h
+++ b/cpukit/score/cpu/lm32/include/rtems/asm.h
@@ -39,6 +39,15 @@
#include <rtems/score/cpuopts.h>
#include <rtems/score/lm32.h>
+/**
+ * @defgroup RTEMSScoreCPUlm32ASM lm32 Assembler Support
+ *
+ * @ingroup RTEMSScoreCPUlm32
+ *
+ * @brief LatticeMicro32 (lm32) Assembler Support
+ */
+/**@{**/
+
#ifndef __USER_LABEL_PREFIX__
/**
* Recent versions of GNU cpp define variables which indicate the
@@ -124,4 +133,6 @@
*/
#define EXTERN(sym) .globl SYM (sym)
+/**@}**/
+
#endif
diff --git a/cpukit/score/cpu/lm32/include/rtems/score/cpu.h b/cpukit/score/cpu/lm32/include/rtems/score/cpu.h
index 64983839b2..d00d40505f 100644
--- a/cpukit/score/cpu/lm32/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/lm32/include/rtems/score/cpu.h
@@ -185,7 +185,7 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/**
- * @ingroup CPUInterrupt
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the
* CPU interrupt levels is defined by the routine @ref _CPU_ISR_Set_level.
@@ -209,7 +209,9 @@ extern "C" {
/* may need to put some structures here. */
/**
- * @defgroup CPUContext Processor Dependent Context Management
+ * @defgroup RTEMSScoreCPUlm32Context Processor Dependent Context Management
+ *
+ * @ingroup RTEMSScoreCPUlm32
*
* From the highest level viewpoint, there are 2 types of context to save.
*
@@ -336,9 +338,12 @@ extern Context_Control_fp _CPU_Null_fp_context;
/** @} */
/**
- * @defgroup CPUInterrupt Processor Dependent Interrupt Management
+ * @defgroup RTEMSScoreCPUlm32Interrupt Processor Dependent Interrupt Management
+ *
+ * @ingroup RTEMSScoreCPUlm32
*/
-/**@{**/
+/** @{ **/
+/** @} **/
/*
* Nothing prevents the porter from declaring more CPU specific variables.
@@ -351,7 +356,7 @@ extern Context_Control_fp _CPU_Null_fp_context;
/* XXX: if needed, put more variables here */
/**
- * @ingroup CPUContext
+ * @addtogroup RTEMSScoreCPUlm32Context
* The size of the floating point context area. On some CPUs this
* will not be a "sizeof" because the format of the floating point
* area is not defined -- only the size is. This is usually on
@@ -364,6 +369,7 @@ extern Context_Control_fp _CPU_Null_fp_context;
#define CPU_CONTEXT_FP_SIZE sizeof( Context_Control_fp )
/**
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
* Amount of extra stack (above minimum stack size) required by
* MPCI receive server thread. Remember that in a multiprocessor
* system this thread must exist and be able to process all directives.
@@ -375,6 +381,7 @@ extern Context_Control_fp _CPU_Null_fp_context;
#define CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK 0
/**
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
* This defines the number of entries in the @ref _ISR_Vector_table managed
* by RTEMS.
*
@@ -385,20 +392,21 @@ extern Context_Control_fp _CPU_Null_fp_context;
#define CPU_INTERRUPT_NUMBER_OF_VECTORS 32
/**
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
* This defines the highest interrupt vector number for this port.
*/
#define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER (CPU_INTERRUPT_NUMBER_OF_VECTORS - 1)
/**
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
* This is defined if the port has a special way to report the ISR nesting
* level. Most ports maintain the variable @a _ISR_Nest_level.
*/
#define CPU_PROVIDES_ISR_IS_IN_PROGRESS FALSE
-/** @} */
/**
- * @ingroup CPUContext
+ * @addtogroup RTEMSScoreCPUlm32Context
* Should be large enough to run all RTEMS tests. This ensures
* that a "reasonable" small application should not have any problems.
*
@@ -466,7 +474,7 @@ extern Context_Control_fp _CPU_Null_fp_context;
*/
/**
- * @addtogroup CPUInterrupt
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
*/
/**@{**/
@@ -565,7 +573,7 @@ uint32_t _CPU_ISR_Get_level( void );
/* Context handler macros */
/**
- * @ingroup CPUContext
+ * @addtogroup RTEMSScoreCPUlm32Context
* Initialize the context to a state suitable for starting a
* task after a context restore operation. Generally, this
* involves:
@@ -686,7 +694,7 @@ extern char _gp[];
void _CPU_Initialize(void);
/**
- * @addtogroup CPUInterrupt
+ * @addtogroup RTEMSScoreCPUlm32Interrupt
*/
/**@{**/
@@ -714,7 +722,7 @@ void _CPU_ISR_install_vector(
void *_CPU_Thread_Idle_body( uintptr_t ignored );
/**
- * @ingroup CPUContext
+ * @addtogroup RTEMSScoreCPUlm32Context
* This routine switches from the run context to the heir context.
*
* @param[in] run points to the context of the currently executing task
@@ -730,7 +738,7 @@ void _CPU_Context_switch(
);
/**
- * @addtogroup CPUContext
+ * @addtogroup RTEMSScoreCPUlm32Context
*/
/**@{**/
@@ -792,7 +800,15 @@ typedef CPU_Interrupt_frame CPU_Exception_frame;
void _CPU_Exception_frame_print( const CPU_Exception_frame *frame );
/**
- * @ingroup CPUEndian
+ * @defgroup RTEMSScoreCPUlm32CPUEndian CPUEndian
+ *
+ * @ingroup RTEMSScoreCPUlm32
+ *
+ * @brief CPUEndian
+ */
+/** @{ */
+
+/**
* The following routine swaps the endian format of an unsigned int.
* It must be static because it is referenced indirectly.
*
@@ -835,7 +851,6 @@ static inline uint32_t CPU_swap_u32(
}
/**
- * @ingroup CPUEndian
* This routine swaps a 16 bir quantity.
*
* @param[in] value is the value to be swapped
@@ -846,6 +861,8 @@ static inline uint16_t CPU_swap_u16(uint16_t v)
return v << 8 | v >> 8;
}
+/** @} */
+
typedef uint32_t CPU_Counter_ticks;
uint32_t _CPU_Counter_frequency( void );
diff --git a/cpukit/score/cpu/lm32/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/lm32/include/rtems/score/cpuimpl.h
index 78b87ef981..ab43ddbf7d 100644
--- a/cpukit/score/cpu/lm32/include/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/lm32/include/rtems/score/cpuimpl.h
@@ -17,6 +17,15 @@
#include <rtems/score/cpu.h>
+/**
+ * @defgroup RTEMSScoreCPUlm32 LatticeMicro32 (lm32)
+ *
+ * @ingroup RTEMSScoreCPU
+ *
+ * @brief LatticeMicro32 (lm32) Architecture Support
+ */
+/** @{ */
+
#define CPU_PER_CPU_CONTROL_SIZE 0
#ifndef ASM
@@ -54,3 +63,5 @@ RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void )
#endif /* ASM */
#endif /* _RTEMS_SCORE_CPUIMPL_H */
+
+/** @} */