7 #include "contiki-conf.h"
12 #include "reset-sensor.h"
30 printf(
"Reset count: %d\n", reset_sensor.configure(0,0));
36 SPIX_CS_SET(USD_CSN_PORT, USD_CSN_PIN);
66 i2c_init(I2C_SDA_PORT, I2C_SDA_PIN, I2C_SCL_PORT, I2C_SCL_PIN, I2C_SCL_NORMAL_BUS_SPEED);
#define GPIO_PIN_MASK(PIN)
Converts a pin number to a pin mask.
Header file with definitions related to the I/O connections on the Muntjac platform, cc2538-based.
Header file for the cc2538 SPI driver, including macros for the implementation of the low-level SPI p...
#define IOC_OVERRIDE_OE
Output Enable.
#define GPIO_CLR_PIN(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE low.
void i2c_init(uint8_t port_sda, uint8_t pin_sda, uint8_t port_scl, uint8_t pin_scl, uint32_t bus_speed)
Initialize the I2C peripheral and pins.
#define GPIO_SET_PIN(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE high.
void spix_cs_init(uint8_t port, uint8_t pin)
Configure a GPIO to be the chip select pin.
void board_init()
Board specific iniatialisation.
#define GPIO_SET_OUTPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to output.
Header file with declarations for the I/O Control module.
#define GPIO_SOFTWARE_CONTROL(PORT_BASE, PIN_MASK)
Configure the pin to be software controlled with PIN_MASK of port with PORT_BASE. ...
#define GPIO_PORT_TO_BASE(PORT)
Converts a port number to the port base address.
void ioc_set_over(uint8_t port, uint8_t pin, uint8_t over)
Set Port:Pin override function.