<commit_before>/*
 * Copyright (C) 2016 <NAME>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @ingroup         cpu_cc26xx_cc13xx_definitions
 * @{
 *
 * @file
 * @brief           CC26xx/CC13xx WDT register definitions
 */

#ifndef CC26XX_CC13XX_WDT_H
#define CC26XX_CC13XX_WDT_H

#include <cc26xx_cc13xx.h>

#ifdef __cplusplus
extern "C" {
#endif


/**
 * WDT registers
 */
typedef struct {
    reg32_t LOAD; /**< config */
    reg32_t VALUE; /**< current count value */
    reg32_t CTL; /**< control */
    reg32_t ICR; /**< interrupt clear */
    reg32_t RIS; /**< raw interrupt status */
    reg32_t MIS; /**< masked interrupt status */
    reg32_t TEST; /**< test mode */
    reg32_t INT_CAUS; /**< interrupt cause test mode */
    reg32_t LOCK; /**< lock */
} wdt_regs_t;

/** @ingroup cpu_specific_peripheral_memory_map
  * @{
  */
#define WDT_BASE      0x40080000 /**< WDT base address */
/*@}*/

#define WDT           ((wdt_regs_t *) (WDT_BASE)) /**< WDT register bank */

#ifdef __cplusplus
} /* end extern "C" */
#endif

#endif /* CC26XX_CC13XX_WDT_H */

/*@}*/
<commit_msg>cpu/cc26x0: Fix register map for WDT<commit_after>/*
 * Copyright (C) 2016 <NAME>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @ingroup         cpu_cc26xx_cc13xx_definitions
 * @{
 *
 * @file
 * @brief           CC26xx/CC13xx WDT register definitions
 */

#ifndef CC26XX_CC13XX_WDT_H
#define CC26XX_CC13XX_WDT_H

#include <cc26xx_cc13xx.h>

#ifdef __cplusplus
extern "C" {
#endif


/**
 * WDT registers
 */
typedef struct {
    reg32_t LOAD; /**< config */
    reg32_t VALUE; /**< current count value */
    reg32_t CTL; /**< control */
    reg32_t ICR; /**< interrupt clear */
    reg32_t RIS; /**< raw interrupt status */
    reg32_t MIS; /**< masked interrupt status */
    reg32_t __reserved1[0x100]; /**< meh */
    reg32_t TEST; /**< test mode */
    reg32_t INT_CAUS; /**< interrupt cause test mode */
    reg32_t __reserved2[0x1f9]; /**< meh */
    reg32_t LOCK; /**< lock */
} wdt_regs_t;

/** @ingroup cpu_specific_peripheral_memory_map
  * @{
  */
#define WDT_BASE      0x40080000 /**< WDT base address */
/*@}*/

#define WDT           ((wdt_regs_t *) (WDT_BASE)) /**< WDT register bank */

#ifdef __cplusplus
} /* end extern "C" */
#endif

#endif /* CC26XX_CC13XX_WDT_H */

/*@}*/

{'fraction_non_alphanumeric': 0.14391865467344545, 'fraction_numerical': 0.050840829096597574, 'mean_word_length': 2.893455098934551, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '924764', 'n_tokens_mistral': 1030, 'n_tokens_neox': 924, 'n_words': 249}