~aleteoryx/muditaos

ref: f9490f61e42a1740bbbf5c7df937a2bc77c477d9 muditaos/module-bsp/board/rt1051/bsp/eeprom/M24256.hpp -rw-r--r-- 583 bytes
f9490f61 — Lefucjusz Revert "[BH-1673] Harmony random resets fixes" 2 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-2021, 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 = (0xA0 >> 1);

} // namespace bsp::eeprom