ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
Fuse.h
Go to the documentation of this file.
1
5
6#ifndef ATMEGA2560_DEFINITIONS_FUSE_H
7#define ATMEGA2560_DEFINITIONS_FUSE_H
8
9#include <stdint.h>
10#include "Config.h"
11
13namespace atmega2560
14{
16 namespace fuse
17 {
19 namespace low
20 {
22 enum : uint8_t
23 {
24 CKDIV8 = 7,
25 CKOUT = 6,
26 SUT1 = 5,
27 SUT0 = 4,
28 CKSEL0 = 0,
29 CKSEL1 = 1,
30 CKSEL2 = 2,
31 CKSEL3 = 3,
32 };
33 }
34
35 namespace high
36 {
38 enum : uint8_t
39 {
40 OCDEN = 7,
41 JTAGEN = 6,
42 SPIEN = 5,
43 WDTON = 4,
44 EESAVE = 3,
45 BOOTSZ1 = 2,
46 BOOTSZ0 = 1,
47 BOOTRST = 0,
48 };
49 }
50
51 namespace extended
52 {
54 enum : uint8_t
55 {
59 };
60 }
61 }
62}
63
64#endif
Device, package and operating-grade selection.
Extended definitions.
Definition Fuse.h:52
@ BODLEVEL0
Brown-out select 0.
Definition Fuse.h:58
@ BODLEVEL2
Brown-out select 2.
Definition Fuse.h:56
@ BODLEVEL1
Brown-out select 1.
Definition Fuse.h:57
High definitions.
Definition Fuse.h:36
@ WDTON
Watchdog always-on.
Definition Fuse.h:43
@ EESAVE
EEPROM preserve through erase.
Definition Fuse.h:44
@ BOOTRST
Reset to bootloader.
Definition Fuse.h:47
@ JTAGEN
JTAG enable.
Definition Fuse.h:41
@ OCDEN
On-chip debug enable.
Definition Fuse.h:40
@ SPIEN
Serial programming enable.
Definition Fuse.h:42
@ BOOTSZ0
Boot section size 0.
Definition Fuse.h:46
@ BOOTSZ1
Boot section size 1.
Definition Fuse.h:45
Low definitions.
Definition Fuse.h:20
@ CKOUT
Output system clock.
Definition Fuse.h:25
@ CKDIV8
Divide clock by 8.
Definition Fuse.h:24
@ SUT0
Startup time bit 0.
Definition Fuse.h:27
@ CKSEL3
Clock select 3.
Definition Fuse.h:31
@ CKSEL2
Clock select 2.
Definition Fuse.h:30
@ SUT1
Startup time bit 1.
Definition Fuse.h:26
@ CKSEL0
Clock select 0.
Definition Fuse.h:28
@ CKSEL1
Clock select 1.
Definition Fuse.h:29
Fuse definitions.
Definition Fuse.h:17
ATmega2560 hardware definitions.
Definition ADC.h:15