dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

STM32 Hardware code to enable and disable interrupts. More...

Macros

#define PIOS_IRQ_Prologue()
 
#define PIOS_IRQ_Epilogue()
 

Functions

int32_t PIOS_IRQ_Disable (void)
 
int32_t PIOS_IRQ_Enable (void)
 
bool PIOS_IRQ_InISR (void)
 

Variables

static uint32_t nested_ctr
 
static uint32_t prev_primask
 

Detailed Description

STM32 Hardware code to enable and disable interrupts.

Macro Definition Documentation

#define PIOS_IRQ_Epilogue ( )

Definition at line 46 of file pios_irq.h.

#define PIOS_IRQ_Prologue ( )

Definition at line 45 of file pios_irq.h.

Function Documentation

int32_t PIOS_IRQ_Disable ( void  )

Disables all interrupts (nested)

Returns
< 0 On errors
Todo:
This is racy

Definition at line 40 of file pios_irq.c.

int32_t PIOS_IRQ_Enable ( void  )

Enables all interrupts (nested)

Returns
< 0 on errors
-1 on nesting errors (PIOS_IRQ_Disable() hasn't been called before)

Definition at line 53 of file pios_irq.c.

bool PIOS_IRQ_InISR ( void  )

Definition at line 61 of file pios_irq.c.

Variable Documentation

uint32_t nested_ctr
static

Definition at line 38 of file pios_irq.c.

uint32_t prev_primask
static

Definition at line 41 of file pios_irq.c.