aboutsummaryrefslogtreecommitdiffstats
path: root/common2/components/memory/eeprom
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-07 19:59:35 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-07 19:59:35 +0200
commit3634cc8e5d3124e3cf6cf46c0f1d5385ff511426 (patch)
tree1af66e339e767fc62d588766fd8d3b26edd29e3b /common2/components/memory/eeprom
initial check-in of ASF 3.39.0
Diffstat (limited to 'common2/components/memory/eeprom')
-rw-r--r--common2/components/memory/eeprom/at30tse75x/at30tse75x.c283
-rw-r--r--common2/components/memory/eeprom/at30tse75x/at30tse75x.h139
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/at30tes_example.c171
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_at30tse75x.h59
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_board.h50
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_i2c.h57
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/Makefile52
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/asf.h82
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/config.mk146
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_at30tse75x.h59
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_board.h50
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_i2c.h56
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_at30tse75x.h59
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_board.h50
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_i2c.h56
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/Makefile52
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/asf.h82
-rw-r--r--common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/config.mk146
-rw-r--r--common2/components/memory/eeprom/at30tse75x/module_config/conf_at30tse75x.h59
19 files changed, 1708 insertions, 0 deletions
diff --git a/common2/components/memory/eeprom/at30tse75x/at30tse75x.c b/common2/components/memory/eeprom/at30tse75x/at30tse75x.c
new file mode 100644
index 00000000..1d02ba33
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/at30tse75x.c
@@ -0,0 +1,283 @@
+/**
+ * \file
+ *
+ * \brief AT30TSE75X driver
+ *
+ * Copyright (c) 2015 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+#include "at30tse75x.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct i2c_master_module dev_inst_at30tse75x;
+uint8_t resolution = AT30TSE_CONFIG_RES_9_bit;
+
+/**
+ * \brief Configures the SERCOM I2C master to be used with the AT30TSE75X device.
+ */
+void at30tse_init(void)
+{
+ /* Initialize config structure and device instance. */
+ struct i2c_master_config conf;
+ i2c_master_get_config_defaults(&conf);
+
+ conf.pin_number_pad0 = AT30TSE_PIN_PAD0;
+ conf.pin_number_pad1 = AT30TSE_PIN_PAD1;
+
+ conf.pinmux_sel_pad0 = AT30TSE_MUX_PAD0;
+ conf.pinmux_sel_pad1 = AT30TSE_MUX_PAD1;
+
+ /* Initialize and enable device with config. */
+ i2c_master_init(&dev_inst_at30tse75x, AT30TSE_I2C_MODULE, &conf);
+ i2c_enable(dev_inst_at30tse75x.hw);
+}
+
+/**
+ * \brief Writes the EEPROM with data provided.
+ *
+ * \param[out] *data Pointer to the data buffer.
+ * \param[in] length Number of data bytes.
+ * \param[in] word_addr Word address of the EEPROM.
+ * \param[in] page Page number of the EEPROM.
+ */
+void at30tse_eeprom_write(uint8_t *data, uint8_t length, uint8_t word_addr, uint8_t page)
+{
+ /* ACK polling for consecutive writing not implemented! */
+ uint8_t buffer[17];
+ /* Byte addr in page (0-15) */
+ buffer[0] = word_addr & 0x0F;
+ /* 4 lower bits of page addr in EEPROM */
+ buffer[0] |= (0x0F & page) << 4;
+
+ /* Copy data to be sent */
+ for (uint8_t i=1; i<17; i++){
+ buffer[i] = data[i-1];
+ }
+
+ /* Set up TWI transfer */
+ struct i2c_master_packet packet = {
+ .address = AT30TSE758_EEPROM_TWI_ADDR | (page >> 4),
+ .data_length = length+1,
+ .data = buffer,
+ };
+ /* Do the transfer */
+ i2c_master_write_packet_wait(&dev_inst_at30tse75x, &packet);
+}
+
+/**
+ * \brief Reads data from the EEPROM.
+ *
+ * \param[out] *data Pointer to the data buffer.
+ * \param[in] length Number of data bytes.
+ * \param[in] word_addr Word address of the EEPROM.
+ * \param[in] page Page number of the EEPROM.
+ */
+void at30tse_eeprom_read(uint8_t *data, uint8_t length, uint8_t word_addr, uint8_t page)
+{
+ /* ACK polling for consecutive reading not implemented! */
+ uint8_t buffer[1];
+ /* Byte addr in page (0-15) */
+ buffer[0] = word_addr & 0x0F;
+ /* 4 lower bits of page addr in EEPROM */
+ buffer[0] |= (0x0F & page) << 4;
+
+ /* Set up internal EEPROM addr write */
+ struct i2c_master_packet addr_transfer = {
+ .address = AT30TSE758_EEPROM_TWI_ADDR | (page >> 4),
+ .data_length = 1,
+ .data = buffer,
+ };
+ /* Reading sequence */
+ struct i2c_master_packet read_transfer = {
+ .address = AT30TSE758_EEPROM_TWI_ADDR | (page >> 4),
+ .data_length = length,
+ .data = data,
+ };
+
+ /* Do the transfer */
+ i2c_master_write_packet_wait_no_stop(&dev_inst_at30tse75x, &addr_transfer);
+ i2c_master_read_packet_wait(&dev_inst_at30tse75x, &read_transfer);
+}
+
+/**
+ * \brief Sets the register pointer with specified reg value.
+ *
+ * \param[in] reg Register value of the pointer register.
+ * \param[in] reg_type Register type being pointed by pointer register.
+ */
+void at30tse_set_register_pointer(uint8_t reg, uint8_t reg_type)
+{
+ uint8_t buffer[] = {reg | reg_type};
+ struct i2c_master_packet transfer = {
+ .address = AT30TSE_TEMPERATURE_TWI_ADDR,
+ .data_length = 1,
+ .data = buffer,
+ };
+ /* Do the transfer */
+ i2c_master_write_packet_wait(&dev_inst_at30tse75x, &transfer);
+}
+
+/**
+ * \brief Reads the value from the register reg.
+ *
+ * \param[in] reg Register to read.
+ * \param[in] reg_type Type of the register (Volatile or Non-volatile).
+ * \param[in] reg_size Register size.
+ *
+ * \return Register value.
+ */
+uint16_t at30tse_read_register(uint8_t reg, uint8_t reg_type, uint8_t reg_size)
+{
+ uint8_t buffer[2];
+ buffer[0] = reg | reg_type;
+ buffer[1] = 0;
+
+ /* Internal register pointer in AT30TSE */
+ struct i2c_master_packet write_transfer = {
+ .address = AT30TSE_TEMPERATURE_TWI_ADDR,
+ .data_length = 1,
+ .data = buffer,
+ };
+ /* Read data */
+ struct i2c_master_packet read_transfer = {
+ .address = AT30TSE_TEMPERATURE_TWI_ADDR,
+ .data_length = reg_size,
+ .data = buffer,
+ };
+ /* Do the transfer */
+ i2c_master_write_packet_wait_no_stop(&dev_inst_at30tse75x, &write_transfer);
+ i2c_master_read_packet_wait(&dev_inst_at30tse75x, &read_transfer);
+
+ return (buffer[0] << 8) | buffer[1];
+}
+
+/**
+ * \brief Writes the specified register reg with the reg_value passed
+ *
+ * \param[in] reg Register to write.
+ * \param[in] reg_type Type of the register (Volatile or Non-volatile).
+ * \param[in] reg_size Register size.
+ * \param[in] reg_value Value to be written to reg.
+ */
+void at30tse_write_register(uint8_t reg, uint8_t reg_type, uint8_t reg_size, uint16_t reg_value)
+{
+ uint8_t data[3];
+ data[0] = reg | reg_type;
+ data[1] = 0x00FF & (reg_value >> 8);
+ data[2] = 0x00FF & reg_value;
+
+ /* Internal register pointer in AT30TSE */
+ struct i2c_master_packet transfer = {
+ .address = AT30TSE_TEMPERATURE_TWI_ADDR,
+ .data_length = 1 + reg_size,
+ .data = data,
+ };
+ /* Do the transfer */
+ i2c_master_write_packet_wait(&dev_inst_at30tse75x, &transfer);
+}
+
+/**
+ * \brief Writes the configuration register reg with the value passed
+ *
+ * \param[in] value Register value to be written.
+ */
+void at30tse_write_config_register(uint16_t value)
+{
+ at30tse_write_register(AT30TSE_CONFIG_REG,
+ AT30TSE_NON_VOLATILE_REG,
+ AT30TSE_CONFIG_REG_SIZE-1,
+ value);
+
+ resolution = ( value >> AT30TSE_CONFIG_RES_Pos ) & ( AT30TSE_CONFIG_RES_Msk >> AT30TSE_CONFIG_RES_Pos);
+
+}
+
+/**
+ * \brief Reads the temperature value.
+ *
+ * \return Temperature data.
+ */
+double at30tse_read_temperature(void)
+{
+ /* Read the 16-bit temperature register. */
+ uint16_t data = at30tse_read_register(AT30TSE_TEMPERATURE_REG,
+ AT30TSE_NON_VOLATILE_REG,
+ AT30TSE_TEMPERATURE_REG_SIZE);
+
+ double temperature = 0;
+ int8_t sign = 1;
+
+ /*Check if negative and clear sign bit. */
+ if (data & (1 << 15)){
+ sign *= -1;
+ data &= ~(1 << 15);
+ }
+
+ /* Convert to temperature */
+ switch (resolution){
+ case AT30TSE_CONFIG_RES_9_bit:
+ data = (data >> 7);
+ temperature = data * sign * 0.5;
+ break;
+ case AT30TSE_CONFIG_RES_10_bit:
+ data = (data >> 6);
+ temperature = data * sign * 0.25;
+ break;
+ case AT30TSE_CONFIG_RES_11_bit:
+ data = (data >> 5);
+ temperature = data * sign * 0.125;
+ break;
+ case AT30TSE_CONFIG_RES_12_bit:
+ data = (data >> 4);
+ temperature = data * sign * 0.0625;
+ break;
+ default:
+ break;
+ }
+ return temperature;
+}
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/common2/components/memory/eeprom/at30tse75x/at30tse75x.h b/common2/components/memory/eeprom/at30tse75x/at30tse75x.h
new file mode 100644
index 00000000..648101f9
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/at30tse75x.h
@@ -0,0 +1,139 @@
+/**
+ * \file
+ *
+ * \brief AT30TSE75X driver
+ *
+ * Copyright (c) 2015 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+#ifndef AT30TSE75X_H_INCLUDED
+#define AT30TSE75X_H_INCLUDED
+
+#include <compiler.h>
+#include <i2c_master.h>
+
+/* Temperature sensor configuration file */
+#include "conf_at30tse75x.h"
+
+/**
+ * \defgroup asfdoc_samb_at30tse75x_group AT30TSE75X Digital Temperature Sensor and Serial EEPROM.
+ * This driver provides API for AT30TSE75X temperature sensor and EEPROM
+ * through I2C interface.
+ *
+ * See \ref asfdoc_samb_at30tse75x_qs.
+ *
+ *
+ * \section asfdoc_samb_at30tse75x_dependencies Dependencies
+ * This driver depends on the following module:
+ * - \ref asfdoc_samb_i2c_group "SAM B11 I2C master"
+ *
+ * \section asfdoc_samb_at30tse75x_api_overview API Overview
+ * @{
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define AT30TSE_TEMPERATURE_TWI_ADDR 0x48 //0b1001000
+#define AT30TSE758_EEPROM_TWI_ADDR 0x50 //0b1010000
+#define AT30TSE754_EEPROM_TWI_ADDR 0x50 //0b1010000
+#define AT30TSE752_EEPROM_TWI_ADDR 0x50 //0b1010000
+
+#define AT30TSE_TEMPERATURE_REG 0x00
+#define AT30TSE_TEMPERATURE_REG_SIZE 2
+#define AT30TSE_NON_VOLATILE_REG 0x00
+#define AT30TSE_VOLATILE_REG 0x10
+
+#define AT30TSE_CONFIG_REG 0x01
+#define AT30TSE_CONFIG_REG_SIZE 2
+#define AT30TSE_TLOW_REG 0x02
+#define AT30TSE_TLOW_REG_SIZE 2
+#define AT30TSE_THIGH_REG 0x03
+#define AT30TSE_THIGH_REG_SIZE 2
+
+#define AT30TSE_CONFIG_RES_Pos 13
+#define AT30TSE_CONFIG_RES_Msk (0x03 << AT30TSE_CONFIG_RES_Pos)
+#define AT30TSE_CONFIG_RES(value) ((AT30TSE_CONFIG_RES_Msk & ((value) << AT30TSE_CONFIG_RES_Pos)))
+
+#define AT30TSE_CONFIG_RES_9_bit 0
+#define AT30TSE_CONFIG_RES_10_bit 1
+#define AT30TSE_CONFIG_RES_11_bit 2
+#define AT30TSE_CONFIG_RES_12_bit 3
+
+#define AT30TSE_CONFIG_FTQ_Pos 13
+#define AT30TSE_CONFIG_FTQ_Msk (0x03 << AT30TSE_CONFIG_FTQ_Pos)
+#define AT30TSE_CONFIG_FTQ(value) ((AT30TSE_CONFIG_FTQ_Msk & ((value) << AT30TSE_CONFIG_FTQ_Pos)))
+
+#define AT30TSE_CONFIG_FTQ_1_fault 0
+#define AT30TSE_CONFIG_RES_2_fault 1
+#define AT30TSE_CONFIG_RES_4_fault 2
+#define AT30TSE_CONFIG_RES_6_fault 3
+
+// R/W bits
+#define AT30TSE_CONFIG_OS (1 << 15)
+#define AT30TSE_CONFIG_R1 (1 << 14)
+#define AT30TSE_CONFIG_R0 (1 << 13)
+#define AT30TSE_CONFIG_FT1 (1 << 12)
+#define AT30TSE_CONFIG_FT0 (1 << 11)
+#define AT30TSE_CONFIG_POL (1 << 10)
+#define AT30TSE_CONFIG_CMP_INT (1 << 9)
+#define AT30TSE_CONFIG_SD (1 << 8)
+
+/* Read only bits */
+#define AT30TSE_CONFIG_NVRBSY (1 << 0)
+
+void at30tse_init(void);
+void at30tse_eeprom_write(uint8_t *data, uint8_t length, uint8_t word_addr, uint8_t page);
+void at30tse_eeprom_read(uint8_t *data, uint8_t length, uint8_t word_addr, uint8_t page);
+double at30tse_read_temperature(void);
+void at30tse_write_config_register(uint16_t value);
+uint16_t at30tse_read_register(uint8_t reg, uint8_t reg_type, uint8_t reg_size);
+void at30tse_write_register(uint8_t reg, uint8_t reg_type, uint8_t reg_size, uint16_t reg_value);
+void at30tse_set_register_pointer(uint8_t reg, uint8_t reg_type);
+
+#ifdef __cplusplus
+}
+#endif
+
+/** @} */
+
+#endif /* AT30TSE75X_H_ */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/at30tes_example.c b/common2/components/memory/eeprom/at30tse75x/example/at30tes_example.c
new file mode 100644
index 00000000..f07f9470
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/at30tes_example.c
@@ -0,0 +1,171 @@
+/**
+ * \file
+ *
+ * \brief AT30TS(E)75x EEPROM and Temperature Sensor Example.
+ *
+ * Copyright (c) 2015 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+
+/**
+ * \page asfdoc_samb_at30tse75x_qs AT30TS(E)75x EEPROM and Temperature Sensor Example
+ *
+ * \section Purpose
+ *
+ * The application demonstrates how to access AT30TS(E)75x temperature sensor.
+ *
+ * \section Requirements
+ *
+ * This package can be used with:
+ * - SAMB11 Xplained Pro board.
+ *
+ * \section Description
+ * There are 2 stages in the example.
+ * - In 1st stage, some patterns are written to the specified memory address of
+ * the EEPROM in AT30TSE75x. Then the memory is read and checked (note this
+ * stage is only for the device which has EEPROM).
+ * - In 2nd stage, the temperature sampled by AT30TS(E)75x is read every second.
+ *
+ * \section compinfo Compilation Info
+ * This software was written for the GNU GCC and IAR EWARM.
+ * Other compilers may or may not work.
+ *
+ * \section contactinfo Contact Information
+ * For further information, visit
+ * <A href="http://www.atmel.com/">Atmel</A>.\n
+ * Support and FAQ: http://www.atmel.com/design-support/
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+#include <asf.h>
+#include <string.h>
+#include "at30tse75x.h"
+
+#define NB_PAGE 16
+#define NB_BYTE 16
+
+static uint8_t rx_buffer[NB_BYTE], tx_buffer[NB_BYTE];
+
+static void delay(uint32_t count)
+{
+ for (uint32_t i = 0; i < count; i++) {
+ for (uint32_t j = 0; j < 1000; j++)
+ asm volatile ("nop");
+ }
+}
+
+int main(void)
+{
+ volatile double temper_value;
+ volatile bool data_check_status1 = true,
+ data_check_status2 = true;
+ uint32_t i;
+
+ system_clock_config(CLOCK_RESOURCE_XO_26_MHZ, CLOCK_FREQ_26_MHZ);
+
+ /* Initialize AT30TS(E)75x */
+ at30tse_init();
+
+ /* First round data check */
+ for (i = 0; i < NB_BYTE; i++) {
+ tx_buffer[i] = i;
+ }
+
+ /* Write pages in EEPROM */
+ for (i = 0; i < NB_PAGE; i++) {
+ at30tse_eeprom_write(tx_buffer, NB_BYTE, 0, i);
+ delay(200);
+ }
+
+ /* Read each page in EEPROM and compare them */
+ for (i = 0; i < NB_PAGE; i++) {
+ memset(rx_buffer, 0, NB_BYTE);
+ at30tse_eeprom_read(rx_buffer, NB_BYTE, 0, i);
+ if (memcmp(tx_buffer, rx_buffer, NB_BYTE)) {
+ data_check_status1 = false;
+ break;
+ }
+ }
+
+ /* Second round data check */
+ for (i = 0; i < NB_BYTE; i++) {
+ tx_buffer[i] = NB_BYTE - i;
+ }
+
+ /* Write pages in EEPROM */
+ for (i = 0; i < NB_PAGE; i++) {
+ at30tse_eeprom_write(tx_buffer, NB_BYTE, 0, i);
+ delay(200);
+ }
+
+ /* Read each page in EEPROM and compare them */
+ for (i = 0; i < NB_PAGE; i++) {
+ memset(rx_buffer, 0, NB_BYTE);
+ at30tse_eeprom_read(rx_buffer, NB_BYTE, 0, i);
+ if (memcmp(tx_buffer, rx_buffer, NB_BYTE)) {
+ data_check_status2 = false;
+ break;
+ }
+ }
+
+ /* Read thigh and tlow */
+ volatile uint16_t thigh = 0;
+ thigh = at30tse_read_register(AT30TSE_THIGH_REG,
+ AT30TSE_NON_VOLATILE_REG, AT30TSE_THIGH_REG_SIZE);
+
+ volatile uint16_t tlow = 0;
+ tlow = at30tse_read_register(AT30TSE_TLOW_REG,
+ AT30TSE_NON_VOLATILE_REG, AT30TSE_TLOW_REG_SIZE);
+
+ /* Set 12-bit resolution mode. */
+ at30tse_write_config_register(
+ AT30TSE_CONFIG_RES(AT30TSE_CONFIG_RES_12_bit));
+
+ while (1) {
+ /* Read current temperature. */
+ temper_value = at30tse_read_temperature();
+ }
+
+ UNUSED(data_check_status1);
+ UNUSED(data_check_status2);
+ UNUSED(temper_value);
+ UNUSED(tlow);
+ UNUSED(thigh);
+}
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_at30tse75x.h b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_at30tse75x.h
new file mode 100644
index 00000000..dc6c7b4e
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_at30tse75x.h
@@ -0,0 +1,59 @@
+/**
+ * \file
+ *
+ * \brief AT30TSE75X Temperature sensor driver configuration file.
+ *
+ * Copyright (c) 2015-2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+#ifndef CONF_AT30TSE75X_H_INCLUDED
+#define CONF_AT30TSE75X_H_INCLUDED
+
+#include <board.h>
+
+#define AT30TSE_I2C_MODULE I2C0
+
+#define AT30TSE_PIN_PAD0 PIN_LP_GPIO_8
+#define AT30TSE_PIN_PAD1 PIN_LP_GPIO_9
+
+#define AT30TSE_MUX_PAD0 MUX_LP_GPIO_8_I2C0_SDA
+#define AT30TSE_MUX_PAD1 MUX_LP_GPIO_9_I2C0_SCL
+
+#endif /* CONF_AT30TSE75X_H_INCLUDED */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_board.h b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_board.h
new file mode 100644
index 00000000..c0567889
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_board.h
@@ -0,0 +1,50 @@
+/**
+ * \file
+ *
+ * \brief SAM R21 Xplained Pro board configuration.
+ *
+ * Copyright (c) 2015 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+#ifndef CONF_BOARD_H_INCLUDED
+#define CONF_BOARD_H_INCLUDED
+
+#endif /* CONF_BOARD_H_INCLUDED */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_i2c.h b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_i2c.h
new file mode 100644
index 00000000..f628ab47
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/conf_i2c.h
@@ -0,0 +1,57 @@
+
+/**
+ * \file
+ *
+ * \brief SAM B11 I2C configuration
+ *
+ * Copyright (C) 2015 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+
+#ifndef CONF_I2C_H_INCLUDED
+# define CONF_I2C_H_INCLUDED
+
+# define CONF_I2C_MASTER_ENABLE true
+# define CONF_I2C_SLAVE_ENABLE false
+
+# define I2C_CALLBACK_MODE false
+
+#endif /* CONF_I2C_H_INCLUDED */ \ No newline at end of file
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/Makefile b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/Makefile
new file mode 100644
index 00000000..95739974
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/Makefile
@@ -0,0 +1,52 @@
+# List of available make goals:
+#
+# all Default target, builds the project
+# clean Clean up the project
+# rebuild Rebuild the project
+#
+#
+# doc Build the documentation
+# cleandoc Clean up the documentation
+# rebuilddoc Rebuild the documentation
+#
+# Copyright (c) 2011 Atmel Corporation. All rights reserved.
+#
+# \asf_license_start
+#
+# \page License
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. The name of Atmel may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# 4. This software may only be redistributed and used in connection with an
+# Atmel microcontroller product.
+#
+# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+# \asf_license_stop
+#
+
+# Include the common Makefile, which will also include the project specific
+# config.mk file.
+MAKEFILE_PATH = ../../../../../../../../sam0/utils/make/Makefile.sam.in
+include $(MAKEFILE_PATH)
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/asf.h b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/asf.h
new file mode 100644
index 00000000..a1bc07b8
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/asf.h
@@ -0,0 +1,82 @@
+/**
+ * \file
+ *
+ * \brief Autogenerated API include file for the Atmel Software Framework (ASF)
+ *
+ * Copyright (c) 2012 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+
+#ifndef ASF_H
+#define ASF_H
+
+/*
+ * This file includes all API header files for the selected drivers from ASF.
+ * Note: There might be duplicate includes required by more than one driver.
+ *
+ * The file is automatically generated and will be re-written when
+ * running the ASF driver selector tool. Any changes will be discarded.
+ */
+
+// From module: Common SAM0 compiler driver
+#include <compiler.h>
+#include <status_codes.h>
+
+// From module: EEPROM AT30TSE75X
+#include <at30tse75x.h>
+
+// From module: GPIO - GPIO Pin Control for SAMB (Callback APIs)
+#include <gpio.h>
+
+// From module: Generic board support
+#include <board.h>
+
+// From module: I2C - Inter-Integrated Circuit for SAMB
+#include <i2c_common.h>
+#include <i2c_master.h>
+#include <i2c_master_interrupt.h>
+
+// From module: Interrupt management - SAM implementation
+#include <interrupt.h>
+
+// From module: Part identification macros
+#include <parts.h>
+
+// From module: SYSTEM - Core System Driver for SAMB
+#include <system_sam_b.h>
+
+#endif // ASF_H
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/config.mk b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/config.mk
new file mode 100644
index 00000000..d73e0439
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc/config.mk
@@ -0,0 +1,146 @@
+#
+# Copyright (c) 2011 Atmel Corporation. All rights reserved.
+#
+# \asf_license_start
+#
+# \page License
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. The name of Atmel may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# 4. This software may only be redistributed and used in connection with an
+# Atmel microcontroller product.
+#
+# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+# \asf_license_stop
+#
+
+# Path to top level ASF directory relative to this project directory.
+PRJ_PATH = ../../../../../../../..
+
+# Target CPU architecture: cortex-m3, cortex-m4
+ARCH = cortex-m0
+
+# Target part: none, sam3n4 or sam4l4aa
+PART = samb11g18a
+
+# Application target name. Given with suffix .a for library and .elf for a
+# standalone application.
+TARGET_FLASH = at30tse75x_example_flash.elf
+TARGET_SRAM = at30tse75x_example_sram.elf
+
+# List of C source files.
+CSRCS = \
+ common/utils/interrupt/interrupt_sam_nvic.c \
+ common2/components/memory/eeprom/at30tse75x/at30tse75x.c \
+ common2/components/memory/eeprom/at30tse75x/example/at30tes_example.c \
+ sam0/boards/samb11_xplained_pro/board_init.c \
+ sam0/drivers/gpio/gpio.c \
+ sam0/drivers/i2c/i2c_master.c \
+ sam0/drivers/i2c/i2c_master_interrupt.c \
+ sam0/drivers/system/system_sam_b.c \
+ sam0/utils/cmsis/samb11/source/gcc/startup_samb11.c \
+ sam0/utils/cmsis/samb11/source/system_samb11.c \
+ sam0/utils/syscalls/gcc/syscalls.c
+
+# List of assembler source files.
+ASSRCS =
+
+# List of include paths.
+INC_PATH = \
+ common/boards \
+ common/utils \
+ common2/components/memory/eeprom/at30tse75x \
+ common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro \
+ sam0/boards \
+ sam0/boards/samb11_xplained_pro \
+ sam0/drivers/gpio \
+ sam0/drivers/i2c \
+ sam0/drivers/system \
+ sam0/utils \
+ sam0/utils/cmsis/samb11/include \
+ sam0/utils/cmsis/samb11/source \
+ sam0/utils/header_files \
+ sam0/utils/preprocessor \
+ thirdparty/CMSIS/Include \
+ thirdparty/CMSIS/Lib/GCC \
+ common2/components/memory/eeprom/at30tse75x/example/samb11_xplained_pro/gcc
+
+# Additional search paths for libraries.
+LIB_PATH = \
+ thirdparty/CMSIS/Lib/GCC
+
+# List of libraries to use during linking.
+LIBS = \
+ arm_cortexM0l_math
+
+# Path relative to top level directory pointing to a linker script.
+LINKER_SCRIPT_FLASH = sam0/utils/linker_scripts/samb11/gcc/samb11g18a_sram.ld
+LINKER_SCRIPT_SRAM = sam0/utils/linker_scripts/samb11/gcc/samb11g18a_sram.ld
+
+# Path relative to top level directory pointing to a linker script.
+DEBUG_SCRIPT_FLASH =
+DEBUG_SCRIPT_SRAM = sam0/boards/samb11_xplained_pro/debug_scripts/gcc/samb11_xplained_pro_sram.gdb
+
+# Project type parameter: all, sram or flash
+PROJECT_TYPE = flash
+
+# Additional options for debugging. By default the common Makefile.in will
+# add -g3.
+DBGFLAGS =
+
+# Application optimization used during compilation and linking:
+# -O0, -O1, -O2, -O3 or -Os
+OPTIMIZATION = -O1
+
+# Extra flags to use when archiving.
+ARFLAGS =
+
+# Extra flags to use when assembling.
+ASFLAGS =
+
+# Extra flags to use when compiling.
+CFLAGS =
+
+# Extra flags to use when preprocessing.
+#
+# Preprocessor symbol definitions
+# To add a definition use the format "-D name[=definition]".
+# To cancel a definition use the format "-U name".
+#
+# The most relevant symbols to define for the preprocessor are:
+# BOARD Target board in use, see boards/board.h for a list.
+# EXT_BOARD Optional extension board in use, see boards/board.h for a list.
+CPPFLAGS = \
+ -D ARM_MATH_CM0PLUS=true \
+ -D BOARD=SAMB11_XPLAINED_PRO \
+ -D I2C_MASTER_CALLBACK_MODE=true \
+ -D __SAMB11G18A__
+
+# Extra flags to use when linking
+LDFLAGS = \
+
+# Pre- and post-build commands
+PREBUILD_CMD =
+POSTBUILD_CMD = \ No newline at end of file
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_at30tse75x.h b/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_at30tse75x.h
new file mode 100644
index 00000000..8c9cd1d9
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_at30tse75x.h
@@ -0,0 +1,59 @@
+/**
+ * \file
+ *
+ * \brief AT30TSE75X Temperature sensor driver configuration file.
+ *
+ * Copyright (c) 2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+#ifndef CONF_AT30TSE75X_H_INCLUDED
+#define CONF_AT30TSE75X_H_INCLUDED
+
+#include <board.h>
+
+#define AT30TSE_I2C_MODULE I2C0
+
+#define AT30TSE_PIN_PAD0 PIN_LP_GPIO_8
+#define AT30TSE_PIN_PAD1 PIN_LP_GPIO_9
+
+#define AT30TSE_MUX_PAD0 MUX_LP_GPIO_8_I2C0_SDA
+#define AT30TSE_MUX_PAD1 MUX_LP_GPIO_9_I2C0_SCL
+
+#endif /* CONF_AT30TSE75X_H_INCLUDED */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_board.h b/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_board.h
new file mode 100644
index 00000000..3c0b8a83
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_board.h
@@ -0,0 +1,50 @@
+/**
+ * \file
+ *
+ * \brief SAM B11 CSP Xplained Pro board configuration.
+ *
+ * Copyright (c) 2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+#ifndef CONF_BOARD_H_INCLUDED
+#define CONF_BOARD_H_INCLUDED
+
+#endif /* CONF_BOARD_H_INCLUDED */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_i2c.h b/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_i2c.h
new file mode 100644
index 00000000..8d6a75ca
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11csp_xplained_pro/conf_i2c.h
@@ -0,0 +1,56 @@
+/**
+ * \file
+ *
+ * \brief SAM B11 CSP Xplained Pro I2C configuration
+ *
+ * Copyright (c) 2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+
+#ifndef CONF_I2C_H_INCLUDED
+# define CONF_I2C_H_INCLUDED
+
+# define CONF_I2C_MASTER_ENABLE true
+# define CONF_I2C_SLAVE_ENABLE false
+
+# define I2C_CALLBACK_MODE false
+
+#endif /* CONF_I2C_H_INCLUDED */ \ No newline at end of file
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_at30tse75x.h b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_at30tse75x.h
new file mode 100644
index 00000000..8c9cd1d9
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_at30tse75x.h
@@ -0,0 +1,59 @@
+/**
+ * \file
+ *
+ * \brief AT30TSE75X Temperature sensor driver configuration file.
+ *
+ * Copyright (c) 2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+#ifndef CONF_AT30TSE75X_H_INCLUDED
+#define CONF_AT30TSE75X_H_INCLUDED
+
+#include <board.h>
+
+#define AT30TSE_I2C_MODULE I2C0
+
+#define AT30TSE_PIN_PAD0 PIN_LP_GPIO_8
+#define AT30TSE_PIN_PAD1 PIN_LP_GPIO_9
+
+#define AT30TSE_MUX_PAD0 MUX_LP_GPIO_8_I2C0_SDA
+#define AT30TSE_MUX_PAD1 MUX_LP_GPIO_9_I2C0_SCL
+
+#endif /* CONF_AT30TSE75X_H_INCLUDED */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_board.h b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_board.h
new file mode 100644
index 00000000..8639301d
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_board.h
@@ -0,0 +1,50 @@
+/**
+ * \file
+ *
+ * \brief SAM B11 ZR Xplained Pro board configuration.
+ *
+ * Copyright (c) 2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+#ifndef CONF_BOARD_H_INCLUDED
+#define CONF_BOARD_H_INCLUDED
+
+#endif /* CONF_BOARD_H_INCLUDED */
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_i2c.h b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_i2c.h
new file mode 100644
index 00000000..b73508e7
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/conf_i2c.h
@@ -0,0 +1,56 @@
+/**
+ * \file
+ *
+ * \brief SAM B11 ZR Xplained Pro I2C configuration
+ *
+ * Copyright (c) 2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+
+
+#ifndef CONF_I2C_H_INCLUDED
+# define CONF_I2C_H_INCLUDED
+
+# define CONF_I2C_MASTER_ENABLE true
+# define CONF_I2C_SLAVE_ENABLE false
+
+# define I2C_CALLBACK_MODE false
+
+#endif /* CONF_I2C_H_INCLUDED */ \ No newline at end of file
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/Makefile b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/Makefile
new file mode 100644
index 00000000..95739974
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/Makefile
@@ -0,0 +1,52 @@
+# List of available make goals:
+#
+# all Default target, builds the project
+# clean Clean up the project
+# rebuild Rebuild the project
+#
+#
+# doc Build the documentation
+# cleandoc Clean up the documentation
+# rebuilddoc Rebuild the documentation
+#
+# Copyright (c) 2011 Atmel Corporation. All rights reserved.
+#
+# \asf_license_start
+#
+# \page License
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. The name of Atmel may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# 4. This software may only be redistributed and used in connection with an
+# Atmel microcontroller product.
+#
+# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+# \asf_license_stop
+#
+
+# Include the common Makefile, which will also include the project specific
+# config.mk file.
+MAKEFILE_PATH = ../../../../../../../../sam0/utils/make/Makefile.sam.in
+include $(MAKEFILE_PATH)
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/asf.h b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/asf.h
new file mode 100644
index 00000000..a1bc07b8
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/asf.h
@@ -0,0 +1,82 @@
+/**
+ * \file
+ *
+ * \brief Autogenerated API include file for the Atmel Software Framework (ASF)
+ *
+ * Copyright (c) 2012 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+
+#ifndef ASF_H
+#define ASF_H
+
+/*
+ * This file includes all API header files for the selected drivers from ASF.
+ * Note: There might be duplicate includes required by more than one driver.
+ *
+ * The file is automatically generated and will be re-written when
+ * running the ASF driver selector tool. Any changes will be discarded.
+ */
+
+// From module: Common SAM0 compiler driver
+#include <compiler.h>
+#include <status_codes.h>
+
+// From module: EEPROM AT30TSE75X
+#include <at30tse75x.h>
+
+// From module: GPIO - GPIO Pin Control for SAMB (Callback APIs)
+#include <gpio.h>
+
+// From module: Generic board support
+#include <board.h>
+
+// From module: I2C - Inter-Integrated Circuit for SAMB
+#include <i2c_common.h>
+#include <i2c_master.h>
+#include <i2c_master_interrupt.h>
+
+// From module: Interrupt management - SAM implementation
+#include <interrupt.h>
+
+// From module: Part identification macros
+#include <parts.h>
+
+// From module: SYSTEM - Core System Driver for SAMB
+#include <system_sam_b.h>
+
+#endif // ASF_H
diff --git a/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/config.mk b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/config.mk
new file mode 100644
index 00000000..6287c00a
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc/config.mk
@@ -0,0 +1,146 @@
+#
+# Copyright (c) 2011 Atmel Corporation. All rights reserved.
+#
+# \asf_license_start
+#
+# \page License
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. The name of Atmel may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# 4. This software may only be redistributed and used in connection with an
+# Atmel microcontroller product.
+#
+# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+# \asf_license_stop
+#
+
+# Path to top level ASF directory relative to this project directory.
+PRJ_PATH = ../../../../../../../..
+
+# Target CPU architecture: cortex-m3, cortex-m4
+ARCH = cortex-m0
+
+# Target part: none, sam3n4 or sam4l4aa
+PART = samb11zr
+
+# Application target name. Given with suffix .a for library and .elf for a
+# standalone application.
+TARGET_FLASH = at30tse75x_example_flash.elf
+TARGET_SRAM = at30tse75x_example_sram.elf
+
+# List of C source files.
+CSRCS = \
+ common/utils/interrupt/interrupt_sam_nvic.c \
+ common2/components/memory/eeprom/at30tse75x/at30tse75x.c \
+ common2/components/memory/eeprom/at30tse75x/example/at30tes_example.c \
+ sam0/boards/samb11zr_xplained_pro/board_init.c \
+ sam0/drivers/gpio/gpio.c \
+ sam0/drivers/i2c/i2c_master.c \
+ sam0/drivers/i2c/i2c_master_interrupt.c \
+ sam0/drivers/system/system_sam_b.c \
+ sam0/utils/cmsis/samb11/source/gcc/startup_samb11.c \
+ sam0/utils/cmsis/samb11/source/system_samb11.c \
+ sam0/utils/syscalls/gcc/syscalls.c
+
+# List of assembler source files.
+ASSRCS =
+
+# List of include paths.
+INC_PATH = \
+ common/boards \
+ common/utils \
+ common2/components/memory/eeprom/at30tse75x \
+ common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro \
+ sam0/boards \
+ sam0/boards/samb11zr_xplained_pro \
+ sam0/drivers/gpio \
+ sam0/drivers/i2c \
+ sam0/drivers/system \
+ sam0/utils \
+ sam0/utils/cmsis/samb11/include \
+ sam0/utils/cmsis/samb11/source \
+ sam0/utils/header_files \
+ sam0/utils/preprocessor \
+ thirdparty/CMSIS/Include \
+ thirdparty/CMSIS/Lib/GCC \
+ common2/components/memory/eeprom/at30tse75x/example/samb11zr_xplained_pro/gcc
+
+# Additional search paths for libraries.
+LIB_PATH = \
+ thirdparty/CMSIS/Lib/GCC
+
+# List of libraries to use during linking.
+LIBS = \
+ arm_cortexM0l_math
+
+# Path relative to top level directory pointing to a linker script.
+LINKER_SCRIPT_FLASH = sam0/utils/linker_scripts/samb11/gcc/samb11g18a_sram.ld
+LINKER_SCRIPT_SRAM = sam0/utils/linker_scripts/samb11/gcc/samb11g18a_sram.ld
+
+# Path relative to top level directory pointing to a linker script.
+DEBUG_SCRIPT_FLASH =
+DEBUG_SCRIPT_SRAM = sam0/boards/samb11zr_xplained_pro/debug_scripts/gcc/samb11zr_xplained_pro_sram.gdb
+
+# Project type parameter: all, sram or flash
+PROJECT_TYPE = flash
+
+# Additional options for debugging. By default the common Makefile.in will
+# add -g3.
+DBGFLAGS =
+
+# Application optimization used during compilation and linking:
+# -O0, -O1, -O2, -O3 or -Os
+OPTIMIZATION = -O1
+
+# Extra flags to use when archiving.
+ARFLAGS =
+
+# Extra flags to use when assembling.
+ASFLAGS =
+
+# Extra flags to use when compiling.
+CFLAGS =
+
+# Extra flags to use when preprocessing.
+#
+# Preprocessor symbol definitions
+# To add a definition use the format "-D name[=definition]".
+# To cancel a definition use the format "-U name".
+#
+# The most relevant symbols to define for the preprocessor are:
+# BOARD Target board in use, see boards/board.h for a list.
+# EXT_BOARD Optional extension board in use, see boards/board.h for a list.
+CPPFLAGS = \
+ -D ARM_MATH_CM0PLUS=true \
+ -D BOARD=SAMB11ZR_XPLAINED_PRO \
+ -D I2C_MASTER_CALLBACK_MODE=true \
+ -D __SAMB11ZR__
+
+# Extra flags to use when linking
+LDFLAGS = \
+
+# Pre- and post-build commands
+PREBUILD_CMD =
+POSTBUILD_CMD = \ No newline at end of file
diff --git a/common2/components/memory/eeprom/at30tse75x/module_config/conf_at30tse75x.h b/common2/components/memory/eeprom/at30tse75x/module_config/conf_at30tse75x.h
new file mode 100644
index 00000000..dc6c7b4e
--- /dev/null
+++ b/common2/components/memory/eeprom/at30tse75x/module_config/conf_at30tse75x.h
@@ -0,0 +1,59 @@
+/**
+ * \file
+ *
+ * \brief AT30TSE75X Temperature sensor driver configuration file.
+ *
+ * Copyright (c) 2015-2016 Atmel Corporation. All rights reserved.
+ *
+ * \asf_license_start
+ *
+ * \page License
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The name of Atmel may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 4. This software may only be redistributed and used in connection with an
+ * Atmel microcontroller product.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
+ * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * \asf_license_stop
+ *
+ */
+/*
+ * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
+ */
+#ifndef CONF_AT30TSE75X_H_INCLUDED
+#define CONF_AT30TSE75X_H_INCLUDED
+
+#include <board.h>
+
+#define AT30TSE_I2C_MODULE I2C0
+
+#define AT30TSE_PIN_PAD0 PIN_LP_GPIO_8
+#define AT30TSE_PIN_PAD1 PIN_LP_GPIO_9
+
+#define AT30TSE_MUX_PAD0 MUX_LP_GPIO_8_I2C0_SDA
+#define AT30TSE_MUX_PAD1 MUX_LP_GPIO_9_I2C0_SCL
+
+#endif /* CONF_AT30TSE75X_H_INCLUDED */