#include <avr32/io.h>
#include "board.h"
#include "print_funcs.h"
#include "gpio.h"
#include "pm.h"
#include "twi.h"
Macros | |
#define | EEPROM_ADDR_LGT 3 |
#define | EEPROM_ADDRESS 0x50 |
#define | PATTERN_TEST_LENGTH (sizeof(test_pattern)/sizeof(U8)) |
Constants to define the sent and received pattern. More... | |
#define | TWI_SPEED 50000 |
#define | VIRTUALMEM_ADDR_START 0x123456 |
Functions | |
int | main (void) |
Main function. More... | |
Variables | |
const U8 | test_pattern [] |
#define EEPROM_ADDR_LGT 3 |
Referenced by main().
#define EEPROM_ADDRESS 0x50 |
Referenced by main().
#define PATTERN_TEST_LENGTH (sizeof(test_pattern)/sizeof(U8)) |
Constants to define the sent and received pattern.
Referenced by main().
#define TWI_SPEED 50000 |
Referenced by main().
#define VIRTUALMEM_ADDR_START 0x123456 |
Referenced by main().
int main | ( | void | ) |
Main function.
References twi_package_t::addr, twi_package_t::addr_length, twi_package_t::buffer, twi_options_t::chip, twi_package_t::chip, cpu_irq_enable, EEPROM_ADDR_LGT, EEPROM_ADDRESS, FOSC0, gpio_enable_module(), i, init_dbg_rs232(), irq_initialize_vectors, twi_package_t::length, opt, OSC0_STARTUP, PATTERN_TEST_LENGTH, twi_options_t::pba_hz, pm_switch_to_osc0(), print_dbg(), twi_options_t::speed, status, test_pattern, twi_master_init(), twi_master_read(), twi_master_write(), TWI_SPEED, TWI_SUCCESS, and VIRTUALMEM_ADDR_START.
const U8 test_pattern[] |