Contiki 3.x
Functions | Variables
gpio.c File Reference

Implementation of the cc2538 GPIO controller. More...

#include "contiki.h"
#include "sys/energest.h"
#include "dev/leds.h"
#include "dev/gpio.h"
#include "dev/nvic.h"
#include "reg.h"
#include "lpm.h"
#include <string.h>

Go to the source code of this file.

Functions

void gpio_register_callback (gpio_callback_t f, uint8_t port, uint8_t pin)
 Register GPIO callback. More...
 
void notify (uint8_t mask, uint8_t port)
 Run through all registered GPIO callbacks and invoke those associated with the port and the pins specified by mask. More...
 
static void gpio_port_isr (uint8_t port)
 Interrupt service routine for Port port. More...
 
void gpio_init ()
 Initialise the GPIO module. More...
 

Variables

static gpio_callback_t gpio_callbacks [32]
 Pointer to a function to be called when a GPIO interrupt is detected. More...
 

Detailed Description

Implementation of the cc2538 GPIO controller.

Definition in file gpio.c.