ARMEBS4  revision-26.06.2015
Modules | Macros
Utilities
Collaboration diagram for Utilities:

Modules

 Status (or errors)
 Error codes.
 

Macros

#define ARRAY_SIZE(x)
 Number of elements in the array. More...
 
#define max(a, b)
 Maximum between a and b. More...
 
#define max(a, b)
 Maximum between a and b. More...
 
#define debugger_is_connected()
 Detect is debugger is connected. More...
 
#define breakpoint()
 Breakpoint (from code) More...
 

Detailed Description

Macro Definition Documentation

#define ARRAY_SIZE (   x)

Number of elements in the array.

Parameters
xthe array

Definition at line 19 of file utils.h.

Referenced by Accel_Read(), audio_setup_selection(), bsp_init(), gpio_irq_setup(), lightness_to_pwm(), and Reset_Handler().

#define max (   a,
 
)

Maximum between a and b.

Minimum between a and b.

Parameters
a
b

Definition at line 47 of file utils.h.

#define max (   a,
 
)

Maximum between a and b.

Minimum between a and b.

Parameters
a
b

Definition at line 47 of file utils.h.

#define debugger_is_connected ( )

Detect is debugger is connected.

Our debug script enable debugging while in WFI (wait for interrupt), so we can detect if the debugger is connected by reading this flag.

Definition at line 67 of file utils.h.

Referenced by _semi(), bsp_fatal(), and HardFaultHelper().

#define breakpoint ( )

Breakpoint (from code)

This breakpoint can't be disabled.

Definition at line 74 of file utils.h.

Referenced by bsp_fatal(), and HardFaultHelper().