Actions

EmSys

Tm4clib-scb-defines

From EdWiki

Macros

SCB_SHPR_PRI_4_MEMMANAGE

#define SCB_SHPR_PRI_4_MEMMANAGE 0

SCB_SHPR_PRI_5_BUSFAULT

#define SCB_SHPR_PRI_5_BUSFAULT 1

SCB_SHPR_PRI_6_USAGEFAULT

#define SCB_SHPR_PRI_6_USAGEFAULT 2

SCB_SHPR_PRI_7_RESERVED

#define SCB_SHPR_PRI_7_RESERVED 3

SCB_SHPR_PRI_8_RESERVED

#define SCB_SHPR_PRI_8_RESERVED 4

SCB_SHPR_PRI_9_RESERVED

#define SCB_SHPR_PRI_9_RESERVED 5

SCB_SHPR_PRI_10_RESERVED

#define SCB_SHPR_PRI_10_RESERVED 6

SCB_SHPR_PRI_11_SVCALL

#define SCB_SHPR_PRI_11_SVCALL 7

SCB_SHPR_PRI_12_RESERVED

#define SCB_SHPR_PRI_12_RESERVED 8

SCB_SHPR_PRI_13_RESERVED

#define SCB_SHPR_PRI_13_RESERVED 9

SCB_SHPR_PRI_14_PENDSV

#define SCB_SHPR_PRI_14_PENDSV 10

SCB_SHPR_PRI_15_SYSTICK

#define SCB_SHPR_PRI_15_SYSTICK 11

SCB_SHCSR_SVCALLPENDED

#define SCB_SHCSR_SVCALLPENDED (1 << 15)

SCB_GET_EXCEPTION_STACK_FRAME(f)

#define SCB_GET_EXCEPTION_STACK_FRAME(f) Value:

do {  
    asm volatile ("movĀ %[frameptr], sp"
                   : [frameptr]"=r" (f));
} while (0)

scb_exception_stack_frame

Data Fields

uint32_t r0

uint32_t r1

uint32_t r2

uint32_t r3

uint32_t r12

uint32_t lr

uint32_t pc

uint32_t xpsr

scb_reset_system()

void scb_reset_system(void)

scb_set_priority_grouping()

void scb_set_priority_grouping(uint32_t prigroup)