From 230b32fd27a56b2cfb41085388b44750dcc8a4b9 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 3 Nov 2022 17:27:03 +0100 Subject: [PATCH] EEPROM example README redaction --- eeprom/README | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/eeprom/README b/eeprom/README index 0ce0401..decae8e 100644 --- a/eeprom/README +++ b/eeprom/README @@ -19,6 +19,23 @@ Copyright 2013 Nathael Pajani * *************************************************************************** */ -This example shows the support of the onboard I2C eeprom memory +This example shows the support of the onboard I2C eeprom memory on the + GPIO-Demo module from Techno-Innov + +The default build will compile the "read eeprom" version of the binary. +if you want to get the "write eeprom" version you need to build with +"EEPROM_WRITE" defined (comment or remove the line which undefines it in +main.c): +#undef EEPROM_WRITE + +Flash and run the "write version" once, which will write the module description +to the eeprom (MODULE_NAME, MODULE_VERSION, MODULE_SERIAL_NUM, and module +capabilities), and send "EEPROM Write OK." on UART0 if everything went right. + +Then flash and run the "read version", which will read module description from +the eeprom and display it on UART0: + +Module : GPIO Demo Module +serial number: 42, version: 4, capabilities: 0x0007 + -TODO -- 2.43.0