~aleteoryx/muditaos

ref: f3fee0587eda0a9a8d19cfaf71005e4a25435834 muditaos/module-bsp/board/rt1051/bsp/eeprom/M24256.hpp -rw-r--r-- 576 bytes
f3fee058 — Lukasz Skrzypczak [EGD-6576] Corrected after PR comments 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 >> 1);
    constexpr inline auto M24256_ID_DEVICE_ADDR  = (0xB0 >> 1);

    constexpr inline auto M24256_DEV_ID_MASK = 0x07;

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

    constexpr inline auto M24256_SLAVE_ADDR = 0x00;

} // namespace bsp::eeprom