SmartSnippets DA1459x SDK
sdk
bsp
config
bsp_definitions.h
Go to the documentation of this file.
1
45
#ifndef BSP_DEFINITIONS_H_
46
#define BSP_DEFINITIONS_H_
47
48
/* ------------------------------------ DEVICE DEFINITIONS -------------------------------------- */
49
50
#include "
bsp_device_definitions.h
"
51
52
/* ------------------------------------ Generic definitions ------------------------------------- */
53
54
#define PRO_DK_DA1469x_BRD 1
55
#define PRO_DK_DA1468x_BRD 2
56
#define FPGA_DA1469x_BRD 3
57
#define FPGA_DA1468x_BRD 4
58
#define FPGA_DA1459x_BRD 5
59
60
#define LP_CLK_32000 0
61
#define LP_CLK_32768 1
62
#define LP_CLK_RCX 2
63
#define LP_CLK_ANY 3
64
65
#define LP_CLK_IS_ANALOG 0
66
#define LP_CLK_IS_DIGITAL 1
67
68
#define MODE_IS_MIRRORED 0
69
#define MODE_IS_CACHED 1
70
#define MODE_IS_RAM MODE_IS_MIRRORED
71
72
#define NON_VOLATILE_IS_OTP 0 // Code is in OTP
73
#define NON_VOLATILE_IS_QSPI_FLASH 1 // Code is in QSPI Flash
74
#define NON_VOLATILE_IS_EMBEDDED_FLASH 2 // Code is in Embedded Flash
75
#define NON_VOLATILE_IS_NONE 3 // Debug mode! Code is in RAM!
76
#define NON_VOLATILE_IS_FLASH NON_VOLATILE_IS_QSPI_FLASH // For backward compatibility
77
78
#define EXT_CRYSTAL_IS_16M 0
79
#define EXT_CRYSTAL_IS_32M 1
80
81
#define DEVELOPMENT_MODE 0 // Code is built for debugging
82
#define PRODUCTION_MODE 1 // Code is built for production
83
84
#define FLASH_IS_NOT_CONNECTED 0
85
#define FLASH_CONNECTED_TO_1V8 1
86
87
#define BATTERY_TYPE_2xNIMH 0
88
#define BATTERY_TYPE_3xNIMH 1
89
#define BATTERY_TYPE_LICOO2 2 // 2.5V discharge voltage, 4.20V charge voltage
90
#define BATTERY_TYPE_LIMN2O4 3 // 2.5V discharge voltage, 4.20V charge voltage
91
#define BATTERY_TYPE_NMC 4 // 2.5V discharge voltage, 4.20V charge voltage
92
#define BATTERY_TYPE_LIFEPO4 5 // 2.5V discharge voltage, 3.65V charge voltage
93
#define BATTERY_TYPE_LINICOAIO2 6 // 3.0V discharge voltage, 4.20V charge voltage
94
#define BATTERY_TYPE_CUSTOM 7
95
#define BATTERY_TYPE_NO_RECHARGE 8
96
#define BATTERY_TYPE_NO_BATTERY 9
97
98
#define BATTERY_TYPE_2xNIMH_ADC_VOLTAGE (2785)
99
#define BATTERY_TYPE_3xNIMH_ADC_VOLTAGE (4013)
100
#define BATTERY_TYPE_LICOO2_ADC_VOLTAGE (3440)
101
#define BATTERY_TYPE_LIMN2O4_ADC_VOLTAGE (3440)
102
#define BATTERY_TYPE_NMC_ADC_VOLTAGE (3440)
103
#define BATTERY_TYPE_LIFEPO4_ADC_VOLTAGE (2989)
104
#define BATTERY_TYPE_LINICOAIO2_ADC_VOLTAGE (3440)
105
106
107
/*
108
* The supported RF Front-End Modules
109
*/
110
#define FEM_NOFEM 0
111
#define FEM_SKY66112_11 1
112
113
/*
114
* The BLE event notification user hook types
115
*/
116
#define BLE_EVENT_NOTIF_USER_ISR 0
117
#define BLE_EVENT_NOTIF_USER_TASK 1
118
119
/*
120
* Definitions for the different USB suspend modes.
121
*/
122
#define USB_SUSPEND_MODE_NONE 0
123
#define USB_SUSPEND_MODE_PAUSE 1
124
#define USB_SUSPEND_MODE_IDLE 2
125
126
/*
127
* Definition for available MPU regions
128
*/
129
#define MPU_REGION_NONE -1
130
#define MPU_REGION_0 0
131
#define MPU_REGION_1 1
132
#define MPU_REGION_2 2
133
#define MPU_REGION_3 3
134
#define MPU_REGION_4 4
135
#define MPU_REGION_5 5
136
#define MPU_REGION_6 6
137
#define MPU_REGION_7 7
138
139
/*
140
* Enable FCU bus error to cause a bus fault during boot.
141
* Disabling it, is not recommended.
142
*/
143
#ifndef HW_FCU_ENABLE_BUS_ERROR_AT_BOOT
144
#define HW_FCU_ENABLE_BUS_ERROR_AT_BOOT (1)
145
#endif
146
147
/*
148
* Presets for memory cell retention
149
*/
150
#define RETMEM_RETAIN_ALL (0x0000)
151
#define RETMEM_RETAIN_NONE (0x0015)
152
153
#endif
/* BSP_DEFINITIONS_H_ */
154
bsp_device_definitions.h
Board Support Package. Device information attributes definitions.
Generated on Tue Oct 24 2023 10:38:23 for SmartSnippets DA1459x SDK by
1.8.16