Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
icp_scale.h File Reference
#include "led.h"
+ Include dependency graph for icp_scale.h:

Go to the source code of this file.

Macros

#define ICP_PINSEL   PINSEL0
 
#define ICP_PINSEL_VAL   0x02
 
#define ICP_PINSEL_BIT   12
 
#define ICP_ISR()
 

Functions

static void icp_scale_init (void)
 

Variables

volatile uint32_t pulse_len
 

Macro Definition Documentation

#define ICP_ISR ( )
Value:
{ \
static uint32_t last; \
pulse_len = now - last; \
last = now; \
}
#define T0CR2
Definition: LPC21xx.h:63
unsigned long uint32_t
Definition: types.h:18
volatile uint32_t pulse_len
Definition: icp_scale.h:11
#define LED_TOGGLE(i)
Definition: led_hw.h:30

Definition at line 21 of file icp_scale.h.

#define ICP_PINSEL   PINSEL0

Definition at line 5 of file icp_scale.h.

Referenced by icp_scale_init().

#define ICP_PINSEL_BIT   12

Definition at line 7 of file icp_scale.h.

Referenced by icp_scale_init().

#define ICP_PINSEL_VAL   0x02

Definition at line 6 of file icp_scale.h.

Referenced by icp_scale_init().

Function Documentation

static void icp_scale_init ( void  )
inlinestatic

Definition at line 13 of file icp_scale.h.

References ICP_PINSEL, ICP_PINSEL_BIT, ICP_PINSEL_VAL, T0CCR, TCCR_CR2_F, and TCCR_CR2_I.

Variable Documentation

volatile uint32_t pulse_len

Definition at line 11 of file icp_scale.h.