diff --git a/pc_hal/Particle.h b/pc_hal/Particle.h index 94999ab..6d13e07 100644 --- a/pc_hal/Particle.h +++ b/pc_hal/Particle.h @@ -7,4 +7,26 @@ * * @copyright Copyright (c) 2024 * - */ \ No newline at end of file + */ +#ifndef __PC_HAL_PARTICLE_H__ +#define __PC_HAL_PARTICLE_H__ +class EEPROMClass +{ + EEPROMClass() + { + } + + template T &get(int idx, T &t) + { + return T(); + } + + template const T &put(int idx, const T &t) + { + return t; + } +}; + +#define EEPROM __fetch_global_EEPROM() +EEPROMClass &__fetch_global_EEPROM(); +#endif // __PC_HAL_PARTICLE_H__ \ No newline at end of file diff --git a/pc_hal/Particle_dummy.cpp b/pc_hal/Particle_dummy.cpp new file mode 100644 index 0000000..b555511 --- /dev/null +++ b/pc_hal/Particle_dummy.cpp @@ -0,0 +1,18 @@ +/** + * @file Particle_dummy.cpp + * @author Nathan Hui (nthui@ucsd.edu) + * @brief Dummy Particle Implementation + * @version 0.1 + * @date 2024-11-13 + * + * @copyright Copyright (c) 2024 + * + */ + +#include "Particle.h" + +EEPROMClass __global_eeprom; +EEPROMClass &__fetch_global_EEPROM() +{ + return __global_eeprom; +} \ No newline at end of file