Contiki-NG
CC1350STK.c
1/*
2 * Copyright (c) 2016-2019, Texas Instruments Incorporated
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33/*
34 * ============================ CC1350STK.c ============================
35 * This file is responsible for setting up the board specific items for the
36 * CC1350STK board.
37 */
38
39#include <stdbool.h>
40#include <stddef.h>
41#include <stdint.h>
42
43#include <ti/drivers/Power.h>
44#include <ti/drivers/power/PowerCC26XX.h>
45
46#include <ti/devices/DeviceFamily.h>
47#include DeviceFamily_constructPath(driverlib/ioc.h)
48#include DeviceFamily_constructPath(driverlib/udma.h)
49#include DeviceFamily_constructPath(inc/hw_ints.h)
50#include DeviceFamily_constructPath(inc/hw_memmap.h)
51
52#include "CC1350STK.h"
53
54/*
55 * =============================== ADCBuf ===============================
56 */
57#include <ti/drivers/ADCBuf.h>
58#include <ti/drivers/adcbuf/ADCBufCC26XX.h>
59
60ADCBufCC26XX_Object adcBufCC26XXobjects[CC1350STK_ADCBUFCOUNT];
61
62/*
63 * This table converts a virtual adc channel into a dio and internal analogue
64 * input signal. This table is necessary for the functioning of the adcBuf
65 * driver. Comment out unused entries to save flash. Dio and internal signal
66 * pairs are hardwired. Do not remap them in the table. You may reorder entire
67 * entries. The mapping of dio and internal signals is package dependent.
68 */
69const ADCBufCC26XX_AdcChannelLutEntry ADCBufCC26XX_adcChannelLut[CC1350STK_ADCBUF0CHANNELCOUNT] = {
70 {CC1350STK_DIO23_ANALOG, ADC_COMPB_IN_AUXIO7},
71 {CC1350STK_DIO24_ANALOG, ADC_COMPB_IN_AUXIO6},
72 {CC1350STK_DIO25_ANALOG, ADC_COMPB_IN_AUXIO5},
73 {CC1350STK_DIO26_ANALOG, ADC_COMPB_IN_AUXIO4},
74 {CC1350STK_DIO27_ANALOG, ADC_COMPB_IN_AUXIO3},
75 {CC1350STK_DIO28_ANALOG, ADC_COMPB_IN_AUXIO2},
76 {CC1350STK_DIO29_ANALOG, ADC_COMPB_IN_AUXIO1},
77 {CC1350STK_DIO30_ANALOG, ADC_COMPB_IN_AUXIO0},
78 {PIN_UNASSIGNED, ADC_COMPB_IN_VDDS},
79 {PIN_UNASSIGNED, ADC_COMPB_IN_DCOUPL},
80 {PIN_UNASSIGNED, ADC_COMPB_IN_VSS},
81};
82
83const ADCBufCC26XX_HWAttrs adcBufCC26XXHWAttrs[CC1350STK_ADCBUFCOUNT] = {
84 {
85 .intPriority = ~0,
86 .swiPriority = 0,
87 .adcChannelLut = ADCBufCC26XX_adcChannelLut,
88 }
89};
90
91const ADCBuf_Config ADCBuf_config[CC1350STK_ADCBUFCOUNT] = {
92 {
93 &ADCBufCC26XX_fxnTable,
94 &adcBufCC26XXobjects[CC1350STK_ADCBUF0],
95 &adcBufCC26XXHWAttrs[CC1350STK_ADCBUF0]
96 },
97};
98
99const uint_least8_t ADCBuf_count = CC1350STK_ADCBUFCOUNT;
100
101/*
102 * =============================== ADC ===============================
103 */
104#include <ti/drivers/ADC.h>
105#include <ti/drivers/adc/ADCCC26XX.h>
106
107ADCCC26XX_Object adcCC26xxObjects[CC1350STK_ADCCOUNT];
108
109const ADCCC26XX_HWAttrs adcCC26xxHWAttrs[CC1350STK_ADCCOUNT] = {
110 {
111 .adcDIO = CC1350STK_DIO23_ANALOG,
112 .adcCompBInput = ADC_COMPB_IN_AUXIO7,
113 .refSource = ADCCC26XX_FIXED_REFERENCE,
114 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
115 .inputScalingEnabled = true,
116 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
117 .returnAdjustedVal = false
118 },
119 {
120 .adcDIO = CC1350STK_DIO24_ANALOG,
121 .adcCompBInput = ADC_COMPB_IN_AUXIO6,
122 .refSource = ADCCC26XX_FIXED_REFERENCE,
123 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
124 .inputScalingEnabled = true,
125 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
126 .returnAdjustedVal = false
127 },
128 {
129 .adcDIO = CC1350STK_DIO25_ANALOG,
130 .adcCompBInput = ADC_COMPB_IN_AUXIO5,
131 .refSource = ADCCC26XX_FIXED_REFERENCE,
132 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
133 .inputScalingEnabled = true,
134 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
135 .returnAdjustedVal = false
136 },
137 {
138 .adcDIO = CC1350STK_DIO26_ANALOG,
139 .adcCompBInput = ADC_COMPB_IN_AUXIO4,
140 .refSource = ADCCC26XX_FIXED_REFERENCE,
141 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
142 .inputScalingEnabled = true,
143 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
144 .returnAdjustedVal = false
145 },
146 {
147 .adcDIO = CC1350STK_DIO27_ANALOG,
148 .adcCompBInput = ADC_COMPB_IN_AUXIO3,
149 .refSource = ADCCC26XX_FIXED_REFERENCE,
150 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
151 .inputScalingEnabled = true,
152 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
153 .returnAdjustedVal = false
154 },
155 {
156 .adcDIO = CC1350STK_DIO28_ANALOG,
157 .adcCompBInput = ADC_COMPB_IN_AUXIO2,
158 .refSource = ADCCC26XX_FIXED_REFERENCE,
159 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
160 .inputScalingEnabled = true,
161 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
162 .returnAdjustedVal = false
163 },
164 {
165 .adcDIO = CC1350STK_DIO29_ANALOG,
166 .adcCompBInput = ADC_COMPB_IN_AUXIO1,
167 .refSource = ADCCC26XX_FIXED_REFERENCE,
168 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
169 .inputScalingEnabled = true,
170 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
171 .returnAdjustedVal = false
172 },
173 {
174 .adcDIO = CC1350STK_DIO30_ANALOG,
175 .adcCompBInput = ADC_COMPB_IN_AUXIO0,
176 .refSource = ADCCC26XX_FIXED_REFERENCE,
177 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_10P9_MS,
178 .inputScalingEnabled = true,
179 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
180 .returnAdjustedVal = false
181 },
182 {
183 .adcDIO = PIN_UNASSIGNED,
184 .adcCompBInput = ADC_COMPB_IN_DCOUPL,
185 .refSource = ADCCC26XX_FIXED_REFERENCE,
186 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
187 .inputScalingEnabled = true,
188 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
189 .returnAdjustedVal = false
190 },
191 {
192 .adcDIO = PIN_UNASSIGNED,
193 .adcCompBInput = ADC_COMPB_IN_VSS,
194 .refSource = ADCCC26XX_FIXED_REFERENCE,
195 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
196 .inputScalingEnabled = true,
197 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
198 .returnAdjustedVal = false
199 },
200 {
201 .adcDIO = PIN_UNASSIGNED,
202 .adcCompBInput = ADC_COMPB_IN_VDDS,
203 .refSource = ADCCC26XX_FIXED_REFERENCE,
204 .samplingDuration = ADCCC26XX_SAMPLING_DURATION_2P7_US,
205 .inputScalingEnabled = true,
206 .triggerSource = ADCCC26XX_TRIGGER_MANUAL,
207 .returnAdjustedVal = false
208 }
209};
210
211const ADC_Config ADC_config[CC1350STK_ADCCOUNT] = {
212 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC0], &adcCC26xxHWAttrs[CC1350STK_ADC0]},
213 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC1], &adcCC26xxHWAttrs[CC1350STK_ADC1]},
214 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC2], &adcCC26xxHWAttrs[CC1350STK_ADC2]},
215 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC3], &adcCC26xxHWAttrs[CC1350STK_ADC3]},
216 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC4], &adcCC26xxHWAttrs[CC1350STK_ADC4]},
217 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC5], &adcCC26xxHWAttrs[CC1350STK_ADC5]},
218 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC6], &adcCC26xxHWAttrs[CC1350STK_ADC6]},
219 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADC7], &adcCC26xxHWAttrs[CC1350STK_ADC7]},
220 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADCDCOUPL], &adcCC26xxHWAttrs[CC1350STK_ADCDCOUPL]},
221 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADCVSS], &adcCC26xxHWAttrs[CC1350STK_ADCVSS]},
222 {&ADCCC26XX_fxnTable, &adcCC26xxObjects[CC1350STK_ADCVDDS], &adcCC26xxHWAttrs[CC1350STK_ADCVDDS]},
223};
224
225const uint_least8_t ADC_count = CC1350STK_ADCCOUNT;
226
227/*
228 * =============================== Crypto ===============================
229 */
230#include <ti/drivers/crypto/CryptoCC26XX.h>
231
232CryptoCC26XX_Object cryptoCC26XXObjects[CC1350STK_CRYPTOCOUNT];
233
234const CryptoCC26XX_HWAttrs cryptoCC26XXHWAttrs[CC1350STK_CRYPTOCOUNT] = {
235 {
236 .baseAddr = CRYPTO_BASE,
237 .powerMngrId = PowerCC26XX_PERIPH_CRYPTO,
238 .intNum = INT_CRYPTO_RESULT_AVAIL_IRQ,
239 .intPriority = ~0,
240 }
241};
242
243const CryptoCC26XX_Config CryptoCC26XX_config[CC1350STK_CRYPTOCOUNT] = {
244 {
245 .object = &cryptoCC26XXObjects[CC1350STK_CRYPTO0],
246 .hwAttrs = &cryptoCC26XXHWAttrs[CC1350STK_CRYPTO0]
247 },
248};
249
250/*
251 * =============================== AESCCM ===============================
252 */
253#include <ti/drivers/AESCCM.h>
254#include <ti/drivers/aesccm/AESCCMCC26XX.h>
255
256AESCCMCC26XX_Object aesccmCC26XXObjects[CC1350STK_AESCCMCOUNT];
257
258const AESCCMCC26XX_HWAttrs aesccmCC26XXHWAttrs[CC1350STK_AESCCMCOUNT] = {
259 {
260 .intPriority = ~0,
261 }
262};
263
264const AESCCM_Config AESCCM_config[CC1350STK_AESCCMCOUNT] = {
265 {
266 .object = &aesccmCC26XXObjects[CC1350STK_AESCCM0],
267 .hwAttrs = &aesccmCC26XXHWAttrs[CC1350STK_AESCCM0]
268 },
269};
270
271const uint_least8_t AESCCM_count = CC1350STK_AESCCMCOUNT;
272
273
274/*
275 * =============================== AESGCM ===============================
276 */
277#include <ti/drivers/AESGCM.h>
278#include <ti/drivers/aesgcm/AESGCMCC26XX.h>
279
280AESGCMCC26XX_Object aesgcmCC26XXObjects[CC1350STK_AESGCMCOUNT];
281
282const AESGCMCC26XX_HWAttrs aesgcmCC26XXHWAttrs[CC1350STK_AESGCMCOUNT] = {
283 {
284 .intPriority = ~0,
285 }
286};
287
288const AESGCM_Config AESGCM_config[CC1350STK_AESGCMCOUNT] = {
289 {
290 .object = &aesgcmCC26XXObjects[CC1350STK_AESGCM0],
291 .hwAttrs = &aesgcmCC26XXHWAttrs[CC1350STK_AESGCM0]
292 },
293};
294
295const uint_least8_t AESGCM_count = CC1350STK_AESGCMCOUNT;
296
297/*
298 * =============================== AESCBC ===============================
299 */
300#include <ti/drivers/AESCBC.h>
301#include <ti/drivers/aescbc/AESCBCCC26XX.h>
302
303AESCBCCC26XX_Object aescbcCC26XXObjects[CC1350STK_AESCBCCOUNT];
304
305const AESCBCCC26XX_HWAttrs aescbcCC26XXHWAttrs[CC1350STK_AESCBCCOUNT] = {
306 {
307 .intPriority = ~0,
308 }
309};
310
311const AESCBC_Config AESCBC_config[CC1350STK_AESCBCCOUNT] = {
312 {
313 .object = &aescbcCC26XXObjects[CC1350STK_AESCBC0],
314 .hwAttrs = &aescbcCC26XXHWAttrs[CC1350STK_AESCBC0]
315 },
316};
317
318const uint_least8_t AESCBC_count = CC1350STK_AESCBCCOUNT;
319
320/*
321 * =============================== AESCTR ===============================
322 */
323#include <ti/drivers/AESCTR.h>
324#include <ti/drivers/aesctr/AESCTRCC26XX.h>
325
326AESCTRCC26XX_Object aesctrCC26XXObjects[CC1350STK_AESCTRCOUNT];
327
328const AESCTRCC26XX_HWAttrs aesctrCC26XXHWAttrs[CC1350STK_AESCTRCOUNT] = {
329 {
330 .intPriority = ~0,
331 }
332};
333
334const AESCTR_Config AESCTR_config[CC1350STK_AESCTRCOUNT] = {
335 {
336 .object = &aesctrCC26XXObjects[CC1350STK_AESCTR0],
337 .hwAttrs = &aesctrCC26XXHWAttrs[CC1350STK_AESCTR0]
338 },
339};
340
341const uint_least8_t AESCTR_count = CC1350STK_AESCTRCOUNT;
342
343/*
344 * =============================== AESECB ===============================
345 */
346#include <ti/drivers/AESECB.h>
347#include <ti/drivers/aesecb/AESECBCC26XX.h>
348
349AESECBCC26XX_Object aesecbCC26XXObjects[CC1350STK_AESECBCOUNT];
350
351const AESECBCC26XX_HWAttrs aesecbCC26XXHWAttrs[CC1350STK_AESECBCOUNT] = {
352 {
353 .intPriority = ~0,
354 }
355};
356
357const AESECB_Config AESECB_config[CC1350STK_AESECBCOUNT] = {
358 {
359 .object = &aesecbCC26XXObjects[CC1350STK_AESECB0],
360 .hwAttrs = &aesecbCC26XXHWAttrs[CC1350STK_AESECB0]
361 },
362};
363
364const uint_least8_t AESECB_count = CC1350STK_AESECBCOUNT;
365
366/*
367 * =============================== AESCTRDRBG ===============================
368 */
369#include <ti/drivers/AESCTRDRBG.h>
370#include <ti/drivers/aesctrdrbg/AESCTRDRBGXX.h>
371
372AESCTRDRBGXX_Object aesctrdrbgXXObjects[CC1350STK_AESCTRDRBGCOUNT];
373
374const AESCTRDRBGXX_HWAttrs aesctrdrbgXXHWAttrs[CC1350STK_AESCTRDRBGCOUNT] = {
375 {
376 .aesctrIndex = CC1350STK_AESCTR0,
377 }
378};
379
380const AESCTRDRBG_Config AESCTRDRBG_config[CC1350STK_AESCTRDRBGCOUNT] = {
381 {
382 .object = &aesctrdrbgXXObjects[CC1350STK_AESCTRDRBG0],
383 .hwAttrs = &aesctrdrbgXXHWAttrs[CC1350STK_AESCTRDRBG0]
384 },
385};
386
387const uint_least8_t AESCTRDRBG_count = CC1350STK_AESCTRDRBGCOUNT;
388
389/*
390 * =============================== TRNG ===============================
391 */
392#include <ti/drivers/TRNG.h>
393#include <ti/drivers/trng/TRNGCC26XX.h>
394
395TRNGCC26XX_Object trngCC26XXObjects[CC1350STK_TRNGCOUNT];
396
397const TRNGCC26XX_HWAttrs trngCC26X2HWAttrs[CC1350STK_TRNGCOUNT] = {
398 {
399 .intPriority = ~0,
400 .swiPriority = 0,
401 .samplesPerCycle = 240000,
402 }
403};
404
405const TRNG_Config TRNG_config[CC1350STK_TRNGCOUNT] = {
406 {
407 .object = &trngCC26XXObjects[CC1350STK_TRNG0],
408 .hwAttrs = &trngCC26X2HWAttrs[CC1350STK_TRNG0]
409 },
410};
411
412const uint_least8_t TRNG_count = CC1350STK_TRNGCOUNT;
413
414/*
415 * =============================== GPIO ===============================
416 */
417#include <ti/drivers/GPIO.h>
418#include <ti/drivers/gpio/GPIOCC26XX.h>
419
420/*
421 * Array of Pin configurations
422 * NOTE: The order of the pin configurations must coincide with what was
423 * defined in CC1350STK.h
424 * NOTE: Pins not used for interrupts should be placed at the end of the
425 * array. Callback entries can be omitted from callbacks array to
426 * reduce memory usage.
427 */
428GPIO_PinConfig gpioPinConfigs[] = {
429 /* Input pins */
430 GPIOCC26XX_DIO_15 | GPIO_DO_NOT_CONFIG, /* Button 0 */
431 GPIOCC26XX_DIO_04 | GPIO_DO_NOT_CONFIG, /* Button 1 */
432
433 /* Output pins */
434 GPIOCC26XX_DIO_10 | GPIO_DO_NOT_CONFIG, /* LED */
435
436 /* SPI Flash CSN */
437 GPIOCC26XX_DIO_14 | GPIO_DO_NOT_CONFIG,
438};
439
440/*
441 * Array of callback function pointers
442 * NOTE: The order of the pin configurations must coincide with what was
443 * defined in CC1350STK.h
444 * NOTE: Pins not used for interrupts can be omitted from callbacks array to
445 * reduce memory usage (if placed at end of gpioPinConfigs array).
446 */
447GPIO_CallbackFxn gpioCallbackFunctions[] = {
448 NULL, /* Button 0 */
449 NULL, /* Button 1 */
450};
451
452const GPIOCC26XX_Config GPIOCC26XX_config = {
453 .pinConfigs = (GPIO_PinConfig *)gpioPinConfigs,
454 .callbacks = (GPIO_CallbackFxn *)gpioCallbackFunctions,
455 .numberOfPinConfigs = CC1350STK_GPIOCOUNT,
456 .numberOfCallbacks = sizeof(gpioCallbackFunctions)/sizeof(GPIO_CallbackFxn),
457 .intPriority = (~0)
458};
459
460/*
461 * =============================== GPTimer ===============================
462 * Remove unused entries to reduce flash usage both in Board.c and Board.h
463 */
464#include <ti/drivers/timer/GPTimerCC26XX.h>
465
466GPTimerCC26XX_Object gptimerCC26XXObjects[CC1350STK_GPTIMERCOUNT];
467
468const GPTimerCC26XX_HWAttrs gptimerCC26xxHWAttrs[CC1350STK_GPTIMERPARTSCOUNT] = {
469 { .baseAddr = GPT0_BASE, .intNum = INT_GPT0A, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT0, .pinMux = GPT_PIN_0A, },
470 { .baseAddr = GPT0_BASE, .intNum = INT_GPT0B, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT0, .pinMux = GPT_PIN_0B, },
471 { .baseAddr = GPT1_BASE, .intNum = INT_GPT1A, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT1, .pinMux = GPT_PIN_1A, },
472 { .baseAddr = GPT1_BASE, .intNum = INT_GPT1B, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT1, .pinMux = GPT_PIN_1B, },
473 { .baseAddr = GPT2_BASE, .intNum = INT_GPT2A, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT2, .pinMux = GPT_PIN_2A, },
474 { .baseAddr = GPT2_BASE, .intNum = INT_GPT2B, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT2, .pinMux = GPT_PIN_2B, },
475 { .baseAddr = GPT3_BASE, .intNum = INT_GPT3A, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT3, .pinMux = GPT_PIN_3A, },
476 { .baseAddr = GPT3_BASE, .intNum = INT_GPT3B, .intPriority = (~0), .powerMngrId = PowerCC26XX_PERIPH_GPT3, .pinMux = GPT_PIN_3B, },
477};
478
479const GPTimerCC26XX_Config GPTimerCC26XX_config[CC1350STK_GPTIMERPARTSCOUNT] = {
480 { &gptimerCC26XXObjects[CC1350STK_GPTIMER0], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER0A], GPT_A },
481 { &gptimerCC26XXObjects[CC1350STK_GPTIMER0], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER0B], GPT_B },
482 { &gptimerCC26XXObjects[CC1350STK_GPTIMER1], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER1A], GPT_A },
483 { &gptimerCC26XXObjects[CC1350STK_GPTIMER1], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER1B], GPT_B },
484 { &gptimerCC26XXObjects[CC1350STK_GPTIMER2], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER2A], GPT_A },
485 { &gptimerCC26XXObjects[CC1350STK_GPTIMER2], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER2B], GPT_B },
486 { &gptimerCC26XXObjects[CC1350STK_GPTIMER3], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER3A], GPT_A },
487 { &gptimerCC26XXObjects[CC1350STK_GPTIMER3], &gptimerCC26xxHWAttrs[CC1350STK_GPTIMER3B], GPT_B },
488};
489
490/*
491 * =============================== I2C ===============================
492*/
493#include <ti/drivers/I2C.h>
494#include <ti/drivers/i2c/I2CCC26XX.h>
495
496#if TI_I2C_CONF_ENABLE
497
498I2CCC26XX_Object i2cCC26xxObjects[CC1350STK_I2CCOUNT];
499
500const I2CCC26XX_HWAttrsV1 i2cCC26xxHWAttrs[CC1350STK_I2CCOUNT] = {
501#if TI_I2C_CONF_I2C0_ENABLE
502 {
503 .baseAddr = I2C0_BASE,
504 .powerMngrId = PowerCC26XX_PERIPH_I2C0,
505 .intNum = INT_I2C_IRQ,
506 .intPriority = ~0,
507 .swiPriority = 0,
508 .sdaPin = CC1350STK_I2C0_SDA0,
509 .sclPin = CC1350STK_I2C0_SCL0,
510 },
511 {
512 .baseAddr = I2C0_BASE,
513 .powerMngrId = PowerCC26XX_PERIPH_I2C0,
514 .intNum = INT_I2C_IRQ,
515 .intPriority = ~0,
516 .swiPriority = 0,
517 .sdaPin = CC1350STK_I2C0_SDA1,
518 .sclPin = CC1350STK_I2C0_SCL1,
519 },
520#endif
521};
522
523const I2C_Config I2C_config[CC1350STK_I2CCOUNT] = {
524#if TI_I2C_CONF_I2C0_ENABLE
525 {
526 .fxnTablePtr = &I2CCC26XX_fxnTable,
527 .object = &i2cCC26xxObjects[CC1350STK_I2C0],
528 .hwAttrs = &i2cCC26xxHWAttrs[CC1350STK_I2C0]
529 },
530 {
531 .fxnTablePtr = &I2CCC26XX_fxnTable,
532 .object = &i2cCC26xxObjects[CC1350STK_I2C1],
533 .hwAttrs = &i2cCC26xxHWAttrs[CC1350STK_I2C1]
534 },
535#endif
536};
537
538const uint_least8_t I2C_count = CC1350STK_I2CCOUNT;
539
540#endif /* TI_I2C_CONF_ENABLE */
541
542/*
543 * =============================== I2S ===============================
544*/
545#include <ti/drivers/I2S.h>
546#include <ti/drivers/i2s/I2SCC26XX.h>
547
548I2SCC26XX_Object i2sCC26XXObjects[CC1350STK_I2SCOUNT];
549
550const I2SCC26XX_HWAttrs i2sCC26XXHWAttrs[CC1350STK_I2SCOUNT] = {
551 {
552 .pinSD1 = CC1350STK_I2S_ADI,
553 .pinSD0 = CC1350STK_I2S_ADO,
554 .pinSCK = CC1350STK_I2S_BCLK,
555 .pinMCLK = CC1350STK_I2S_MCLK,
556 .pinWS = CC1350STK_I2S_WCLK,
557 .intPriority = ~0,
558 }
559};
560
561const I2S_Config I2S_config[CC1350STK_I2SCOUNT] = {
562 {
563 .object = &i2sCC26XXObjects[CC1350STK_I2S0],
564 .hwAttrs = &i2sCC26XXHWAttrs[CC1350STK_I2S0]
565 },
566};
567
568const uint_least8_t I2S_count = CC1350STK_I2SCOUNT;
569
570/*
571 * =============================== NVS ===============================
572 */
573#include <ti/drivers/NVS.h>
574#include <ti/drivers/nvs/NVSSPI25X.h>
575#include <ti/drivers/nvs/NVSCC26XX.h>
576
577#define NVS_REGIONS_BASE 0x1A000
578#define SECTORSIZE 0x1000
579#define REGIONSIZE (SECTORSIZE * 4)
580
581#if TI_NVS_CONF_ENABLE
582
583#if TI_NVS_CONF_NVS_INTERNAL_ENABLE
584
585/*
586 * Reserve flash sectors for NVS driver use by placing an uninitialized byte
587 * array at the desired flash address.
588 */
589#if defined(__TI_COMPILER_VERSION__)
590
591/*
592 * Place uninitialized array at NVS_REGIONS_BASE
593 */
594#pragma LOCATION(flashBuf, NVS_REGIONS_BASE);
595#pragma NOINIT(flashBuf);
596static char flashBuf[REGIONSIZE];
597
598#elif defined(__IAR_SYSTEMS_ICC__)
599
600/*
601 * Place uninitialized array at NVS_REGIONS_BASE
602 */
603static __no_init char flashBuf[REGIONSIZE] @ NVS_REGIONS_BASE;
604
605#elif defined(__GNUC__)
606
607/*
608 * Place the flash buffers in the .nvs section created in the gcc linker file.
609 * The .nvs section enforces alignment on a sector boundary but may
610 * be placed anywhere in flash memory. If desired the .nvs section can be set
611 * to a fixed address by changing the following in the gcc linker file:
612 *
613 * .nvs (FIXED_FLASH_ADDR) (NOLOAD) : AT (FIXED_FLASH_ADDR) {
614 * *(.nvs)
615 * } > REGION_TEXT
616 */
617__attribute__ ((section (".nvs")))
618static char flashBuf[REGIONSIZE];
619
620#endif
621
622/* Allocate objects for NVS Internal Regions */
623NVSCC26XX_Object nvsCC26xxObjects[1];
624
625/* Hardware attributes for NVS Internal Regions */
626const NVSCC26XX_HWAttrs nvsCC26xxHWAttrs[1] = {
627 {
628 .regionBase = (void *)flashBuf,
629 .regionSize = REGIONSIZE,
630 },
631};
632
633#endif /* TI_NVS_CONF_NVS_INTERNAL_ENABLE */
634
635#if TI_NVS_CONF_NVS_EXTERNAL_ENABLE
636
637#define SPISECTORSIZE 0x1000
638#define SPIREGIONSIZE (SPISECTORSIZE * 32)
639#define VERIFYBUFSIZE 64
640
641static uint8_t verifyBuf[VERIFYBUFSIZE];
642
643/* Allocate objects for NVS External Regions */
644NVSSPI25X_Object nvsSPI25XObjects[1];
645
646/* Hardware attributes for NVS External Regions */
647const NVSSPI25X_HWAttrs nvsSPI25XHWAttrs[1] = {
648 {
649 .regionBaseOffset = 0,
650 .regionSize = SPIREGIONSIZE,
651 .sectorSize = SPISECTORSIZE,
652 .verifyBuf = verifyBuf,
653 .verifyBufSize = VERIFYBUFSIZE,
654 .spiHandle = NULL,
655 .spiIndex = 0,
656 .spiBitRate = 4000000,
657 .spiCsnGpioIndex = CC1350STK_GPIO_SPI_FLASH_CS,
658 .statusPollDelayUs = 100,
659 },
660};
661
662#endif /* Board_EXCLUDE_NVS_EXTERNAL_FLASH */
663
664/* NVS Region index 0 and 1 refer to NVS and NVS SPI respectively */
665const NVS_Config NVS_config[CC1350STK_NVSCOUNT] = {
666#if TI_NVS_CONF_NVS_INTERNAL_ENABLE
667 {
668 .fxnTablePtr = &NVSCC26XX_fxnTable,
669 .object = &nvsCC26xxObjects[0],
670 .hwAttrs = &nvsCC26xxHWAttrs[0],
671 },
672#endif
673#if TI_NVS_CONF_NVS_EXTERNAL_ENABLE
674 {
675 .fxnTablePtr = &NVSSPI25X_fxnTable,
676 .object = &nvsSPI25XObjects[0],
677 .hwAttrs = &nvsSPI25XHWAttrs[0],
678 },
679#endif
680};
681
682const uint_least8_t NVS_count = CC1350STK_NVSCOUNT;
683
684#endif /* TI_NVS_CONF_ENABLE */
685
686/*
687 * =============================== PIN ===============================
688 */
689#include <ti/drivers/PIN.h>
690#include <ti/drivers/pin/PINCC26XX.h>
691
692const PIN_Config BoardGpioInitTable[] = {
693
694 CC1350STK_PIN_RLED | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED initially off */
695 CC1350STK_PIN_BTN1 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS, /* Button is active low */
696 CC1350STK_PIN_BTN2 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS, /* Button is active low */
697 CC1350STK_SPI_FLASH_CS | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MIN, /* External flash chip select */
698 CC1350STK_UART_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL, /* DevPack */
699 CC1350STK_UART_RX | PIN_INPUT_EN | PIN_PULLDOWN, /* DevPack */
700 CC1350STK_SPI0_MOSI | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master out - slave in */
701 CC1350STK_SPI0_MISO | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master in - slave out */
702 CC1350STK_SPI0_CLK | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI clock */
703 CC1350STK_RELAY | PIN_INPUT_EN | PIN_PULLDOWN | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS, /* Relay is active high */
704 CC1350STK_MPU_INT | PIN_INPUT_EN | PIN_PULLDOWN | PIN_IRQ_NEGEDGE | PIN_HYSTERESIS, /* MPU_INT is active low */
705 CC1350STK_TMP_RDY | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS, /* TMP_RDY is active high */
706 CC1350STK_BUZZER | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* Buzzer initially off */
707 CC1350STK_MPU_POWER | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* MPU initially on */
708 CC1350STK_MIC_POWER | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MIN, /* MIC initially off */
709 PIN_TERMINATE
710};
711
712const PINCC26XX_HWAttrs PINCC26XX_hwAttrs = {
713 .intPriority = ~0,
714 .swiPriority = 0
715};
716
717/*
718 * =============================== Power ===============================
719 */
720#include <ti/drivers/Power.h>
721#include <ti/drivers/power/PowerCC26XX.h>
722#include "clock-arch.h"
723
724const PowerCC26XX_Config PowerCC26XX_config = {
725 .policyInitFxn = NULL,
726 .policyFxn = &clock_arch_standby_policy,
727 .calibrateFxn = &PowerCC26XX_calibrate,
728 .enablePolicy = true,
729 .calibrateRCOSC_LF = true,
730 .calibrateRCOSC_HF = true,
731};
732
733/*
734 * =============================== PWM ===============================
735 * Remove unused entries to reduce flash usage both in Board.c and Board.h
736 */
737#include <ti/drivers/PWM.h>
738#include <ti/drivers/pwm/PWMTimerCC26XX.h>
739
740PWMTimerCC26XX_Object pwmtimerCC26xxObjects[CC1350STK_PWMCOUNT];
741
742const PWMTimerCC26XX_HwAttrs pwmtimerCC26xxHWAttrs[CC1350STK_PWMCOUNT] = {
743 { .pwmPin = CC1350STK_PWMPIN0, .gpTimerUnit = CC1350STK_GPTIMER0A },
744 { .pwmPin = CC1350STK_PWMPIN1, .gpTimerUnit = CC1350STK_GPTIMER0B },
745 { .pwmPin = CC1350STK_PWMPIN2, .gpTimerUnit = CC1350STK_GPTIMER1A },
746 { .pwmPin = CC1350STK_PWMPIN3, .gpTimerUnit = CC1350STK_GPTIMER1B },
747 { .pwmPin = CC1350STK_PWMPIN4, .gpTimerUnit = CC1350STK_GPTIMER2A },
748 { .pwmPin = CC1350STK_PWMPIN5, .gpTimerUnit = CC1350STK_GPTIMER2B },
749 { .pwmPin = CC1350STK_PWMPIN6, .gpTimerUnit = CC1350STK_GPTIMER3A },
750 { .pwmPin = CC1350STK_PWMPIN7, .gpTimerUnit = CC1350STK_GPTIMER3B },
751};
752
753const PWM_Config PWM_config[CC1350STK_PWMCOUNT] = {
754 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM0], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM0] },
755 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM1], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM1] },
756 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM2], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM2] },
757 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM3], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM3] },
758 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM4], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM4] },
759 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM5], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM5] },
760 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM6], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM6] },
761 { &PWMTimerCC26XX_fxnTable, &pwmtimerCC26xxObjects[CC1350STK_PWM7], &pwmtimerCC26xxHWAttrs[CC1350STK_PWM7] },
762};
763
764const uint_least8_t PWM_count = CC1350STK_PWMCOUNT;
765
766/*
767 * =============================== RF Driver ===============================
768 */
769#include <ti/drivers/rf/RF.h>
770
771const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = {
772 .hwiPriority = ~0, /* Lowest HWI priority */
773 .swiPriority = 0, /* Lowest SWI priority */
774 .xoscHfAlwaysNeeded = true, /* Keep XOSC dependency while in stanby */
775 .globalCallback = NULL, /* No board specific callback */
776 .globalEventMask = 0 /* No events subscribed to */
777};
778
779/*
780 * =============================== SPI DMA ===============================
781 */
782#include <ti/drivers/SPI.h>
783#include <ti/drivers/spi/SPICC26XXDMA.h>
784
785#if TI_SPI_CONF_ENABLE
786
787SPICC26XXDMA_Object spiCC26XXDMAObjects[CC1350STK_SPICOUNT];
788
789/*
790 * NOTE: The SPI instances below can be used by the SD driver to communicate
791 * with a SD card via SPI. The 'defaultTxBufValue' fields below are set to 0xFF
792 * to satisfy the SDSPI driver requirement.
793 */
794const SPICC26XXDMA_HWAttrsV1 spiCC26XXDMAHWAttrs[CC1350STK_SPICOUNT] = {
795#if TI_SPI_CONF_SPI0_ENABLE
796 {
797 .baseAddr = SSI0_BASE,
798 .intNum = INT_SSI0_COMB,
799 .intPriority = ~0,
800 .swiPriority = 0,
801 .powerMngrId = PowerCC26XX_PERIPH_SSI0,
802 .defaultTxBufValue = 0xFF,
803 .rxChannelBitMask = 1<<UDMA_CHAN_SSI0_RX,
804 .txChannelBitMask = 1<<UDMA_CHAN_SSI0_TX,
805 .mosiPin = CC1350STK_SPI0_MOSI,
806 .misoPin = CC1350STK_SPI0_MISO,
807 .clkPin = CC1350STK_SPI0_CLK,
808 .csnPin = CC1350STK_SPI0_CSN,
809 .minDmaTransferSize = 10
810 },
811#endif
812#if TI_SPI_CONF_SPI1_ENABLE
813 {
814 .baseAddr = SSI1_BASE,
815 .intNum = INT_SSI1_COMB,
816 .intPriority = ~0,
817 .swiPriority = 0,
818 .powerMngrId = PowerCC26XX_PERIPH_SSI1,
819 .defaultTxBufValue = 0xFF,
820 .rxChannelBitMask = 1<<UDMA_CHAN_SSI1_RX,
821 .txChannelBitMask = 1<<UDMA_CHAN_SSI1_TX,
822 .mosiPin = CC1350STK_SPI1_MOSI,
823 .misoPin = CC1350STK_SPI1_MISO,
824 .clkPin = CC1350STK_SPI1_CLK,
825 .csnPin = CC1350STK_SPI1_CSN,
826 .minDmaTransferSize = 10
827 },
828#endif
829};
830
831const SPI_Config SPI_config[CC1350STK_SPICOUNT] = {
832#if TI_SPI_CONF_SPI0_ENABLE
833 {
834 .fxnTablePtr = &SPICC26XXDMA_fxnTable,
835 .object = &spiCC26XXDMAObjects[CC1350STK_SPI0],
836 .hwAttrs = &spiCC26XXDMAHWAttrs[CC1350STK_SPI0]
837 },
838#endif
839#if TI_SPI_CONF_SPI1_ENABLE
840 {
841 .fxnTablePtr = &SPICC26XXDMA_fxnTable,
842 .object = &spiCC26XXDMAObjects[CC1350STK_SPI1],
843 .hwAttrs = &spiCC26XXDMAHWAttrs[CC1350STK_SPI1]
844 },
845#endif
846};
847
848const uint_least8_t SPI_count = CC1350STK_SPICOUNT;
849
850#endif /* TI_SPI_CONF_ENABLE */
851
852/*
853 * =============================== UART ===============================
854 */
855#include <ti/drivers/UART.h>
856#include <ti/drivers/uart/UARTCC26XX.h>
857
858#if TI_UART_CONF_ENABLE
859
860UARTCC26XX_Object uartCC26XXObjects[CC1350STK_UARTCOUNT];
861
862uint8_t uartCC26XXRingBuffer[CC1350STK_UARTCOUNT][32];
863
864const UARTCC26XX_HWAttrsV2 uartCC26XXHWAttrs[CC1350STK_UARTCOUNT] = {
865#if TI_UART_CONF_UART0_ENABLE
866 {
867 .baseAddr = UART0_BASE,
868 .powerMngrId = PowerCC26XX_PERIPH_UART0,
869 .intNum = INT_UART0_COMB,
870 .intPriority = ~0,
871 .swiPriority = 0,
872 .txPin = CC1350STK_UART_TX,
873 .rxPin = CC1350STK_UART_RX,
874 .ctsPin = PIN_UNASSIGNED,
875 .rtsPin = PIN_UNASSIGNED,
876 .ringBufPtr = uartCC26XXRingBuffer[CC1350STK_UART0],
877 .ringBufSize = sizeof(uartCC26XXRingBuffer[CC1350STK_UART0]),
878 .txIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_1_8,
879 .rxIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_4_8,
880 .errorFxn = NULL
881 },
882#endif
883};
884
885const UART_Config UART_config[CC1350STK_UARTCOUNT] = {
886#if TI_UART_CONF_UART0_ENABLE
887 {
888 .fxnTablePtr = &UARTCC26XX_fxnTable,
889 .object = &uartCC26XXObjects[CC1350STK_UART0],
890 .hwAttrs = &uartCC26XXHWAttrs[CC1350STK_UART0]
891 },
892#endif
893};
894
895const uint_least8_t UART_count = CC1350STK_UARTCOUNT;
896
897#endif /* TI_UART_CONF_ENABLE */
898
899/*
900 * =============================== UDMA ===============================
901 */
902#include <ti/drivers/dma/UDMACC26XX.h>
903
904UDMACC26XX_Object udmaObjects[CC1350STK_UDMACOUNT];
905
906const UDMACC26XX_HWAttrs udmaHWAttrs[CC1350STK_UDMACOUNT] = {
907 {
908 .baseAddr = UDMA0_BASE,
909 .powerMngrId = PowerCC26XX_PERIPH_UDMA,
910 .intNum = INT_DMA_ERR,
911 .intPriority = ~0
912 }
913};
914
915const UDMACC26XX_Config UDMACC26XX_config[CC1350STK_UDMACOUNT] = {
916 {
917 .object = &udmaObjects[CC1350STK_UDMA0],
918 .hwAttrs = &udmaHWAttrs[CC1350STK_UDMA0]
919 },
920};
921
922/*
923 * =============================== Watchdog ===============================
924 */
925#include <ti/drivers/Watchdog.h>
926#include <ti/drivers/watchdog/WatchdogCC26XX.h>
927
928WatchdogCC26XX_Object watchdogCC26XXObjects[CC1350STK_WATCHDOGCOUNT];
929
930const WatchdogCC26XX_HWAttrs watchdogCC26XXHWAttrs[CC1350STK_WATCHDOGCOUNT] = {
931 {
932 .baseAddr = WDT_BASE,
933 .reloadValue = 1000 /* Reload value in milliseconds */
934 },
935};
936
937const Watchdog_Config Watchdog_config[CC1350STK_WATCHDOGCOUNT] = {
938 {
939 .fxnTablePtr = &WatchdogCC26XX_fxnTable,
940 .object = &watchdogCC26XXObjects[CC1350STK_WATCHDOG0],
941 .hwAttrs = &watchdogCC26XXHWAttrs[CC1350STK_WATCHDOG0]
942 },
943};
944
945const uint_least8_t Watchdog_count = CC1350STK_WATCHDOGCOUNT;
946
947/*
948 * Board-specific initialization function to disable external flash.
949 * This function is defined in the file CC1350STK_fxns.c
950 */
951extern void Board_initHook(void);
952
953/*
954 * ======== CC1350STK_initGeneral ========
955 */
957{
958 Power_init();
959
960 if (PIN_init(BoardGpioInitTable) != PIN_SUCCESS) {
961 /* Error with PIN_init */
962 while (1);
963 }
964
965 /* Perform board-specific initialization */
966 Board_initHook();
967}
968
969/*
970 * ======== Board_init ========
971 */
972void Board_init(void)
973{
975}
============================================================================
void CC1350STK_initGeneral(void)
Initialize the general board specific settings.
Definition: CC1350STK.c:956
Header file for the CC13xx/CC26xx clock implementation.
void clock_arch_standby_policy(void)
Called by the Power driver when dropping to some low-power state.
Definition: clock-arch.c:184
#define SSI1_BASE
Base address for SSI1.
Definition: ssi.h:59
#define SSI0_BASE
Base address for SSI0.
Definition: ssi.h:58