cc26x0_ccfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Leon George
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
16 #ifndef CC26x0_CCFG_H
17 #define CC26x0_CCFG_H
18 
19 #include <cc26x0.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 #define CCFG_BASE 0x50003000
30 
31 /* TODO not present in datasheet but explained in cc26x0ware-lds */
32 #define CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x00000004
37 typedef struct {
38  reg32_t EXT_LF_CLK;
39  reg32_t MODE_CONF_1;
41  reg32_t MODE_CONF;
42  reg32_t VOLT_LOAD_0;
43  reg32_t VOLT_LOAD_1;
44  reg32_t RTC_OFFSET;
45  reg32_t FREQ_OFFSET;
46  reg32_t IEEE_MAC_0;
47  reg32_t IEEE_MAC_1;
48  reg32_t IEEE_BLE_0;
49  reg32_t IEEE_BLE_1;
50  reg32_t BL_CONFIG;
51  reg32_t ERASE_CONF;
52  reg32_t CCFG_TI_OPTIONS;
53  reg32_t CCFG_TAP_DAP_0;
54  reg32_t CCFG_TAP_DAP_1;
55  reg32_t IMAGE_VALID_CONF;
56  reg32_t CCFG_PROT_31_0;
57  reg32_t CCFG_PROT_63_32;
58  reg32_t CCFG_PROT_95_64;
59  reg32_t CCFG_PROT_127_96;
60 } ccfg_regs_t;
61 
62 #define CCFG ((ccfg_regs_t *) (CCFG_BASE + 0xFA8))
64 #ifdef __cplusplus
65 } /* end extern "C" */
66 #endif
67 
68 #endif /* CC26x0_CCFG_H */
69 
reg32_t CCFG_TAP_DAP_0
test access points enable 0
Definition: cc26x0_ccfg.h:53
CCFG registers.
Definition: cc26x0_ccfg.h:37
reg32_t CCFG_TI_OPTIONS
TI options.
Definition: cc26x0_ccfg.h:52
reg32_t VOLT_LOAD_0
voltage load 0
Definition: cc26x0_ccfg.h:42
reg32_t EXT_LF_CLK
extern LF clock config
Definition: cc26x0_ccfg.h:38
reg32_t BL_CONFIG
bootloader config
Definition: cc26x0_ccfg.h:50
reg32_t CCFG_PROT_31_0
protect sectors 0-31
Definition: cc26x0_ccfg.h:56
reg32_t CCFG_PROT_127_96
protect sectors 96-127
Definition: cc26x0_ccfg.h:59
reg32_t ERASE_CONF
erase config
Definition: cc26x0_ccfg.h:51
reg32_t MODE_CONF_1
mode config 1
Definition: cc26x0_ccfg.h:39
reg32_t CCFG_PROT_95_64
protect sectors 64-95
Definition: cc26x0_ccfg.h:58
reg32_t IEEE_BLE_0
IEEE BLE address 0.
Definition: cc26x0_ccfg.h:48
reg32_t IMAGE_VALID_CONF
image valid
Definition: cc26x0_ccfg.h:55
reg32_t IEEE_MAC_0
IEEE MAC address 0.
Definition: cc26x0_ccfg.h:46
reg32_t MODE_CONF
mmode config 0
Definition: cc26x0_ccfg.h:41
reg32_t CCFG_PROT_63_32
protect sectors 32-63
Definition: cc26x0_ccfg.h:57
reg32_t SIZE_AND_DIS_FLAGS
CCFG size and disable flags.
Definition: cc26x0_ccfg.h:40
reg32_t CCFG_TAP_DAP_1
test access points enable 1
Definition: cc26x0_ccfg.h:54
CC26x0 MCU interrupt definitions.
reg32_t IEEE_BLE_1
IEEE BLE address 1.
Definition: cc26x0_ccfg.h:49
reg32_t RTC_OFFSET
RTC offset.
Definition: cc26x0_ccfg.h:44
reg32_t IEEE_MAC_1
IEEE MAC address 1.
Definition: cc26x0_ccfg.h:47
reg32_t FREQ_OFFSET
frequency offset
Definition: cc26x0_ccfg.h:45
reg32_t VOLT_LOAD_1
voltage load 1
Definition: cc26x0_ccfg.h:43