AM273x MCU+ SDK  08.06.00
stc/v0/sdl_stc.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2022 Texas Instruments Incorporated.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * 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
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  * Name : sdl_stc.h
33 */
51 #ifndef SDL_STC_H_
52 #define SDL_STC_H_
53 
54 #ifdef __cplusplus
55 extern "C"
56 {
57 #endif
58 
59 /* ========================================================================== */
60 /* Include Files */
61 /* ========================================================================== */
62 
63 
64 #include <stdbool.h>
65 #include <stdint.h>
66 #include <sdl/include/hw_types.h>
67 #include <sdl/include/sdl_types.h>
68 #include <sdl/sdlr.h>
69 #include <sdl/stc/v0/soc/sdl_soc_stc.h>
70 #include <sdl/soc.h>
71 
72 
96 /**************************************************************************
97 * STC Parameters:
98 **************************************************************************/
105 /*
106 * STC Parameters R5F
107 */
108 
109 #define STC_MSS_INTERVAL_NUM (uint32_t)(1U)
110 #define STC_MSS_LP_SCAN_MODE (uint32_t)(0U)
111 #define STC_MSS_CODEC_SPREAD_MODE (uint32_t)(1U)
112 #define STC_MSS_CAP_IDLE_CYCLE (uint32_t)(3U)
113 #define STC_MSS_SCANEN_HIGH_CAP_IDLE_CYCLE (uint32_t)(3U)
114 #define STC_MSS_MAX_RUN_TIME (uint32_t)(0xFFFFFFFFU)
115 #define STC_MSS_CLK_DIV (uint32_t)(1U)
116 #define STC_ROM_START_ADDRESS (uint32_t)(0U)
117 #define STC_pROM_START_ADDRESS (uint32_t)(1U)
118 
119 
120 /*
121 * STC Parameters DSP
122 */
123 
124 #define STC_DSS_INTERVAL_NUM (uint32_t)(1U)
125 #define STC_DSS_LP_SCAN_MODE (uint32_t)(0U)
126 #define STC_DSS_CODEC_SPREAD_MODE (uint32_t)(1U)
127 #define STC_DSS_CAP_IDLE_CYCLE (uint32_t)(3U)
128 #define STC_DSS_SCANEN_HIGH_CAP_IDLE_CYCLE (uint32_t)(3U)
129 #define STC_DSS_MAX_RUN_TIME (uint32_t)(0xFFFFFFFFU)
130 #define STC_DSS_CLK_DIV (uint32_t)(1U)
131 #define STC_ROM_START_ADDRESS (uint32_t)(0U)
132 #define STC_pROM_START_ADDRESS (uint32_t)(1U)
133 
134 
135 
139 /* ========================================================================== */
140 /* Structures */
141 /* ========================================================================== */
142 
143 
153 typedef struct
154 {
156  uint32_t lpScanMode;
158  uint32_t codecSpreadMode;
160  uint32_t capIdleCycle;
163 
164 }__attribute__((packed))
165 SDL_STC_ScanModeconfig;
166 
167 typedef struct
168 {
170  uint32_t intervalNum;
172  uint32_t maxRunTime;
174  uint32_t clkDiv;
176  uint32_t romStartAddress;
178  uint32_t pRomStartAdd;
180  uint32_t faultInsert;
182  uint32_t stcDiagnostic;
184  SDL_STC_ScanModeconfig modeConfig;
185 
186 } __attribute__((packed))
187 SDL_STC_Config;
188 
197 typedef enum
198 {
209 
211 
212 typedef enum
213 {
218  /* Invalid test type */
220 
222 
226 /* ========================================================================== */
227 /* Global Variables */
228 /* ========================================================================== */
229 
230 /* None */
231 
232 
233 /* ========================================================================== */
234 /* Function Declarations */
235 /* ========================================================================== */
236 
253  int32_t SDL_STC_getStatus(SDL_STC_Inst instance);
254 
269 int32_t SDL_STC_selfTest(SDL_STC_Inst instance, SDL_STC_TestType testType,SDL_STC_Config *pConfig);
283 static int32_t SDL_STC_configure(SDL_STC_Inst instance, SDL_STC_Config *pConfig, SDL_STC_TestType testType);
291 static int32_t SDL_STC_runTest(SDL_STC_Inst instance );
299 static void SDL_STC_delay(int32_t count);
307 static void SDL_Delay(void);
315 void SDL_STC_dspInit(void);
316 
321 /**************************************************************************
322 * Register Overlay Structure
323 **************************************************************************/
324 
325 typedef struct
326 {
328  volatile uint32_t STCGCR0;
330  volatile uint32_t STCGCR1;
332  volatile uint32_t STCTPR;
334  volatile uint32_t STC_CADDR;
336  volatile uint32_t STCCICR;
338  volatile uint32_t STCGSTAT;
340  volatile uint32_t STCFSTAT;
342  volatile uint32_t STCSCSCR;
344  volatile uint32_t STC_CADDR2;
346  volatile uint32_t STC_CLKDIV;
348  volatile uint32_t STC_SEGPLR;
350  volatile uint32_t SEG0_START_ADDR;
352  volatile uint32_t SEG1_START_ADDR;
354  volatile uint32_t SEG2_START_ADDR;
356  volatile uint32_t SEG3_START_ADDR;
357 
358 
360  volatile uint32_t CORE1_CURMISR_0;
362  volatile uint32_t CORE1_CURMISR_1;
364  volatile uint32_t CORE1_CURMISR_2;
366  volatile uint32_t CORE1_CURMISR_3;
368  volatile uint32_t CORE1_CURMISR_4;
370  volatile uint32_t CORE1_CURMISR_5;
372  volatile uint32_t CORE1_CURMISR_6;
374  volatile uint32_t CORE1_CURMISR_7;
376  volatile uint32_t CORE1_CURMISR_8;
378  volatile uint32_t CORE1_CURMISR_9;
380  volatile uint32_t CORE1_CURMISR_10;
382  volatile uint32_t CORE1_CURMISR_11;
384  volatile uint32_t CORE1_CURMISR_12;
386  volatile uint32_t CORE1_CURMISR_13;
388  volatile uint32_t CORE1_CURMISR_14;
390  volatile uint32_t CORE1_CURMISR_15;
392  volatile uint32_t CORE1_CURMISR_16;
394  volatile uint32_t CORE1_CURMISR_17;
396  volatile uint32_t CORE1_CURMISR_18;
398  volatile uint32_t CORE1_CURMISR_19;
400  volatile uint32_t CORE1_CURMISR_20;
402  volatile uint32_t CORE1_CURMISR_21;
404  volatile uint32_t CORE1_CURMISR_22;
406  volatile uint32_t CORE1_CURMISR_23;
408  volatile uint32_t CORE1_CURMISR_24;
410  volatile uint32_t CORE1_CURMISR_25;
412  volatile uint32_t CORE1_CURMISR_26;
414  volatile uint32_t CORE1_CURMISR_27;
415 
416 } SDL_stcRegs;
417 
418 
419 
420 /**************************************************************************
421 * Register Macros
422 **************************************************************************/
423 
424 #define SDL_STC_STCGCR0 (0x00000000U)
425 #define SDL_STC_STCGCR1 (0x00000004U)
426 #define SDL_STC_STCTPR (0x00000008U)
427 #define SDL_STC_CADDR (0x0000000CU)
428 #define SDL_STC_STCCICR (0x00000010U)
429 #define SDL_STC_STCGSTAT (0x00000014U)
430 #define SDL_STC_STCFSTAT (0x00000018U)
431 #define SDL_STC_STCSCSCR (0x0000001CU)
432 #define SDL_STC_CADDR2 (0x00000020U)
433 #define SDL_STC_CLKDIV (0x00000024U)
434 #define SDL_STC_SEGPLR (0x00000028U)
435 #define SDL_STC_SEG0_START_ADDR (0x0000002CU)
436 #define SDL_STC_SEG1_START_ADDR (0x00000030U)
437 #define SDL_STC_SEG2_START_ADDR (0x00000034U)
438 #define SDL_STC_SEG3_START_ADDR (0x00000038U)
439 
440 
441 /**************************************************************************
442 * Field Definition Macros
443 **************************************************************************/
444 
445 
446 /* STC_CTRL0 */
447 
448 #define SDL_STC_STCGCR0_INTCOUNT_B16_MASK (0xFFFF0000U)
449 #define SDL_STC_STCGCR0_INTCOUNT_B16_SHIFT (16U)
450 #define SDL_STC_STCGCR0_INTCOUNT_B16_MAX (0xFFFF0000U)
451 
452 #define SDL_STC_STCGCR0_CAP_IDLE_CYCLE_MASK (0x00000700U)
453 #define SDL_STC_STCGCR0_CAP_IDLE_CYCLE_SHIFT (8U)
454 #define SDL_STC_STCGCR0_CAP_IDLE_CYCLE_MAX (0x00000700U)
455 
456 #define SDL_STC_STCGCR0_SCANEN_HIGH_CAP_IDLE_CYCLE_MASK (0x000000E0U)
457 #define SDL_STC_STCGCR0_SCANEN_HIGH_CAP_IDLE_CYCLE_SHIFT (5U)
458 #define SDL_STC_STCGCR0_SCANEN_HIGH_CAP_IDLE_CYCLE_MAX (0x000000E0U)
459 
460 #define SDL_STC_STCGCR0_RS_CNT_B1_MASK (0x00000003U)
461 #define SDL_STC_STCGCR0_RS_CNT_B1_SHIFT (0U)
462 
463 
464 /* STC_CTRL1 */
465 
466 #define SDL_STC_SEG0_CORE_SEL_MASK (0x00000F00U)
467 #define SDL_STC_SEG0_CORE_SEL_SHIFT (8U)
468 #define SDL_STC_SEG0_CORE_SEL_ENABLE (0x1U)
469 
470 
471 #define SDL_STC_CODEC_SPREAD_MODE_MASK (0x00000040U)
472 #define SDL_STC_CODEC_SPREAD_MODE_SHIFT (6U)
473 #define SDL_STC_CODEC_SPREAD_MODE_ENABLE (0x1U)
474 #define SDL_STC_CODEC_SPREAD_MODE_DISABLE (0x0U)
475 
476 #define SDL_STC_LP_SCAN_MODE_MASK (0x00000020U)
477 #define SDL_STC_LP_SCAN_MODE_SHIFT (5U)
478 #define SDL_STC_LP_SCAN_MODE_ENABLE (0x1U)
479 #define SDL_STC_LP_SCAN_MODE_DISABLE (0x0U)
480 
481 
482 #define SDL_STC_ROM_ACCESS_INV_MASK (0x00000010U)
483 #define SDL_STC_ROM_ACCESS_INV_SHIFT (4U)
484 #define SDL_STC_ROM_ACCESS_INV_DISABLE (0x0U)
485 
486 #define SDL_STC_ST_ENA_B4_MASK (0x0000000FU)
487 #define SDL_STC_ST_ENA_B4_SHIFT (0x00000000U)
488 #define SDL_STC_ST_ENA_B4_ENABLE (0xAU)
489 
490 
491 
492 /* STC_STCTPR */
493 
494 #define SDL_STC_TO_PRELOAD_MASK (0xFFFFFFFFU)
495 #define SDL_STC_TO_PRELOAD_SHIFT (0x00000000U)
496 #define SDL_STC_TO_PRELOAD_MAX (0xFFFFFFFFU)
497 
498 /* STC_CADDR */
499 
500 #define SDL_STC_ADDR1_MASK (0xFFFFFFFFU)
501 #define SDL_STC_ADDR1_SHIFT (0x00000000U)
502 
503 
504 /* STC_STCCICR */
505 
506 #define SDL_STC_CORE2_ICOUNT_MASK (0xFFFF0000U)
507 #define SDL_STC_CORE2_ICOUNT_SHIFT (16U)
508 
509 #define SDL_STC_CORE1_ICOUNT_MASK (0x0000FFFFU)
510 #define SDL_STC_CORE1_ICOUNT_SHIFT (0x00000000U)
511 
512 
513 /* STC_STCGSTAT */
514 
515 #define SDL_STC_ST_ACTIVE_MASK (0x00000F00U)
516 #define SDL_STC_ST_ACTIVE_SHIFT (8U)
517 #define SDL_STC_ST_ACTIVE_ENABLE (0xAU)
518 
519 
520 #define SDL_STC_TEST_FAIL_MASK (0x00000002U)
521 #define SDL_STC_TEST_FAIL_SHIFT (1U)
522 #define SDL_STC_TEST_FAIL_ENABLE (0x1U)
523 #define SDL_STC_TEST_FAIL_DISABLE (0x0U)
524 
525 #define SDL_STC_TEST_DONE_MASK (0x00000001U)
526 #define SDL_STC_TEST_DONE_SHIFT (0U)
527 #define SDL_STC_TEST_DONE_ENABLE (0x1U)
528 #define SDL_STC_TEST_DONE_DISABLE (0x0U)
529 
530 /* STC_STCFSTAT */
531 
532 #define SDL_STC_FSEG_ID_MASK (0x00000018U)
533 #define SDL_STC_FSEG_ID_SHIFT (3U)
534 
535 
536 #define SDL_STC_TO_ER_B1_MASK (0x00000004U)
537 #define SDL_STC_TO_ER_B1_SHIFT (2U)
538 #define SDL_STC_TO_ER_B1_ENABLE (0x1U)
539 #define SDL_STC_TO_ER_B1_DISABLE (0x0U)
540 
541 #define SDL_STC_CPU2_FAIL_B1_MASK (0x00000002U)
542 #define SDL_STC_CPU2_FAIL_B1_SHIFT (0x1U)
543 #define SDL_STC_CPU2_FAIL_B1_ENABLE (0x1U)
544 #define SDL_STC_CPU2_FAIL_B1_DISABLE (0x0U)
545 
546 #define SDL_STC_CPU1_FAIL_B1_MASK (0x00000001U)
547 #define SDL_STC_CPU1_FAIL_B1_SHIFT (0U)
548 #define SDL_STC_CPU1_FAIL_B1_ENABLE (0x1U)
549 #define SDL_STC_CPU1_FAIL_B1_DISABLE (0x0U)
550 
551 /* STCSCSCR */
552 
553 #define SDL_STC_FAULT_INS_B1_MASK (0x00000010U)
554 #define SDL_STC_FAULT_INS_B1_SHIFT (4U)
555 #define SDL_STC_FAULT_INS_B1_ENABLE (0x1U)
556 #define SDL_STC_FAULT_INS_B1_DISABLE (0x0U)
557 
558 
559 #define SDL_STC_SELF_CHECK_KEY_B4_MASK (0x0000000FU)
560 #define SDL_STC_SELF_CHECK_KEY_B4_SHIFT (0U)
561 #define SDL_STC_SELF_CHECK_KEY_B4_ENABLE (0xAU)
562 #define SDL_STC_SELF_CHECK_KEY_B4_DISABLE (0U)
563 
564 
565 
566 /* STC_CADDR2 */
567 
568 #define SDL_STC_ADDR2_MASK (0xFFFFFFFFU)
569 #define SDL_STC_ADDR2_SHIFT (0x00000000U)
570 
571 /* STC_CLKDIV */
572 
573 #define SDL_STC_CLKDIV0_MASK (0x07000000U)
574 #define SDL_STC_CLKDIV0_SHIFT (24U)
575 #define SDL_STC_CLKDIV1_MASK (0x00070000U)
576 #define SDL_STC_CLKDIV1_SHIFT (16U)
577 #define SDL_STC_CLKDIV2_MASK (0x00000700U)
578 #define SDL_STC_CLKDIV2_SHIFT (8U)
579 #define SDL_STC_CLKDIV3_MASK (0x00000007U)
580 #define SDL_STC_CLKDIV3_SHIFT (0U)
581 
582 /* STC_SEGPLR */
583 
584 #define SDL_STC_SEGPLR_MASK (0x00000003U)
585 #define SDL_STC_SEGPLR_SHIFT (0U)
586 
587 /* SEG0_START_ADDR */
588 
589 #define SDL_STC_SEG0_START_ADDR_MASK (0x000FFFFFU)
590 #define SDL_STC_SEG0_START_ADDR_SHIFT (0U)
591 
592 /* SEG1_START_ADDR */
593 
594 #define SDL_STC_SEG1_START_ADDR0_MASK (0x000FFFFFU)
595 #define SDL_STC_SEG1_START_ADDR0_SHIFT (0U)
596 
597 /* SEG2_START_ADDR */
598 
599 #define SDL_STC_SEG2_START_ADDR0_MASK (0x000FFFFFU)
600 #define SDL_STC_SEG2_START_ADDR0_SHIFT (0U)
601 
602 /* SEG3_START_ADDR */
603 
604 #define SDL_STC_SEG3_START_ADDR0_MASK (0x000FFFFFU)
605 #define SDL_STC_SEG3_START_ADDR0_SHIFT (0U)
606 
607 /* MSS_RCM */
608 #define SDL_MSS_STC_RESET_MASK (0x00000004U)
609 #define SDL_MSS_STC_RESET_SHIFT (2U)
610 
611 #define SDL_MSS_STC_RESET_CLEAR_MASK (0x00000007)
612 #define SDL_MSS_STC_RESET_CLEAR_SHIFT (0U)
613 #define SDL_MSS_STC_RESET_CLEAR_ENABLE (0x7U)
614 
615 /* DSS_RCM */
616 #define SDL_DSS_STC_RESET_MASK (0x00000020U)
617 #define SDL_DSS_STC_RESET_SHIFT (5U)
618 
619 
620 /*DSS_ICFG*/
621 #define SDL_DSS_DSP_ICFG_PDCCMD_GEMPD_MASK (0x00010000U)
622 #define SDL_DSS_DSP_ICFG_PDCCMD_GEMPD_SHIFT (16U)
623 
624 #ifdef __cplusplus
625 }
626 #endif
627 #endif /* SDLR_STC_H_ */
SDL_STC_COMPLETED_FAILURE
@ SDL_STC_COMPLETED_FAILURE
Definition: stc/v0/sdl_stc.h:202
SDL_stcRegs::CORE1_CURMISR_8
volatile uint32_t CORE1_CURMISR_8
Definition: stc/v0/sdl_stc.h:376
INVALID_TEST
@ INVALID_TEST
Definition: stc/v0/sdl_stc.h:219
SDL_stcRegs::STCSCSCR
volatile uint32_t STCSCSCR
Definition: stc/v0/sdl_stc.h:342
__attribute__::maxRunTime
uint32_t maxRunTime
Definition: stc/v0/sdl_stc.h:172
SDL_STC_COMPLETED_SUCCESS
@ SDL_STC_COMPLETED_SUCCESS
Definition: stc/v0/sdl_stc.h:200
SDL_stcRegs::CORE1_CURMISR_24
volatile uint32_t CORE1_CURMISR_24
Definition: stc/v0/sdl_stc.h:408
SDL_stcRegs::CORE1_CURMISR_13
volatile uint32_t CORE1_CURMISR_13
Definition: stc/v0/sdl_stc.h:386
SDL_stcRegs::CORE1_CURMISR_4
volatile uint32_t CORE1_CURMISR_4
Definition: stc/v0/sdl_stc.h:368
SDL_STC_getStatus
int32_t SDL_STC_getStatus(SDL_STC_Inst instance)
This API is used to get status for STC result.
__attribute__::intervalNum
uint32_t intervalNum
Definition: stc/v0/sdl_stc.h:170
SDL_STC_NOT_RUN
@ SDL_STC_NOT_RUN
Definition: stc/v0/sdl_stc.h:206
__attribute__::stcDiagnostic
uint32_t stcDiagnostic
Definition: stc/v0/sdl_stc.h:182
SDL_stcRegs::CORE1_CURMISR_0
volatile uint32_t CORE1_CURMISR_0
Definition: stc/v0/sdl_stc.h:360
SDL_stcRegs::CORE1_CURMISR_14
volatile uint32_t CORE1_CURMISR_14
Definition: stc/v0/sdl_stc.h:388
SDL_stcRegs::CORE1_CURMISR_18
volatile uint32_t CORE1_CURMISR_18
Definition: stc/v0/sdl_stc.h:396
__attribute__::romStartAddress
uint32_t romStartAddress
Definition: stc/v0/sdl_stc.h:176
SDL_stcRegs::SEG0_START_ADDR
volatile uint32_t SEG0_START_ADDR
Definition: stc/v0/sdl_stc.h:350
__attribute__
union HsmVer_t_ __attribute__((packed)) HsmVer_t
type for reading HSMRt version.
SDL_stcRegs::CORE1_CURMISR_21
volatile uint32_t CORE1_CURMISR_21
Definition: stc/v0/sdl_stc.h:402
SDL_stcRegs::CORE1_CURMISR_25
volatile uint32_t CORE1_CURMISR_25
Definition: stc/v0/sdl_stc.h:410
SDL_stcRegs::STC_CADDR2
volatile uint32_t STC_CADDR2
Definition: stc/v0/sdl_stc.h:344
SDL_stcRegs::CORE1_CURMISR_10
volatile uint32_t CORE1_CURMISR_10
Definition: stc/v0/sdl_stc.h:380
SDL_stcRegs::CORE1_CURMISR_3
volatile uint32_t CORE1_CURMISR_3
Definition: stc/v0/sdl_stc.h:366
SDL_stcRegs::CORE1_CURMISR_15
volatile uint32_t CORE1_CURMISR_15
Definition: stc/v0/sdl_stc.h:390
__attribute__::modeConfig
SDL_STC_ScanModeconfig modeConfig
Definition: stc/v0/sdl_stc.h:184
SDL_stcRegs::CORE1_CURMISR_9
volatile uint32_t CORE1_CURMISR_9
Definition: stc/v0/sdl_stc.h:378
SDL_stcRegs::CORE1_CURMISR_11
volatile uint32_t CORE1_CURMISR_11
Definition: stc/v0/sdl_stc.h:382
SDL_STC_dspInit
void SDL_STC_dspInit(void)
This API is used to initialize all the required configuration in RCM & CTRL Module for performing DSP...
SDL_STC_Inst
SDL_STC_Inst
Definition: sdl_stc_soc.h:83
SDL_STC_NEG_TEST
@ SDL_STC_NEG_TEST
Definition: stc/v0/sdl_stc.h:217
SDL_STC_TestResult
SDL_STC_TestResult
Definition: stc/v0/sdl_stc.h:198
__attribute__::scanEnHighCap_idleCycle
uint32_t scanEnHighCap_idleCycle
Definition: stc/v0/sdl_stc.h:162
SDL_stcRegs::STCGSTAT
volatile uint32_t STCGSTAT
Definition: stc/v0/sdl_stc.h:338
SDL_stcRegs::CORE1_CURMISR_22
volatile uint32_t CORE1_CURMISR_22
Definition: stc/v0/sdl_stc.h:404
SDL_stcRegs::CORE1_CURMISR_17
volatile uint32_t CORE1_CURMISR_17
Definition: stc/v0/sdl_stc.h:394
__attribute__::codecSpreadMode
uint32_t codecSpreadMode
Definition: stc/v0/sdl_stc.h:158
SDL_STC_runTest
static int32_t SDL_STC_runTest(SDL_STC_Inst instance)
This API is used to enable the STC module.
SDL_stcRegs::CORE1_CURMISR_2
volatile uint32_t CORE1_CURMISR_2
Definition: stc/v0/sdl_stc.h:364
SDL_stcRegs::CORE1_CURMISR_6
volatile uint32_t CORE1_CURMISR_6
Definition: stc/v0/sdl_stc.h:372
SDL_stcRegs::CORE1_CURMISR_7
volatile uint32_t CORE1_CURMISR_7
Definition: stc/v0/sdl_stc.h:374
__attribute__::faultInsert
uint32_t faultInsert
Definition: stc/v0/sdl_stc.h:180
SDL_stcRegs::CORE1_CURMISR_19
volatile uint32_t CORE1_CURMISR_19
Definition: stc/v0/sdl_stc.h:398
__attribute__::pRomStartAdd
uint32_t pRomStartAdd
Definition: stc/v0/sdl_stc.h:178
SDL_STC_NOT_COMPLETED
@ SDL_STC_NOT_COMPLETED
Definition: stc/v0/sdl_stc.h:204
SDL_stcRegs::CORE1_CURMISR_12
volatile uint32_t CORE1_CURMISR_12
Definition: stc/v0/sdl_stc.h:384
SDL_stcRegs::STC_CLKDIV
volatile uint32_t STC_CLKDIV
Definition: stc/v0/sdl_stc.h:346
SDL_stcRegs::SEG1_START_ADDR
volatile uint32_t SEG1_START_ADDR
Definition: stc/v0/sdl_stc.h:352
SDL_Delay
static void SDL_Delay(void)
This API is used to execute asm nop operation.
SDL_STC_selfTest
int32_t SDL_STC_selfTest(SDL_STC_Inst instance, SDL_STC_TestType testType, SDL_STC_Config *pConfig)
This API is used to run the STC module.
SDL_STC_delay
static void SDL_STC_delay(int32_t count)
This API is used to provide delay for processor core.
INVALID_RESULT
@ INVALID_RESULT
Definition: stc/v0/sdl_stc.h:208
SDL_stcRegs::STCTPR
volatile uint32_t STCTPR
Definition: stc/v0/sdl_stc.h:332
__attribute__::lpScanMode
uint32_t lpScanMode
Definition: stc/v0/sdl_stc.h:156
__attribute__::clkDiv
uint32_t clkDiv
Definition: stc/v0/sdl_stc.h:174
SDL_STC_configure
static int32_t SDL_STC_configure(SDL_STC_Inst instance, SDL_STC_Config *pConfig, SDL_STC_TestType testType)
This API is used to configure STC module.
SDL_STC_TEST
@ SDL_STC_TEST
Definition: stc/v0/sdl_stc.h:215
__attribute__::capIdleCycle
uint32_t capIdleCycle
Definition: stc/v0/sdl_stc.h:160
SDL_stcRegs::CORE1_CURMISR_5
volatile uint32_t CORE1_CURMISR_5
Definition: stc/v0/sdl_stc.h:370
SDL_stcRegs::STCGCR1
volatile uint32_t STCGCR1
Definition: stc/v0/sdl_stc.h:330
SDL_stcRegs::STCCICR
volatile uint32_t STCCICR
Definition: stc/v0/sdl_stc.h:336
SDL_stcRegs::CORE1_CURMISR_20
volatile uint32_t CORE1_CURMISR_20
Definition: stc/v0/sdl_stc.h:400
SDL_stcRegs::STCFSTAT
volatile uint32_t STCFSTAT
Definition: stc/v0/sdl_stc.h:340
sdlr.h
This file contains the macro definations for Register layer.
SDL_stcRegs
Definition: stc/v0/sdl_stc.h:326
SDL_stcRegs::CORE1_CURMISR_26
volatile uint32_t CORE1_CURMISR_26
Definition: stc/v0/sdl_stc.h:412
SDL_stcRegs::STC_CADDR
volatile uint32_t STC_CADDR
Definition: stc/v0/sdl_stc.h:334
SDL_stcRegs::SEG3_START_ADDR
volatile uint32_t SEG3_START_ADDR
Definition: stc/v0/sdl_stc.h:356
SDL_stcRegs::CORE1_CURMISR_1
volatile uint32_t CORE1_CURMISR_1
Definition: stc/v0/sdl_stc.h:362
SDL_stcRegs::CORE1_CURMISR_23
volatile uint32_t CORE1_CURMISR_23
Definition: stc/v0/sdl_stc.h:406
SDL_stcRegs::CORE1_CURMISR_27
volatile uint32_t CORE1_CURMISR_27
Definition: stc/v0/sdl_stc.h:414
SDL_STC_TestType
SDL_STC_TestType
Definition: stc/v0/sdl_stc.h:213
SDL_stcRegs::STC_SEGPLR
volatile uint32_t STC_SEGPLR
Definition: stc/v0/sdl_stc.h:348
SDL_stcRegs::STCGCR0
volatile uint32_t STCGCR0
Definition: stc/v0/sdl_stc.h:328
SDL_stcRegs::SEG2_START_ADDR
volatile uint32_t SEG2_START_ADDR
Definition: stc/v0/sdl_stc.h:354
SDL_stcRegs::CORE1_CURMISR_16
volatile uint32_t CORE1_CURMISR_16
Definition: stc/v0/sdl_stc.h:392