SYS/BIOS  7.00
Hwi.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, Texas Instruments Incorporated - https://www.ti.com
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  */
381 /*
382  * ======== Hwi.h ========
383  */
384 
385 /* BIOS 6.x compatibility, use -Dxdc_std__include to disable */
387 #include <xdc/std.h>
390 #include <stdbool.h>
391 #include <stddef.h>
392 #include <stdint.h>
393 
394 #include <ti/sysbios/BIOS.h>
395 
397 
398 /*
399  * First time Hwi.h is included within a compilation unit:
400  * -undefine any previous Hwi_ short names
401  * -do short-to-long name conversions.
402  * -include all short-named Hwi API definitions.
403  *
404  * All subsequent includes:
405  * -undefine any previous Hwi_ short names
406  * -perform short-to-long name converions
407  * -Do not include short-named Hwi API definitins
408  * because the long name Hwi API definitions are
409  * already known to the compiler.
410  */
411 
413 #define do_hwi_undef_short_names
414 #define do_hwi_short_to_long_name_conversion
415 #include "Hwi_defs.h"
418 #ifndef ti_sysbios_family_arm_m3_Hwi__include
419 #define ti_sysbios_family_arm_m3_Hwi__include
420 
421 #include <ti/sysbios/hal/Hwi.h>
424 #ifdef __cplusplus
425 extern "C" {
426 #endif
427 
428 /*
429  * Error and Assert Ids
430  */
435 #define Hwi_E_badIntNum "intnum: %d is out of range"
436 
440 #define Hwi_E_alreadyDefined "Hwi already defined: intr# %d"
441 
446 #define Hwi_E_hwiLimitExceeded "Too many interrupts defined"
447 
451 #define Hwi_E_exception "hardware exception id = %d, pc = 0x%08x"
452 
456 #define Hwi_E_noIsr "no ISR, id = %d, pc = 0x%08x"
457 
461 #define Hwi_E_NMI "NMI: %s"
462 
466 #define Hwi_E_hardFault "Hard-fault: %s"
467 
471 #define Hwi_E_memFault "Mem-fault: %s, addresss: 0x%08x"
472 
476 #define Hwi_E_busFault "Bus-fault: %s, address: 0x%08x"
477 
481 #define Hwi_E_usageFault "Usage-fault: %s"
482 
486 #define Hwi_E_svCall "SvCall: svNum = %d"
487 
491 #define Hwi_E_debugMon "Debug-monitor: %s"
492 
496 #define Hwi_E_reserved "reserved %s %d"
497 
501 #define Hwi_E_stackOverflow "ISR stack overflow"
502 
503 typedef struct Hwi_Struct Hwi_Struct;
504 typedef struct Hwi_Struct Hwi_Object;
507 
509 /* included for backward compatibility with DPL but not required otherwise */
510 typedef struct Hwi_Struct Hwi_Struct2;
511 typedef struct Hwi_Struct2__ Hwi_Struct2__;
522 typedef struct Hwi_HookSet Hwi_HookSet;
524 typedef struct Hwi_Params Hwi_Params;
525 
529 typedef struct Hwi_NVIC Hwi_NVIC;
540 
544 typedef void (*Hwi_FuncPtr)(uintptr_t);
545 
549 typedef void (*Hwi_VectorFuncPtr)(void );
550 
555 
556 /* ExcHookFunc */
558 
567 struct Hwi_HookSet {
568  void (*registerFxn)(int arg1);
569  void (*createFxn)(Hwi_Handle arg1, Error_Block* arg2);
570  void (*beginFxn)(Hwi_Handle arg1);
571  void (*endFxn)(Hwi_Handle arg1);
572  void (*deleteFxn)(Hwi_Handle arg1);
573 };
574 
575 typedef struct { int length; const Hwi_HookSet *elem; } Hwi_Hook;
576 
592 };
593 
598 
605  size_t hwiStackPeak;
606  size_t hwiStackSize;
607  void * hwiStackBase;
608 };
609 
614 struct Hwi_CCR {
618  uint8_t STKALIGN;
619  uint8_t BFHFNMIGN;
623  uint8_t DIV_0_TRP;
624  uint8_t UNALIGN_TRP;
628  uint8_t USERSETMPEND;
629  uint8_t NONEBASETHRDENA;
630 };
635 struct Hwi_NVIC {
636  uint32_t RES_00;
637  uint32_t ICTR;
638  uint32_t RES_08;
639  uint32_t RES_0C;
640  uint32_t STCSR;
641  uint32_t STRVR;
642  uint32_t STCVR;
643  uint32_t STCALIB;
644  uint32_t RES_20 [56];
645  uint32_t ISER [8];
646  uint32_t RES_120 [24];
647  uint32_t ICER [8];
648  uint32_t RES_1A0 [24];
649  uint32_t ISPR [8];
650  uint32_t RES_220 [24];
651  uint32_t ICPR [8];
652  uint32_t RES_2A0 [24];
653  uint32_t IABR [8];
654  uint32_t RES_320 [56];
655  uint8_t IPR [240];
656  uint32_t RES_4F0 [516];
657  uint32_t CPUIDBR;
658  uint32_t ICSR;
659  uint32_t VTOR;
660  uint32_t AIRCR;
661  uint32_t SCR;
662  uint32_t CCR;
663  uint8_t SHPR[12];
664  uint32_t SHCSR;
665  uint8_t MMFSR;
666  uint8_t BFSR;
667  uint16_t UFSR;
668  uint32_t HFSR;
669  uint32_t DFSR;
670  uint32_t MMAR;
671  uint32_t BFAR;
672  uint32_t AFSR;
673  uint32_t PFR0;
674  uint32_t PFR1;
675  uint32_t DFR0;
676  uint32_t AFR0;
677  uint32_t MMFR0;
678  uint32_t MMFR1;
679  uint32_t MMFR2;
680  uint32_t MMFR3;
681  uint32_t ISAR0;
682  uint32_t ISAR1;
683  uint32_t ISAR2;
684  uint32_t ISAR3;
685  uint32_t ISAR4;
686  uint32_t RES_D74[5];
687  uint32_t CPACR;
688  uint32_t RES_D8C[93];
689  uint32_t STI;
690  uint32_t RES_F04[12];
691  uint32_t FPCCR;
692  uint32_t FPCAR;
693  uint32_t FPDSCR;
694  uint32_t MVFR0;
695  uint32_t MVFR1;
696  uint32_t RES_F48[34];
697  uint32_t PID4;
698  uint32_t PID5;
699  uint32_t PID6;
700  uint32_t PID7;
701  uint32_t PID0;
702  uint32_t PID1;
703  uint32_t PID2;
704  uint32_t PID3;
705  uint32_t CID0;
706  uint32_t CID1;
707  uint32_t CID2;
708  uint32_t CID3;
709 };
710 
715 extern volatile Hwi_NVIC Hwi_nvic;
716 
722  void * threadHandle;
723  void * threadStack;
725  void * r0;
726  void * r1;
727  void * r2;
728  void * r3;
729  void * r4;
730  void * r5;
731  void * r6;
732  void * r7;
733  void * r8;
734  void * r9;
735  void * r10;
736  void * r11;
737  void * r12;
738  void * sp;
739  void * lr;
740  void * pc;
741  void * psr;
742  void * ICSR;
743  void * MMFSR;
744  void * BFSR;
745  void * UFSR;
746  void * HFSR;
747  void * DFSR;
748  void * MMAR;
749  void * BFAR;
750  void * AFSR;
751 };
752 
753 /* Module_State */
755  char *taskSP; /* 0x0 */
756  bool excActive; /* 0x4 */
757  void * excContext; /* 0x8 */
758  void * excStack; /* 0xc */
759  void * isrStack; /* 0x10 */
760  void * isrStackBase; /* 0x14 */
761  unsigned int swiTaskKeys; /* 0x18 */
762  void * isrStackSize;
765  volatile bool vnvicFlushRequired;
766  uint8_t *intAffinity;
767  uint32_t *intAffinityMasks;
769  bool initDone;
770 };
771 
772 /* Object */
773 struct Hwi_Struct {
777  uintptr_t arg;
779  uintptr_t irp;
789  uint8_t priority;
790  int16_t intNum;
791  void * *hookEnv;
792 };
793 
797 typedef void (*Hwi_ExcHandlerFuncPtr)(unsigned int* arg1, unsigned int arg2);
798 
815 extern const bool Hwi_dispatcherAutoNestingSupport;
816 
832 extern const bool Hwi_dispatcherSwiSupport;
833 
849 extern const bool Hwi_dispatcherTaskSupport;
850 
864 extern const bool Hwi_dispatcherIrpTrackingSupport;
873 extern const int Hwi_NUM_INTERRUPTS;
874 
882 extern const int Hwi_NUM_PRIORITIES;
883 
888 extern const Hwi_Hook Hwi_hooks;
889 
894 extern const Hwi_VectorFuncPtr Hwi_nullIsrFunc;
895 
928 extern const Hwi_ExcHandlerFuncPtr Hwi_excHandlerFunc;
944 extern const Hwi_ExcHookFunc Hwi_excHookFunc;
945 
968 extern const unsigned int Hwi_disablePriority;
969 
999 extern const unsigned int Hwi_priGroup;
1000 
1032 extern const unsigned int Hwi_numSparseInterrupts;
1033 
1040 extern const uint32_t Hwi_ccr;
1043 struct Hwi_Params {
1048  Hwi_MaskingOption maskSetting;
1052  uintptr_t arg;
1063  int eventId;
1094 };
1095 
1133 extern unsigned int Hwi_Disable();
1134 
1167 extern unsigned int Hwi_Enable();
1168 
1191 extern void Hwi_Restore(uint32_t key);
1192 
1194 extern void Hwi_init(void);
1195 
1196 /* Instance_init */
1197 extern int Hwi_Instance_init(Hwi_Object *obj, int intNum, Hwi_FuncPtr hwiFxn, const Hwi_Params *prms, Error_Block *eb);
1198 
1199 /* Instance_finalize */
1200 extern void Hwi_Instance_finalize(Hwi_Object *obj, int ec);
1203 extern Hwi_Handle Hwi_create(int intNum, Hwi_FuncPtr hwiFxn, const Hwi_Params *prms, Error_Block *eb);
1204 
1205 extern Hwi_Handle Hwi_construct(Hwi_Struct *obj, int intNum, Hwi_FuncPtr hwiFxn, const Hwi_Params *prms, Error_Block *eb);
1206 
1207 extern void Hwi_delete(Hwi_Handle *handle);
1208 
1209 extern void Hwi_destruct(Hwi_Struct *obj);
1210 
1276 extern bool Hwi_getStackInfo(Hwi_StackInfo *stkInfo, bool computeStackDepth);
1277 
1348 extern bool Hwi_getCoreStackInfo(Hwi_StackInfo *stkInfo, bool computeStackDepth, unsigned int coreId);
1357 extern void Hwi_startup(void);
1358 
1363 extern void Hwi_switchFromBootStack(void);
1371 extern void Hwi_post(unsigned int intNum);
1372 
1381 extern char *Hwi_getTaskSP(void);
1393 extern unsigned int Hwi_disableInterrupt(unsigned int intNum);
1394 
1404 extern unsigned int Hwi_enableInterrupt(unsigned int intNum);
1405 
1416 extern void Hwi_restoreInterrupt(unsigned int intNum, unsigned int key);
1417 
1426 extern void Hwi_clearInterrupt(unsigned int intNum);
1427 
1436 extern Hwi_FuncPtr Hwi_getFunc(Hwi_Handle hwi, uintptr_t *arg);
1437 
1464 extern void Hwi_setFunc(Hwi_Handle hwi, Hwi_FuncPtr fxn, uintptr_t arg);
1465 
1474 extern void * Hwi_getHookContext(Hwi_Handle hwi, int id);
1475 
1483 extern void Hwi_setHookContext(Hwi_Handle hwi, int id, void * hookContext);
1484 
1492 extern uintptr_t Hwi_getIrp(Hwi_Handle hwi);
1493 
1510 extern void Hwi_plug(unsigned int intNum, void *fxn);
1511 
1519 extern Hwi_Handle Hwi_getHandle(unsigned int intNum);
1520 
1535 extern void Hwi_setPriority(unsigned int intNum, unsigned int priority);
1536 
1543 extern void Hwi_excSetBuffers(void * excContextBuffer, void * excStackBuffer);
1544 
1552 extern void Hwi_reconfig(Hwi_Handle hwi, Hwi_FuncPtr fxn, const Hwi_Params *params);
1553 
1555 extern Hwi_Handle Hwi_construct2(Hwi_Struct2 *hwi, int intNum, Hwi_FuncPtr hwiFxn, const Hwi_Params *prms);
1556 extern void Hwi_initNVIC(void);
1557 extern void Hwi_initStacks(void * hwiStack);
1558 extern int Hwi_postInit(Hwi_Object *hwi, Error_Block *eb);
1559 extern void Hwi_excHandlerAsm(void);
1560 extern void Hwi_excHandler(unsigned int *excStack, unsigned int lr);
1561 extern void Hwi_excHandlerMin(unsigned int *excStack, unsigned int lr);
1562 extern void Hwi_excHandlerMax(unsigned int *excStack, unsigned int lr);
1563 extern void Hwi_excFillContext(unsigned int *excStack);
1564 extern void Hwi_excNmi(unsigned int *excStack);
1565 extern void Hwi_excHardFault(unsigned int *excStack);
1566 extern void Hwi_excMemFault(unsigned int *excStack);
1567 extern void Hwi_excBusFault(unsigned int *excStack);
1568 extern void Hwi_excUsageFault(unsigned int *excStack);
1569 extern void Hwi_excSvCall(unsigned int *excStack);
1570 extern void Hwi_excDebugMon(unsigned int *excStack);
1571 extern void Hwi_excReserved(unsigned int *excStack, unsigned int excNum);
1572 extern void Hwi_excNoIsr(unsigned int *excStack, unsigned int excNum);
1573 extern void Hwi_excDumpRegs(unsigned int lr);
1574 extern void Hwi_pendSV(void);
1575 extern void Hwi_setStackLimit(void * stackBase);
1576 extern unsigned int Hwi_swiDisableNull(void);
1577 extern void Hwi_swiRestoreNull(unsigned int key);
1578 extern void Hwi_dispatch(void);
1579 extern unsigned int Hwi_dispatchC(uintptr_t irp, uint32_t dummy1, uint32_t dummy2, Hwi_Object *hwi);
1580 extern void Hwi_doSwiRestore(unsigned int tskKey);
1581 extern void Hwi_doTaskRestore(unsigned int tskKey);
1582 extern unsigned int Hwi_swiDisable();
1583 extern void Hwi_swiRestore(unsigned int key);
1584 extern void Hwi_swiRestoreHwi(unsigned int key);
1585 extern unsigned int Hwi_taskDisable();
1586 extern void Hwi_taskRestoreHwi(unsigned int key);
1594 extern void Hwi_switchFromBootStack(void);
1595 
1596 /* checkStack */
1597 extern void Hwi_checkStack(void);
1598 
1599 /* initStack */
1600 extern void Hwi_initStack(void);
1601 
1602 /* initStackMin */
1603 extern void Hwi_initStackMin(void);
1604 
1605 /* switchAndRunFunc */
1606 extern void Hwi_switchAndRunFunc(void (*func)(void));
1609 /*
1610  * ======== SYSTEM FUNCTIONS ========
1611  */
1612 
1613 /* Params_init */
1614 extern void Hwi_Params_init(Hwi_Params *prms);
1615 
1617 /* Params_copy */
1618 extern void Hwi_Params_copy(Hwi_Params *dst, Hwi_Params *src);
1621 /* Object_first */
1622 extern Hwi_Handle Hwi_Object_first(void);
1623 
1624 /* Object_next */
1625 extern Hwi_Handle Hwi_Object_next(Hwi_Object *obj);
1626 
1627 /*
1628  * ======== STATE STRUCTURES ========
1629  */
1630 
1632 extern Hwi_Module_State Hwi_Module_state;
1633 
1634 #define Hwi_module ((Hwi_Module_State *) &(Hwi_Module_state))
1635 
1636 #define Hwi_Object_heap() NULL
1637 
1638 static inline Hwi_Handle Hwi_handle(Hwi_Struct *str)
1639 {
1640  return ((Hwi_Handle)str);
1641 }
1642 
1643 static inline Hwi_Struct * Hwi_struct(Hwi_Handle h)
1644 {
1645  return ((Hwi_Struct *)h);
1646 }
1649 #ifdef __cplusplus
1650 }
1651 #endif
1652 
1653 #endif /* ti_sysbios_family_arm_m3__Hwi__include */
1654 
1656 #if defined(ti_sysbios_family_arm_m3_Hwi__nolocalnames)
1657 #define do_hwi_undef_short_names
1658 #include "Hwi_defs.h"
1659 #endif
1660 
void * r0
Definition: Hwi.h:725
void * hwiStackBase
Definition: Hwi.h:607
uint32_t PID0
Definition: Hwi.h:701
const int Hwi_NUM_PRIORITIES
The Cortex M3/M4 NVIC supports up to 256 interrupt priorities.
Hwi_Struct * Hwi_Handle
Definition: Hwi.h:505
bool enableInt
Enable this interrupt when object is created? Default is true.
Definition: Hwi.h:1056
void * BFAR
Definition: Hwi.h:749
uint32_t PID2
Definition: Hwi.h:703
uint8_t * intAffinity
Definition: Hwi.h:766
void(* deleteFxn)(Hwi_Handle arg1)
Definition: Hwi.h:572
uint8_t MMFSR
Definition: Hwi.h:665
uint32_t ISAR1
Definition: Hwi.h:682
int priority
Interrupt priority.
Definition: Hwi.h:1073
void Hwi_setFunc(Hwi_Handle hwi, Hwi_FuncPtr fxn, uintptr_t arg)
Overwrite Hwi function and arg.
BIOS_ThreadType
Current thread type definitions.
Definition: BIOS.h:189
uint32_t AIRCR
Definition: Hwi.h:660
size_t hwiStackPeak
Definition: Hwi.h:605
uint32_t CID1
Definition: Hwi.h:706
uint32_t BFAR
Definition: Hwi.h:671
uint16_t UFSR
Definition: Hwi.h:667
uint32_t SHCSR
Definition: Hwi.h:664
const unsigned int Hwi_numSparseInterrupts
If Hwi.dispatchTableSize is initialized by the user then Hwi.numSparseInterrupts is set to the value ...
uint32_t CPACR
Definition: Hwi.h:687
void Hwi_restoreInterrupt(unsigned int intNum, unsigned int key)
Restore a specific interrupt&#39;s enabled/disabled state.
void * excStack
Definition: Hwi.h:758
void * r9
Definition: Hwi.h:734
void * MMFSR
Definition: Hwi.h:743
bool Hwi_getStackInfo(Hwi_StackInfo *stkInfo, bool computeStackDepth)
Get Hwi stack usage Info.
void * dispatchTable
Definition: Hwi.h:764
void Hwi_clearInterrupt(unsigned int intNum)
Clear a specific interrupt.
void ** hookEnv
Definition: Hwi.h:791
Hwi_ExceptionHookFuncPtr Hwi_ExcHookFunc
Definition: Hwi.h:557
char * taskSP
Definition: Hwi.h:755
uint32_t SCR
Definition: Hwi.h:661
void * UFSR
Definition: Hwi.h:745
Hwi_Handle Hwi_construct(Hwi_Struct *obj, int intNum, Hwi_FuncPtr hwiFxn, const Hwi_Params *prms, Error_Block *eb)
void * r7
Definition: Hwi.h:732
void * r5
Definition: Hwi.h:730
uint32_t STRVR
Definition: Hwi.h:641
uint32_t VTOR
Definition: Hwi.h:659
const unsigned int Hwi_priGroup
The PRIGROUP setting. Default is 0.
uint8_t priority
Interrupt priority.
Definition: Hwi.h:789
Hwi_Handle Hwi_create(int intNum, Hwi_FuncPtr hwiFxn, const Hwi_Params *prms, Error_Block *eb)
uint32_t FPCCR
Definition: Hwi.h:691
uint32_t PID6
Definition: Hwi.h:699
uint32_t PFR0
Definition: Hwi.h:673
uint32_t MVFR0
Definition: Hwi.h:694
uint32_t MMFR0
Definition: Hwi.h:677
Definition: Hwi.h:1043
void * Hwi_getHookContext(Hwi_Handle hwi, int id)
Get hook instance&#39;s context for a Hwi.
void Hwi_reconfig(Hwi_Handle hwi, Hwi_FuncPtr fxn, const Hwi_Params *params)
Reconfigure a dispatched interrupt.
void * vectorTableBase
Definition: Hwi.h:763
void(* Hwi_ExcHandlerFuncPtr)(unsigned int *arg1, unsigned int arg2)
Hwi exception handler function type definition.
Definition: Hwi.h:797
void Hwi_excSetBuffers(void *excContextBuffer, void *excStackBuffer)
Set the exception context and stack buffer pointers.
void * ICSR
Definition: Hwi.h:742
User supplies interrupt enable masks (not support on cortexM devices)
Definition: Hwi.h:589
uint32_t STCSR
Definition: Hwi.h:640
void * r3
Definition: Hwi.h:728
void * r1
Definition: Hwi.h:726
uint32_t ISAR2
Definition: Hwi.h:683
Definition: Hwi.h:773
size_t hwiStackSize
Definition: Hwi.h:606
unsigned int Hwi_disableInterrupt(unsigned int intNum)
Disable a specific interrupt.
bool useDispatcher
Use the interrupt dispatcher with this interrupt. Default is true.
Definition: Hwi.h:1093
bool initDone
Definition: Hwi.h:769
uint32_t FPCAR
Definition: Hwi.h:692
void * r6
Definition: Hwi.h:731
void * BFSR
Definition: Hwi.h:744
unsigned int Hwi_enableInterrupt(unsigned int intNum)
Enable a specific interrupt.
Runtime error manager.
uint32_t PID7
Definition: Hwi.h:700
void Hwi_destruct(Hwi_Struct *obj)
Only this interrupt is disabled (not support on cortexM devices)
Definition: Hwi.h:587
uint32_t DFR0
Definition: Hwi.h:675
uint32_t RES_08
Definition: Hwi.h:638
void Hwi_setPriority(unsigned int intNum, unsigned int priority)
Set an interrupt&#39;s relative priority.
void Hwi_post(unsigned int intNum)
Generate an interrupt for test purposes.
void * HFSR
Definition: Hwi.h:746
uint32_t CID3
Definition: Hwi.h:708
void * r2
Definition: Hwi.h:727
uint32_t PID4
Definition: Hwi.h:697
void * excContext
Definition: Hwi.h:757
Definition: Hwi.h:575
unsigned int Hwi_Enable()
Globally enable interrupts.
Hwi_Struct * Hwi_Instance
Definition: Hwi.h:506
uint32_t ISAR4
Definition: Hwi.h:685
void * r10
Definition: Hwi.h:735
void Hwi_Restore(uint32_t key)
restore global interrupts to the state they were in prior Hwi_disable().
uint32_t MMFR3
Definition: Hwi.h:680
Hwi_Handle Hwi_Object_next(Hwi_Object *obj)
uint32_t ICTR
Definition: Hwi.h:637
uint32_t CCR
Definition: Hwi.h:662
SYS/BIOS Top-Level Manager.
volatile Hwi_NVIC Hwi_nvic
Physical Nested Vectored Interrupt Controller Device. short name is "Hwi_nvic" long name is "ti_sysbi...
void * pc
Definition: Hwi.h:740
Error block.
Definition: Error.h:152
void * sp
Definition: Hwi.h:738
uint32_t ISAR0
Definition: Hwi.h:681
No interrupts are disabled (not support on cortexM devices)
Definition: Hwi.h:583
void * r12
Definition: Hwi.h:737
void * MMAR
Definition: Hwi.h:748
void * AFSR
Definition: Hwi.h:750
void * DFSR
Definition: Hwi.h:747
uint8_t BFSR
Definition: Hwi.h:666
Nested Vectored Interrupt Controller.
Definition: Hwi.h:635
uint32_t CPUIDBR
Definition: Hwi.h:657
void(* Hwi_FuncPtr)(uintptr_t)
Hwi create function type definition.
Definition: Hwi.h:544
Hwi_Handle Hwi_Object_first(void)
void(* beginFxn)(Hwi_Handle arg1)
Definition: Hwi.h:570
Hwi_Handle Hwi_getHandle(unsigned int intNum)
Returns Hwi_handle associated with intNum.
Hwi_FuncPtr fxn
Definition: Hwi.h:778
void(* endFxn)(Hwi_Handle arg1)
Definition: Hwi.h:571
uint32_t ICSR
Definition: Hwi.h:658
void(* Hwi_ExceptionHookFuncPtr)(Hwi_ExcContext *arg1)
Exception hook function type definition.
Definition: Hwi.h:554
uint32_t FPDSCR
Definition: Hwi.h:693
uintptr_t irp
Definition: Hwi.h:779
Hwi_MaskingOption
Interrupt masking options.
Definition: Hwi.h:581
uintptr_t arg
ISR function argument. Default is 0.
Definition: Hwi.h:777
int length
Definition: Hwi.h:575
uint32_t AFR0
Definition: Hwi.h:676
uint32_t PID3
Definition: Hwi.h:704
int eventId
Interrupt event ID (Interrupt Selection Number)
Definition: Hwi.h:1063
void * psr
Definition: Hwi.h:741
uint32_t AFSR
Definition: Hwi.h:672
BIOS_ThreadType threadType
Definition: Hwi.h:721
void Hwi_plug(unsigned int intNum, void *fxn)
Plug a non dispatched interrupt vector with an ISR address.
volatile bool vnvicFlushRequired
Definition: Hwi.h:765
uint32_t DFSR
Definition: Hwi.h:669
void * isrStackSize
Definition: Hwi.h:762
Exception Context - Register contents at the time of an exception.
Definition: Hwi.h:720
void * isrStackBase
Definition: Hwi.h:760
void Hwi_Params_init(Hwi_Params *prms)
void Hwi_setHookContext(Hwi_Handle hwi, int id, void *hookContext)
Set hook instance&#39;s context for a Hwi.
uint32_t PID5
Definition: Hwi.h:698
Hwi_VectorFuncPtr * vectorTable
Definition: Hwi.h:768
uint32_t MMFR1
Definition: Hwi.h:678
uint32_t STCVR
Definition: Hwi.h:642
uint32_t MMAR
Definition: Hwi.h:670
Definition: Hwi.h:754
unsigned int swiTaskKeys
Definition: Hwi.h:761
All interrupts are disabled (not support on cortexM devices)
Definition: Hwi.h:585
Hwi_MaskingOption maskSetting
maskSetting. Default is Hwi_MaskingOption "Hwi_MaskingOption_SELF"
Definition: Hwi.h:1048
uint32_t MVFR1
Definition: Hwi.h:695
void(* Hwi_VectorFuncPtr)(void)
Hwi vector function type definition.
Definition: Hwi.h:549
void(* registerFxn)(int arg1)
Definition: Hwi.h:568
unsigned int Hwi_Disable()
Globally disable interrupts.
uint32_t RES_0C
Definition: Hwi.h:639
void * threadHandle
Definition: Hwi.h:722
uintptr_t arg
ISR function argument. Default is 0.
Definition: Hwi.h:1052
uint32_t STI
Definition: Hwi.h:689
uint32_t CID2
Definition: Hwi.h:707
uint32_t CID0
Definition: Hwi.h:705
const unsigned int Hwi_disablePriority
The priority that BASEPRI is set to by Hwi_disable().
const int Hwi_NUM_INTERRUPTS
The Cortex M3/M4 NVIC supports up to 256 interrupts/exceptions.
size_t threadStackSize
Definition: Hwi.h:724
All current and lower priority interrupts are disabled. (default for all cortexM devices) ...
Definition: Hwi.h:591
void * lr
Definition: Hwi.h:739
Structure contains Hwi stack usage info.
Definition: Hwi.h:604
int16_t intNum
Definition: Hwi.h:790
uint32_t ISAR3
Definition: Hwi.h:684
void * r8
Definition: Hwi.h:733
uint32_t RES_00
Definition: Hwi.h:636
void * r11
Definition: Hwi.h:736
uint32_t STCALIB
Definition: Hwi.h:643
SecureCB_Arg arg
Definition: SecureCB.h:146
void * r4
Definition: Hwi.h:729
void(* createFxn)(Hwi_Handle arg1, Error_Block *arg2)
Definition: Hwi.h:569
const Hwi_ExcHookFunc Hwi_excHookFunc
User Exception hook function.
uint32_t MMFR2
Definition: Hwi.h:679
void Hwi_delete(Hwi_Handle *handle)
bool excActive
Definition: Hwi.h:756
void * threadStack
Definition: Hwi.h:723
uintptr_t Hwi_getIrp(Hwi_Handle hwi)
Get address of interrupted instruction.
Hwi hook set type definition.
Definition: Hwi.h:567
uint32_t PFR1
Definition: Hwi.h:674
void * isrStack
Definition: Hwi.h:759
uint32_t HFSR
Definition: Hwi.h:668
uint32_t * intAffinityMasks
Definition: Hwi.h:767
uint32_t PID1
Definition: Hwi.h:702
Hwi_FuncPtr Hwi_getFunc(Hwi_Handle hwi, uintptr_t *arg)
Get Hwi function and arg.
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale