1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* eeprom.rs
 *
 * Developed by Tim Walls <tim.walls@snowgoons.com>
 * Copyright (c) All Rights Reserved, Tim Walls
 */
//! Concrete instantiations of the EEPROM spaces available on the ATmega4809.

// Imports ===================================================================


// Declarations ==============================================================
pub mod eeprom {
  use avr_oxide::atmel_nvmctrl_eeprom_tpl;

  atmel_nvmctrl_eeprom_tpl!(
    super::super::ADDR_NVMCTRL,
    super::super::ADDR_EEPROM_PBUF,
    super::super::EEPROM_PAGESIZE,
    super::super::EEPROM_PAGES,
    avr_oxide::hal::atmega4809::cpu::instance()
  );
}

pub mod userrow {
  use avr_oxide::atmel_nvmctrl_eeprom_tpl;

  atmel_nvmctrl_eeprom_tpl!(
    super::super::ADDR_NVMCTRL,
    super::super::ADDR_USERROW_PBUF,
    super::super::USERROW_PAGESIZE,
    super::super::USERROW_PAGES,
    avr_oxide::hal::atmega4809::cpu::instance()
  );
}