SmartSnippets DA1459x SDK
sdk
bsp
config
bsp_debug.h
Go to the documentation of this file.
1
42
#ifndef BSP_DEBUG_H_
43
#define BSP_DEBUG_H_
44
52
/* -------------------------------------- Debug settings ---------------------------------------- */
53
59
#ifndef dg_configENABLE_DEBUGGER
60
#define dg_configENABLE_DEBUGGER (1)
61
#endif
62
71
#ifndef dg_configFREERTOS_ENABLE_THREAD_AWARENESS
72
#if (dg_configIMAGE_SETUP == DEVELOPMENT_MODE)
73
#define dg_configFREERTOS_ENABLE_THREAD_AWARENESS (1)
74
#else
75
#define dg_configFREERTOS_ENABLE_THREAD_AWARENESS (0)
76
#endif
77
#endif
78
84
#ifndef dg_configENABLE_CMAC_DEBUGGER
85
#define dg_configENABLE_CMAC_DEBUGGER (0)
86
#endif
87
93
#ifndef dg_configUSE_SW_CURSOR
94
#define dg_configUSE_SW_CURSOR (0)
95
#define SW_CURSOR_PORT (0)
96
#define SW_CURSOR_PIN (0)
97
#else
98
# if !defined SW_CURSOR_PORT && !defined SW_CURSOR_PIN
99
# define SW_CURSOR_PORT (1)
100
# define SW_CURSOR_PIN (2)
101
# endif
102
#endif
103
112
#ifndef dg_configENABLE_MTB
113
#define dg_configENABLE_MTB (dg_configIMAGE_SETUP == DEVELOPMENT_MODE)
114
#endif
115
135
#if dg_configENABLE_MTB
136
#ifndef dg_configMTB_MASK
137
#define dg_configMTB_MASK (6)
138
#endif
/* dg_configMTB_MASK */
139
#define MTB_BUFFER_SIZE (1 << (dg_configMTB_MASK + 4))
140
#else
141
#undef dg_configMTB_MASK
142
#define dg_configMTB_MASK (0)
143
#endif
/* dg_configENABLE_MTB */
144
145
/* ---------------------------------------------------------------------------------------------- */
146
160
/* ----------------------------- Segger System View configuration ------------------------------- */
161
176
#ifndef dg_configSYSTEMVIEW
177
#define dg_configSYSTEMVIEW (0)
178
#endif
179
189
#if dg_configSYSTEMVIEW
190
# ifndef dg_configSYSTEMVIEW_STACK_OVERHEAD
191
# define dg_configSYSTEMVIEW_STACK_OVERHEAD (256)
/* in Bytes */
192
# endif
193
#else
194
# undef dg_configSYSTEMVIEW_STACK_OVERHEAD
195
# define dg_configSYSTEMVIEW_STACK_OVERHEAD (0)
196
#endif
/* dg_configSYSTEMVIEW */
197
198
199
/*
200
* Enable/Disable System View monitoring time critical interrupt handlers (BLE, CPM, USB).
201
* Disabling ISR monitoring could help reducing assertions triggered by System View monitoring overhead.
202
*
203
*/
204
213
#ifndef dg_configSYSTEMVIEW_MONITOR_BLE_ISR
214
#define dg_configSYSTEMVIEW_MONITOR_BLE_ISR (1)
215
#endif
216
225
#ifndef dg_configSYSTEMVIEW_MONITOR_CPM_ISR
226
#define dg_configSYSTEMVIEW_MONITOR_CPM_ISR (1)
227
#endif
228
237
#ifndef dg_configSYSTEMVIEW_MONITOR_USB_ISR
238
#define dg_configSYSTEMVIEW_MONITOR_USB_ISR (1)
239
#endif
240
/* ---------------------------------------------------------------------------------------------- */
241
247
/* --------------------------------- DEBUG GPIO handling macros --------------------------------- */
248
249
#define DBG_GET_SET_PAD_LATCH_REG(name) *(((volatile uint32_t *)(&name##_SET_REG) == (volatile uint32_t *)(&GPIO->P0_SET_DATA_REG)) ? &CRG_TOP->P0_SET_PAD_LATCH_REG : &CRG_TOP->P1_SET_PAD_LATCH_REG)
250
#define DBG_GET_RESET_PAD_LATCH_REG(name) *(((volatile uint32_t *)(&name##_SET_REG) == (volatile uint32_t *)(&GPIO->P0_SET_DATA_REG)) ? &CRG_TOP->P0_RESET_PAD_LATCH_REG : &CRG_TOP->P1_RESET_PAD_LATCH_REG)
251
#define DBG_TOGGLE_PIN_PAD_LATCH(name) DBG_GET_SET_PAD_LATCH_REG(name) = name##_PIN; \
252
DBG_GET_RESET_PAD_LATCH_REG(name) = name##_PIN
253
#define DBG_SET_PIN_REG(name) name##_SET_REG = name##_PIN
254
#define DBG_RESET_PIN_REG(name) name##_RESET_REG = name##_PIN
255
256
#define DBG_CONFIGURE(flag, name, func) \
257
{ \
258
if (flag == 1) { \
259
ASSERT_WARNING(REG_GETF(CRG_TOP, SYS_STAT_REG, COM_IS_UP) == 1); \
260
name##_MODE_REG = 0x300 + func; \
261
DBG_TOGGLE_PIN_PAD_LATCH(name); \
262
} \
263
}
264
265
#define DBG_CONFIGURE_HIGH(flag, name) \
266
{ \
267
if (flag == 1) { \
268
ASSERT_WARNING(REG_GETF(CRG_TOP, SYS_STAT_REG, COM_IS_UP) == 1); \
269
name##_MODE_REG = 0x300; \
270
DBG_SET_PIN_REG(name); \
271
DBG_TOGGLE_PIN_PAD_LATCH(name); \
272
} \
273
}
274
275
#define DBG_CONFIGURE_LOW(flag, name) \
276
{ \
277
if (flag == 1) { \
278
ASSERT_WARNING(REG_GETF(CRG_TOP, SYS_STAT_REG, COM_IS_UP) == 1); \
279
name##_MODE_REG = 0x300; \
280
DBG_RESET_PIN_REG(name); \
281
DBG_TOGGLE_PIN_PAD_LATCH(name); \
282
} \
283
}
284
285
#define DBG_SET_HIGH(flag, name) \
286
{ \
287
if (flag == 1) { \
288
ASSERT_WARNING(REG_GETF(CRG_TOP, SYS_STAT_REG, COM_IS_UP) == 1); \
289
name##_MODE_REG = 0x300; \
290
DBG_SET_PIN_REG(name); \
291
DBG_TOGGLE_PIN_PAD_LATCH(name); \
292
} \
293
}
294
295
#define DBG_SET_LOW(flag, name) \
296
{ \
297
if (flag == 1) { \
298
ASSERT_WARNING(REG_GETF(CRG_TOP, SYS_STAT_REG, COM_IS_UP) == 1); \
299
name##_MODE_REG = 0x300; \
300
DBG_RESET_PIN_REG(name); \
301
DBG_TOGGLE_PIN_PAD_LATCH(name); \
302
} \
303
}
304
305
/* ---------------------------------------------------------------------------------------------- */
306
307
308
/* ---------------------------------- HardFault or NMI event ------------------------------------ */
309
310
#ifndef EXCEPTION_DEBUG
311
#define EXCEPTION_DEBUG (0) // Requires GPIO config.
312
#endif
313
314
/* ---------------------------------------------------------------------------------------------- */
315
316
317
/* --------------------------------- Clock and Power Manager ------------------------------------ */
318
319
320
#ifndef PWR_MGR_DEBUG
321
#define PWR_MGR_DEBUG (0)
322
#endif
323
324
#ifndef SYS_TIM_DEBUG
325
#define SYS_TIM_DEBUG (0)
326
#endif
327
328
#ifndef PWR_MGR_FUNCTIONAL_DEBUG
329
#define PWR_MGR_FUNCTIONAL_DEBUG (0) // Requires GPIO config.
330
#endif
331
332
#ifndef PWR_MGR_USE_TIMING_DEBUG
333
#define PWR_MGR_USE_TIMING_DEBUG (0) // Requires GPIO config.
334
#endif
335
336
#ifndef CLK_MGR_USE_TIMING_DEBUG
337
#define CLK_MGR_USE_TIMING_DEBUG (0) // Requires GPIO config.
338
#endif
339
340
341
/* Controls which RAM blocks will be retained when the MEASURE_SLEEP_CURRENT test mode is used
342
* (optional). */
343
#ifndef dg_configTESTMODE_RETAIN_RAM
344
#define dg_configTESTMODE_RETAIN_RAM (0x1F)
345
#endif
346
347
/* Controls whether the Cache will be retained when the MEASURE_SLEEP_CURRENT test mode is used
348
* (optional). */
349
#ifndef dg_configTESTMODE_RETAIN_CACHE
350
#define dg_configTESTMODE_RETAIN_CACHE (0)
351
#endif
352
353
/* Controls whether the ECC RAM will be retained when the MEASURE_SLEEP_CURRENT test mode is used
354
* (optional). */
355
#ifdef dg_config_TESTMODE_RETAIN_ECCRAM
356
#error "dg_config_TESTMODE_RETAIN_ECCRAM is no longer supported. "
357
"Use dg_configTESTMODE_RETAIN_ECCRAM instead (no underscore)!"
358
#endif
359
360
#ifndef dg_configTESTMODE_RETAIN_ECCRAM
361
#define dg_configTESTMODE_RETAIN_ECCRAM (0)
362
#endif
363
364
/* ---------------------------------------------------------------------------------------------- */
365
366
367
/* --------------------------------------- USB Charger ------------------------------------------ */
368
369
370
/* ---------------------------------------------------------------------------------------------- */
371
372
373
/* ------------------------------------------- BLE ---------------------------------------------- */
374
375
376
#ifndef BLE_ADAPTER_DEBUG
377
#define BLE_ADAPTER_DEBUG (0) // Requires GPIO config.
378
#endif
379
380
#define BLE_RX_EN_FUNC (57)
381
382
#ifndef BLE_WINDOW_STATISTICS
383
#define BLE_WINDOW_STATISTICS (0)
384
#endif
385
386
#ifndef BLE_SLEEP_PERIOD_DEBUG
387
#define BLE_SLEEP_PERIOD_DEBUG (0) // Requires logging and window statistics.
388
#endif
389
390
#ifndef BLE_WAKEUP_MONITOR_PERIOD
391
#define BLE_WAKEUP_MONITOR_PERIOD (1024)
392
#endif
393
394
#ifndef BLE_MAX_MISSES_ALLOWED
395
#define BLE_MAX_MISSES_ALLOWED (0)
396
#endif
397
398
#ifndef BLE_MAX_DELAYS_ALLOWED
399
#define BLE_MAX_DELAYS_ALLOWED (0)
400
#endif
401
402
#ifndef BLE_SSP_DEBUG
403
#define BLE_SSP_DEBUG (0)
404
#endif
405
406
/* ---------------------------------------------------------------------------------------------- */
407
408
409
/* ------------------------------------------ Flash --------------------------------------------- */
410
#ifndef FLASH_DEBUG
411
#define FLASH_DEBUG (0) // Requires GPIO config.
412
#endif
413
414
#ifndef __DBG_QSPI_ENABLED
415
#define __DBG_QSPI_ENABLED (0)
416
#endif
417
418
/* ---------------------------------------------------------------------------------------------- */
419
420
/* ------------------------------------------ SysADC -------------------------------------------- */
421
#ifndef SYS_ADC_DEBUG
422
#define SYS_ADC_DEBUG (0) // Requires GPIO config.
423
#endif
424
/* ---------------------------------------------------------------------------------------------- */
425
426
/* ------------------------------------------ Common -------------------------------------------- */
427
#ifndef CMN_TIMING_DEBUG
428
#define CMN_TIMING_DEBUG (0) // Requires GPIO config.
429
#endif
430
/* ---------------------------------------------------------------------------------------------- */
431
432
/* ------------------------------------ GPIO configuration -------------------------------------- */
433
434
/* Enable/Disable GPIO pin assignment conflict detection
435
*/
436
#define DEBUG_GPIO_ALLOC_MONITOR_ENABLED (0)
437
438
439
/* Exception handling debug configuration
440
*
441
*/
442
#if (EXCEPTION_DEBUG == 0)
443
// Dummy values to suppress compiler errors
444
#define EXCEPTIONDBG_MODE_REG *(volatile int *)0x20000000
445
#define EXCEPTIONDBG_SET_REG *(volatile int *)0x20000000
446
#define EXCEPTIONDBG_RESET_REG *(volatile int *)0x20000000
447
#define EXCEPTIONDBG_PIN (0)
448
449
#else
450
451
452
#endif
/* EXCEPTION_DEBUG */
453
454
/* Functional debug configuration
455
*
456
* Note that GPIO overlapping is allowed if the tracked events are discrete and the initial GPIO
457
* configuration is the same! No checking is performed for erroneous configuration though!
458
*
459
*/
460
#if (PWR_MGR_FUNCTIONAL_DEBUG == 0)
461
// Dummy values to suppress compiler errors
462
#define PWRDBG_TICK_MODE_REG *(volatile int *)0x20000000
463
#define PWRDBG_TICK_SET_REG *(volatile int *)0x20000000
464
#define PWRDBG_TICK_RESET_REG *(volatile int *)0x20000000
465
#define PWRDBG_TICK_PIN (0)
466
467
#define PWRDBG_POWERUP_MODE_REG *(volatile int *)0x20000000
468
#define PWRDBG_POWERUP_SET_REG *(volatile int *)0x20000000
469
#define PWRDBG_POWERUP_RESET_REG *(volatile int *)0x20000000
470
#define PWRDBG_POWERUP_PIN (0)
471
472
#else
473
474
#endif
/* PWR_MGR_FUNCTIONAL_DEBUG */
475
476
/* Timing debug configuration
477
*
478
* Note that in this mode the pad latches are removed immediately after the execution resumes from
479
* the __WFI(). Because of this, it is not advised to use this feature in projects that use GPIOS.
480
* Nevertheless, in case it is used, make sure that the "peripheral initialization" is also done
481
* at that point, modifying sys_power_mgr.c accordingly.
482
*
483
* Note also that GPIO overlapping is allowed if the tracked events are discrete and the initial
484
* GPIO configuration is the same! No checking is performed for erroneous configuration though!
485
*
486
*/
487
#if (PWR_MGR_USE_TIMING_DEBUG == 0)
488
// Dummy values to suppress compiler errors
489
#define PWRDBG_SLEEP_ENTER_MODE_REG *(volatile int *)0x20000000
490
#define PWRDBG_SLEEP_ENTER_SET_REG *(volatile int *)0x20000000
491
#define PWRDBG_SLEEP_ENTER_RESET_REG *(volatile int *)0x20000000
492
#define PWRDBG_SLEEP_ENTER_PIN (0)
493
494
#define PWRDBG_SLEEP_EXIT_MODE_REG *(volatile int *)0x20000000
495
#define PWRDBG_SLEEP_EXIT_SET_REG *(volatile int *)0x20000000
496
#define PWRDBG_SLEEP_EXIT_RESET_REG *(volatile int *)0x20000000
497
#define PWRDBG_SLEEP_EXIT_PIN (0)
498
499
#else
500
501
#endif
/* CLK_MGR_USE_TIMING_DEBUG */
502
503
#if (CLK_MGR_USE_TIMING_DEBUG == 0)
504
// Dummy values to suppress compiler errors
505
#define CLKDBG_LOWER_CLOCKS_MODE_REG *(volatile int *)0x20000000
506
#define CLKDBG_LOWER_CLOCKS_SET_REG *(volatile int *)0x20000000
507
#define CLKDBG_LOWER_CLOCKS_RESET_REG *(volatile int *)0x20000000
508
#define CLKDBG_LOWER_CLOCKS_PIN (0)
509
510
#define CLKDBG_XTAL32M_SETTLED_MODE_REG *(volatile int *)0x20000000
511
#define CLKDBG_XTAL32M_SETTLED_SET_REG *(volatile int *)0x20000000
512
#define CLKDBG_XTAL32M_SETTLED_RESET_REG *(volatile int *)0x20000000
513
#define CLKDBG_XTAL32M_SETTLED_PIN (0)
514
515
#define CLKDBG_XTAL32M_READY_MODE_REG *(volatile int *)0x20000000
516
#define CLKDBG_XTAL32M_READY_SET_REG *(volatile int *)0x20000000
517
#define CLKDBG_XTAL32M_READY_RESET_REG *(volatile int *)0x20000000
518
#define CLKDBG_XTAL32M_READY_PIN (0)
519
520
#define CLKDBG_DBLR_ON_MODE_REG *(volatile int *)0x20000000
521
#define CLKDBG_DBLR_ON_SET_REG *(volatile int *)0x20000000
522
#define CLKDBG_DBLR_ON_RESET_REG *(volatile int *)0x20000000
523
#define CLKDBG_DBLR_ON_PIN (0)
524
525
#else
526
527
#endif
/* CLK_MGR_USE_TIMING_DEBUG */
528
529
530
#if (BLE_ADAPTER_DEBUG == 0)
531
#define BLEBDG_ADAPTER_MODE_REG *(volatile int *)0x20000000
532
#define BLEBDG_ADAPTER_SET_REG *(volatile int *)0x20000000
533
#define BLEBDG_ADAPTER_RESET_REG *(volatile int *)0x20000000
534
#define BLEBDG_ADAPTER_PIN (0)
535
536
#else
537
538
539
#endif
/* BLE_ADAPTER_DEBUG */
540
541
542
#if (CMN_TIMING_DEBUG == 0)
543
// Common: Inside critical section (initial configuration: low)
544
#define CMNDBG_CRITICAL_SECTION_MODE_REG *(volatile int *)0x20000000
545
#define CMNDBG_CRITICAL_SECTION_SET_REG *(volatile int *)0x20000000
546
#define CMNDBG_CRITICAL_SECTION_RESET_REG *(volatile int *)0x20000000
547
#define CMNDBG_CRITICAL_SECTION_PIN (0)
548
549
#else
550
551
552
#endif
/* CMN_TIMING_DEBUG */
553
554
555
/* Flash debug configuration
556
*
557
*/
558
#if (FLASH_DEBUG == 0)
559
// Write page (initial configuration: low)
560
#define FLASHDBG_PAGE_PROG_MODE_REG *(volatile int *)0x20000000
561
#define FLASHDBG_PAGE_PROG_SET_REG *(volatile int *)0x20000000
562
#define FLASHDBG_PAGE_PROG_RESET_REG *(volatile int *)0x20000000
563
#define FLASHDBG_PAGE_PROG_PIN (0)
564
565
// Program page wait loop (initial configuration: low)
566
#define FLASHDBG_PAGE_PROG_WL_MODE_REG *(volatile int *)0x20000000
567
#define FLASHDBG_PAGE_PROG_WL_SET_REG *(volatile int *)0x20000000
568
#define FLASHDBG_PAGE_PROG_WL_RESET_REG *(volatile int *)0x20000000
569
#define FLASHDBG_PAGE_PROG_WL_PIN (0)
570
571
// Program page wait loop - pending irq check (initial configuration: low)
572
#define FLASHDBG_PAGE_PROG_WL_IRQ_MODE_REG *(volatile int *)0x20000000
573
#define FLASHDBG_PAGE_PROG_WL_IRQ_SET_REG *(volatile int *)0x20000000
574
#define FLASHDBG_PAGE_PROG_WL_IRQ_RESET_REG *(volatile int *)0x20000000
575
#define FLASHDBG_PAGE_PROG_WL_IRQ_PIN (0)
576
577
// Suspend op (initial configuration: low)
578
#define FLASHDBG_SUSPEND_MODE_REG *(volatile int *)0x20000000
579
#define FLASHDBG_SUSPEND_SET_REG *(volatile int *)0x20000000
580
#define FLASHDBG_SUSPEND_RESET_REG *(volatile int *)0x20000000
581
#define FLASHDBG_SUSPEND_PIN (0)
582
583
// Erase sector cmd (initial configuration: low)
584
#define FLASHDBG_SECTOR_ERASE_MODE_REG *(volatile int *)0x20000000
585
#define FLASHDBG_SECTOR_ERASE_SET_REG *(volatile int *)0x20000000
586
#define FLASHDBG_SECTOR_ERASE_RESET_REG *(volatile int *)0x20000000
587
#define FLASHDBG_SECTOR_ERASE_PIN (0)
588
589
// Notify task (initial configuration: low)
590
#define FLASHDBG_TASK_NOTIFY_MODE_REG *(volatile int *)0x20000000
591
#define FLASHDBG_TASK_NOTIFY_SET_REG *(volatile int *)0x20000000
592
#define FLASHDBG_TASK_NOTIFY_RESET_REG *(volatile int *)0x20000000
593
#define FLASHDBG_TASK_NOTIFY_PIN (0)
594
595
// Suspend action (low level) (initial configuration: low)
596
#define FLASHDBG_SUSPEND_ACTION_MODE_REG *(volatile int *)0x20000000
597
#define FLASHDBG_SUSPEND_ACTION_SET_REG *(volatile int *)0x20000000
598
#define FLASHDBG_SUSPEND_ACTION_RESET_REG *(volatile int *)0x20000000
599
#define FLASHDBG_SUSPEND_ACTION_PIN (0)
600
601
// Resume op (initial configuration: low)
602
#define FLASHDBG_RESUME_MODE_REG *(volatile int *)0x20000000
603
#define FLASHDBG_RESUME_SET_REG *(volatile int *)0x20000000
604
#define FLASHDBG_RESUME_RESET_REG *(volatile int *)0x20000000
605
#define FLASHDBG_RESUME_PIN (0)
606
607
#else
608
609
610
#endif
/* FLASH_DEBUG */
611
612
#if (SYS_ADC_DEBUG == 0)
613
// Write page (initial configuration: low)
614
#define SYS_ADC_DBG_READ_TEMPERATURE_MODE_REG *(volatile int *)0x20000000
615
#define SYS_ADC_DBG_READ_TEMPERATURE_SET_REG *(volatile int *)0x20000000
616
#define SYS_ADC_DBG_READ_TEMPERATURE_RESET_REG *(volatile int *)0x20000000
617
#define SYS_ADC_DBG_READ_TEMPERATURE_PIN (0)
618
619
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_MODE_REG *(volatile int *)0x20000000
620
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_SET_REG *(volatile int *)0x20000000
621
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_RESET_REG *(volatile int *)0x20000000
622
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_PIN (0)
623
624
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_MODE_REG *(volatile int *)0x20000000
625
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_SET_REG *(volatile int *)0x20000000
626
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_RESET_REG *(volatile int *)0x20000000
627
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_PIN (0)
628
629
#define SYS_ADC_DBG_TIMER_RESET_MODE_REG *(volatile int *)0x20000000
630
#define SYS_ADC_DBG_TIMER_RESET_SET_REG *(volatile int *)0x20000000
631
#define SYS_ADC_DBG_TIMER_RESET_RESET_REG *(volatile int *)0x20000000
632
#define SYS_ADC_DBG_TIMER_RESET_PIN (0)
633
634
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_MODE_REG *(volatile int *)0x20000000
635
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_SET_REG *(volatile int *)0x20000000
636
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_RESET_REG *(volatile int *)0x20000000
637
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_PIN (0)
638
#else
/* SYS_ADC_DEBUG */
639
#pragma message "Deactivate switches 2 and 4 on S1 of the Motherboard to ensure proper toggling of P0_11 and P0_15"
640
641
#define SYS_ADC_DBG_READ_TEMPERATURE_MODE_REG GPIO->P1_00_MODE_REG
642
#define SYS_ADC_DBG_READ_TEMPERATURE_SET_REG GPIO->P1_SET_DATA_REG
643
#define SYS_ADC_DBG_READ_TEMPERATURE_RESET_REG GPIO->P1_RESET_DATA_REG
644
#define SYS_ADC_DBG_READ_TEMPERATURE_PIN (1 << 0)
645
646
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_MODE_REG GPIO->P1_01_MODE_REG
647
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_SET_REG GPIO->P1_SET_DATA_REG
648
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_RESET_REG GPIO->P1_RESET_DATA_REG
649
#define SYS_ADC_DBG_SET_RF_CALIBRATION_INFO_PIN (1 << 1)
650
651
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_MODE_REG GPIO->P0_10_MODE_REG
652
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_SET_REG GPIO->P0_SET_DATA_REG
653
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_RESET_REG GPIO->P0_RESET_DATA_REG
654
#define SYS_ADC_DBG_RC_CALIBRATION_NOTIFY_PIN (1 << 10)
655
656
#define SYS_ADC_DBG_TIMER_RESET_MODE_REG GPIO->P0_11_MODE_REG
657
#define SYS_ADC_DBG_TIMER_RESET_SET_REG GPIO->P0_SET_DATA_REG
658
#define SYS_ADC_DBG_TIMER_RESET_RESET_REG GPIO->P0_RESET_DATA_REG
659
#define SYS_ADC_DBG_TIMER_RESET_PIN (1 << 11)
660
661
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_MODE_REG GPIO->P0_15_MODE_REG
662
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_SET_REG GPIO->P0_SET_DATA_REG
663
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_RESET_REG GPIO->P0_RESET_DATA_REG
664
#define SYS_ADC_DBG_RC_CLOCK_CALIBRATION_PIN (1 << 15)
665
#endif
666
667
/* Enables the logging of stack (RW) heap memories usage.
668
*
669
* The feature shall only be enabled in development/debug mode
670
*/
671
#ifndef dg_configLOG_BLE_STACK_MEM_USAGE
672
#define dg_configLOG_BLE_STACK_MEM_USAGE (0)
673
#endif
674
675
676
#endif
/* BSP_DEBUG_H_ */
677
Generated on Tue Oct 24 2023 10:38:23 for SmartSnippets DA1459x SDK by
1.8.16