Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
cc26x2_cc13x2_setup.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Locha Inc
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
17
#ifndef CC26X2_CC13X2_SETUP_H
18
#define CC26X2_CC13X2_SETUP_H
19
20
#include <
cc26xx_cc13xx.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
29
#define ROM_API_SETUP ((uint32_t *) (ROM_API_TABLE[28]))
30
35
#define rom_setup_after_cold_reset_wakeup_from_shutdown_cfg1 \
36
((void (*)(uint32_t mode_conf))ROM_API_SETUP[0])
37
38
#define rom_setup_after_cold_reset_wakeup_from_shutdown_cfg2 \
39
((void (*)(uint32_t rev, uint32_t mode_conf))ROM_API_SETUP[1])
40
41
#define rom_setup_after_cold_reset_wakeup_from_shutdown_cfg3 \
42
((void (*)(uint32_t mode_conf))ROM_API_SETUP[2])
43
44
#define rom_setup_get_trim_for_adc_sh_mode_en \
45
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[3])
46
47
#define rom_setup_get_trim_for_adc_sh_vbuf_en \
48
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[4])
49
50
#define rom_setup_get_trim_for_ampcomp_ctrl \
51
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[5])
52
53
#define rom_setup_get_trim_for_ampcomp_th1 \
54
((uint32_t (*)(void))ROM_API_SETUP[6])
55
56
#define rom_setup_get_trim_for_ampcomp_th2 \
57
((uint32_t (*)(void))ROM_API_SETUP[7])
58
59
#define rom_setup_get_trim_for_anabypass_value1 \
60
((uint32_t (*)(uint32_t mode_conf))ROM_API_SETUP[8])
61
62
#define rom_setup_get_trim_for_dblr_loop_filter_reset_voltage \
63
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[9])
64
65
#define rom_setup_get_trim_for_radc_ext_cfg \
66
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[10])
67
68
#define rom_setup_get_trim_for_rc_osc_lf_ibias_trim \
69
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[11])
70
71
#define rom_setup_get_trim_for_rc_osc_lf_rtune_ctune_trim \
72
((uint32_t (*)(void))ROM_API_SETUP[12])
73
74
#define rom_setup_get_trim_for_xosc_hf_ctl \
75
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[13])
76
77
#define rom_setup_get_trim_for_xosc_hf_fast_start \
78
((uint32_t (*)(void))ROM_API_SETUP[14])
79
80
#define rom_setup_get_trim_for_xosc_hf_ibiastherm \
81
((uint32_t (*)(void))ROM_API_SETUP[15])
82
83
#define rom_setup_get_trim_for_xosc_lf_regulator_and_cmirrwr_ratio \
84
((uint32_t (*)(uint32_t rev))ROM_API_SETUP[16])
85
86
#define rom_setup_set_aon_rtc_sub_sec_inc \
87
((void (*)(uint32_t subsecinc))ROM_API_SETUP[17])
88
89
#define rom_setup_set_cache_mode_according_to_ccfg_setting \
90
((void (*)(void))ROM_API_SETUP[18])
91
92
#define rom_setup_step_vddr_trim_to \
93
((void (*)(uint32_t tocode))ROM_API_SETUP[19])
94
114
void
setup_trim_device
(
void
);
115
116
#ifdef __cplusplus
117
}
/* end extern "C" */
118
#endif
119
120
#endif
/* CC26X2_CC13X2_SETUP_H */
121
setup_trim_device
void setup_trim_device(void)
Performs the necessary trim of the device which is not done in ROM boot code.
cc26xx_cc13xx.h
CC26xx, CC13xx definitions.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17