All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vexext.c File Reference

External interrupt glue code. More...

#include <stdlib.h>
#include "ch.h"
#include "hal.h"
#include "vex.h"

Macros

#define EXT_VERSION   0
 

Functions

void vexExtSet (ioportid_t port, uint16_t channel, uint32_t mode, extcallback_t cb)
 Configure GPIO pin to be external interrupt source. More...
 
void vexExtIrqInit ()
 Initialise external interrupts. More...
 

Detailed Description

External interrupt glue code.

Macro Definition Documentation

#define EXT_VERSION   0

Function Documentation

void vexExtSet ( ioportid_t  port,
uint16_t  channel,
uint32_t  mode,
extcallback_t  cb 
)

Configure GPIO pin to be external interrupt source.

Parameters
[in]portThe digital port to configure
[in]channelThe ext irq channel to configure
[in]modeThe ext irq mode
[in]cbA callback to be called when the irq fires
void vexExtIrqInit ( void  )

Initialise external interrupts.

Note
Call this after all setup is done