ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
Bootloader.h
Go to the documentation of this file.
1
5
6#ifndef ATMEGA328P_DEFINITIONS_BOOTLOADER_H
7#define ATMEGA328P_DEFINITIONS_BOOTLOADER_H
8
9#include <stdint.h>
10#include "Config.h"
11
13namespace atmega328p
14{
16 namespace bootloader
17 {
19 enum class Size : uint16_t
20 {
21 Words256 = 256,
22 Words512 = 512,
23 Words1024 = 1024,
24 Words2048 = 2048,
25 };
26
28 enum class SizeCode : uint8_t
29 {
30 Words256 = 0x03,
31 Words512 = 0x02,
32 Words1024 = 0x01,
33 Words2048 = 0x00,
34 };
35
36 enum : uint8_t
37 {
43 };
44
45 enum : uint16_t
46 {
53 };
54 }
55}
56
57#endif
Selects the ATmega328P package and operating grade.
Boot section and Flash region definitions.
Definition Bootloader.h:17
@ rww_end_word_address
RWW end word address.
Definition Bootloader.h:50
@ nrww_end_word_address
NRWW end word address.
Definition Bootloader.h:52
@ rww_start_word_address
RWW start word address.
Definition Bootloader.h:49
@ default_start_word_address
Default start word address.
Definition Bootloader.h:48
@ nrww_start_word_address
NRWW start word address.
Definition Bootloader.h:51
@ default_size_words
Default size (words).
Definition Bootloader.h:47
SizeCode
BOOTSZ fuse encodings for each boot section size.
Definition Bootloader.h:29
Size
Supported boot section sizes in Flash words.
Definition Bootloader.h:20
@ Words1024
1024 - Boot section size: 1024 words.
Definition Bootloader.h:23
@ Words2048
2048 - Boot section size: 2048 words.
Definition Bootloader.h:24
@ Words512
512 - Boot section size: 512 words.
Definition Bootloader.h:22
@ Words256
256 - Boot section size: 256 words.
Definition Bootloader.h:21
@ rww_page_count
Number of rww page.
Definition Bootloader.h:39
@ size_option_count
Number of size option.
Definition Bootloader.h:38
@ reset_vector_selected_by_bootrst
Reset vector selected by bootrst.
Definition Bootloader.h:41
@ nrww_page_count
Number of nrww page.
Definition Bootloader.h:40
@ interrupt_vector_location_selected_by_ivsel
Interrupt vector location selected by ivsel.
Definition Bootloader.h:42
Device-specific definitions for the ATmega328P.
Definition ADC.h:14