Skip to content

Commit

Permalink
cpu/cc2538: fix doxygen grouping warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
  • Loading branch information
jeandudey committed Sep 11, 2021
1 parent 51bab0a commit 5750dc0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 33 deletions.
26 changes: 12 additions & 14 deletions cpu/cc2538/include/cc2538.h
Expand Up @@ -26,9 +26,10 @@ extern "C" {
/* ************************************************************************** */
/* CMSIS DEFINITIONS FOR CC2538 */
/* ************************************************************************** */
/** @addtogroup CC2538_cmsis CMSIS Definitions */
/*@{*/

/**
* @addtogroup CC2538_cmsis CMSIS Definitions
* @{
*/
/** Interrupt Number Definition */
typedef enum IRQn
{
Expand Down Expand Up @@ -86,7 +87,8 @@ typedef enum IRQn
PERIPH_COUNT_IRQn = (MACTIMER_IRQn + 1) /**< Number of peripheral IDs */
} IRQn_Type;

/** @name Cortex-M3 core interrupt handlers
/**
* @name Cortex-M3 core interrupt handlers
* @{
*/
void Reset_Handler(void); /**< Reset handler */
Expand All @@ -113,26 +115,23 @@ void SysTick_Handler(void); /**< SysTick handler */
/**
* @brief CMSIS includes
*/

#include <core_cm3.h>

/*@}*/
/** @} */

#define IEEE_ADDR_MSWORD ( *(const uint32_t*)0x00280028 ) /**< Most-significant 32 bits of the IEEE address */
#define IEEE_ADDR_LSWORD ( *(const uint32_t*)0x0028002c ) /**< Least-significant 32 bits of the IEEE address */

typedef volatile uint32_t cc2538_reg_t; /**< Least-significant 32 bits of the IEEE address */

/** @addtogroup cpu_specific_Peripheral_memory_map
* @{
*/

/**
* @addtogroup cpu_specific_Peripheral_memory_map
* @{
*/
#define FLASH_BASE 0x00200000 /**< FLASH base address */
#define SRAM_BASE 0x20000000 /**< SRAM base address */
#define PERIPH_BASE 0x40000000 /**< Peripheral base address */

#define SRAM_BB_BASE 0x22000000 /**< SRAM base address in the bit-band region */

/** @} */

/** @name CC2538 Special Function Registers
Expand Down Expand Up @@ -811,5 +810,4 @@ typedef volatile uint32_t cc2538_reg_t; /**< Least-significant 32 bits of the IE
#endif

#endif /* CC2538_H */

/*@}*/
/** @} */
3 changes: 1 addition & 2 deletions cpu/cc2538/include/cc2538_gptimer.h
Expand Up @@ -89,5 +89,4 @@ typedef struct {
#endif

#endif /* CC2538_GPTIMER_H */

/* @} */
/** @} */
29 changes: 15 additions & 14 deletions cpu/cc2538/include/cc2538_rf.h
Expand Up @@ -136,7 +136,7 @@ enum {
FSM_STATE_TX_CALIBRATION = 32,
};

/*
/**
* @brief RFCORE_XREG_RFERRM bits
*/
enum {
Expand All @@ -149,26 +149,26 @@ enum {
NLOCK = BIT(0),
};

/*
* @brief RFCORE_XREG_FRMCTRL0 bits
*/
/**
* @brief RFCORE_XREG_FRMCTRL0 bits
*/
enum {
SET_RXENMASK_ON_TX = BIT(0),
IGNORE_TX_UNDERF = BIT(1),
PENDING_OR = BIT(2),
};

/*
* @brief RFCORE_XREG_FRMCTRL1 bits
*/
/**
* @brief RFCORE_XREG_FRMCTRL1 bits
*/
enum {
ENERGY_SCAN = BIT(4),
AUTOACK = BIT(5),
AUTOCRC = BIT(6),
APPEND_DATA_MODE = BIT(7),
};

/*
/**
* @brief RFCORE_XREG_RFIRQM0 / RFCORE_XREG_RFIRQF0 bits
*/
enum {
Expand All @@ -182,7 +182,7 @@ enum {
RXMASKZERO = BIT(7),
};

/*
/**
* @brief RFCORE_XREG_RFIRQM1 / RFCORE_XREG_RFIRQF1 bits
*/
enum {
Expand All @@ -194,14 +194,18 @@ enum {
CSP_WAIT = BIT(5),
};

/* Values for use with CCTEST_OBSSELx registers: */
/**
* @brief Values for use with CCTEST_OBSSELx registers.
*/
enum {
rfc_obs_sig0 = 0,
rfc_obs_sig1 = 1,
rfc_obs_sig2 = 2,
};

/* Values for RFCORE_XREG_RFC_OBS_CTRLx registers: */
/**
* @brief Values for RFCORE_XREG_RFC_OBS_CTRLx registers.
*/
enum {
constant_value_0 = 0x00, /**< Constant value 0 */
constant_value_1 = 0x01, /**< Constant value 1*/
Expand Down Expand Up @@ -248,8 +252,6 @@ enum {
disabled = 0xff, /**< disabled */
};

/** @} */

/**
* @name RF CORE observable signals settings
*/
Expand Down Expand Up @@ -278,7 +280,6 @@ enum {
(CONFIG_CC2538_RF_OBS_SIG_0_PCX > 7))
#error "CONFIG_CC2538_RF_OBS_SIG_X_PCX must be between 0-7 (PC0-PC7)"
#endif
/** @} */

/**
* @brief Device descriptor for CC2538 transceiver
Expand Down
3 changes: 0 additions & 3 deletions cpu/cc2538/include/cc2538_rfcore.h
Expand Up @@ -276,7 +276,4 @@ enum {
#endif

#endif /* CC2538_RFCORE_H */

/** @} */
/** @} */
/** @} */

0 comments on commit 5750dc0

Please sign in to comment.