#include "board.h"
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Detailed Description
This file contains all the specific code for the twi_slave example.
Definition in file main.c.
Define Documentation
#define BOARD_BASE_TWI_SLAVE TWIHS0 |
TWI0 base address for eeprom device
Definition at line 134 of file main.c.
#define BOARD_ID_TWI_EEPROM ID_TWIHS0 |
TWI0 peripheral ID for eeprom device
Definition at line 132 of file main.c.
#define BOARD_PINS_TWI_SLAVE PINS_TWI0 |
Eeprom Pins definition
Definition at line 130 of file main.c.
Memory size in bytes (example AT24C512)
Definition at line 127 of file main.c.
#define SLAVE_ADDRESS 0x53 |
Slave address of the device on the TWI bus.
Definition at line 124 of file main.c.
Function Documentation
Application entry point for TWI slave example.
- Returns:
- Unused (ANSI-C compatibility).
Definition at line 239 of file main.c.
Variable Documentation
const Pin pins[] = BOARD_PINS_TWI_SLAVE |
Pio pins to configure.
Definition at line 140 of file main.c.