~aleteoryx/muditaos

ref: 6468e0d4fd64f1aa7a8138a192769ea300616aac muditaos/module-bsp/board/rt1051/bsp/eeprom/M24256.hpp -rw-r--r-- 455 bytes
6468e0d4 — Lukasz Skrzypczak [EGD-6576] Create EEPROM low level driver 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <cstdint>

namespace bsp::eeprom
{
    constexpr inline auto M24256_MEM_DEVICE_ADDR = 0xA0;
    constexpr inline auto M24256_ID_DEVICE_ADDR  = 0xB0;

    constexpr inline auto M24256_PAGE_SIZE  = 64;
    constexpr inline auto M24256_TOTAL_SIZE = (32 * 1024); // bytes

} // namespace bsp::eeprom