Proyecto ABInBev para la tarjeta Guaria 1/2.

Committer:
fmanzano_dtk
Date:
Mon Jul 04 22:28:16 2022 -0600
Revision:
5:07720e3f99d2
Se restaura la libreria de Flash como alternativa adicional a la memoria externa de EEPROM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fmanzano_dtk 5:07720e3f99d2 1 /**
fmanzano_dtk 5:07720e3f99d2 2 * @file flash_exe.hpp
fmanzano_dtk 5:07720e3f99d2 3 * @author Felícito Manzano (felicito.manzano@detektor.com.sv)
fmanzano_dtk 5:07720e3f99d2 4 * @brief
fmanzano_dtk 5:07720e3f99d2 5 * @version 0.1
fmanzano_dtk 5:07720e3f99d2 6 * @date 2021-02-08
fmanzano_dtk 5:07720e3f99d2 7 *
fmanzano_dtk 5:07720e3f99d2 8 * @copyright Copyright (c) 2021
fmanzano_dtk 5:07720e3f99d2 9 *
fmanzano_dtk 5:07720e3f99d2 10 */
fmanzano_dtk 5:07720e3f99d2 11
fmanzano_dtk 5:07720e3f99d2 12 #ifndef __EEPROM_EXE_HPP
fmanzano_dtk 5:07720e3f99d2 13 #define __EEPROM_EXE_HPP
fmanzano_dtk 5:07720e3f99d2 14
fmanzano_dtk 5:07720e3f99d2 15 // Variables
fmanzano_dtk 5:07720e3f99d2 16 extern uint32_t eprom_AddressArray[26];
fmanzano_dtk 5:07720e3f99d2 17
fmanzano_dtk 5:07720e3f99d2 18 // EEPROM POSITION
fmanzano_dtk 5:07720e3f99d2 19 #define EE_Address_FINGERPRINT 0
fmanzano_dtk 5:07720e3f99d2 20 #define EE_Address_OVERRIDE_FP 1
fmanzano_dtk 5:07720e3f99d2 21 #define EE_Address_OVERRIDE_LIMIT 2
fmanzano_dtk 5:07720e3f99d2 22 #define EE_Address_IDLE_SHUTDOWN 3
fmanzano_dtk 5:07720e3f99d2 23 #define EE_Address_IDLE_REMINDER 4
fmanzano_dtk 5:07720e3f99d2 24 #define EE_Address_IDLE_S_TIME 5
fmanzano_dtk 5:07720e3f99d2 25 #define EE_Address_IDLE_R_TIME 6
fmanzano_dtk 5:07720e3f99d2 26 #define EE_Address_SEATBELT_READ 7
fmanzano_dtk 5:07720e3f99d2 27 #define EE_Address_ENFORCE_SB 8
fmanzano_dtk 5:07720e3f99d2 28 #define EE_Address_PILOT_BTYPE 9
fmanzano_dtk 5:07720e3f99d2 29 #define EE_Address_COPILOT_BTYPE 10
fmanzano_dtk 5:07720e3f99d2 30 #define EE_Address_CREW_BTYPE 11
fmanzano_dtk 5:07720e3f99d2 31 #define EE_Address_RAINSENSOR 12
fmanzano_dtk 5:07720e3f99d2 32 #define EE_Address_RS_SILENTMODE 13
fmanzano_dtk 5:07720e3f99d2 33 #define EE_Address_RS_SAMPLE_T 14
fmanzano_dtk 5:07720e3f99d2 34 #define EE_Address_WET_LIMIT 15
fmanzano_dtk 5:07720e3f99d2 35 #define EE_Address_WET_WARNING 16
fmanzano_dtk 5:07720e3f99d2 36 #define EE_Address_DRY_LIMIT 17
fmanzano_dtk 5:07720e3f99d2 37 #define EE_Address_DRY_WARNING 18
fmanzano_dtk 5:07720e3f99d2 38 #define EE_Address_SAFETY_TIP 19
fmanzano_dtk 5:07720e3f99d2 39 #define EE_Address_SAFETY_TIP_T 20
fmanzano_dtk 5:07720e3f99d2 40 #define EE_Address_GEOZONE 21
fmanzano_dtk 5:07720e3f99d2 41 #define EE_Address_VOLUME 22
fmanzano_dtk 5:07720e3f99d2 42 #define EE_Address_BLE_RESET 23
fmanzano_dtk 5:07720e3f99d2 43 #define EE_Address_BLE_RESET_T 24
fmanzano_dtk 5:07720e3f99d2 44 #define EE_Address_FINGERPRINT_RE 25
fmanzano_dtk 5:07720e3f99d2 45
fmanzano_dtk 5:07720e3f99d2 46 // Lista de funciones:
fmanzano_dtk 5:07720e3f99d2 47 void load_eepromVar();
fmanzano_dtk 5:07720e3f99d2 48 void eeprom_Default();
fmanzano_dtk 5:07720e3f99d2 49 void writeEE(int myAddress, int myValue);
fmanzano_dtk 5:07720e3f99d2 50
fmanzano_dtk 5:07720e3f99d2 51 #endif // __EEPROM_EXE_HPP