1#![cfg_attr(feature = "at90usb1286", doc = "**at90usb1286**,")]
4#![cfg_attr(feature = "atmega1280", doc = "**atmega1280**,")]
5#![cfg_attr(feature = "atmega1284p", doc = "**atmega1284p**,")]
6#![cfg_attr(feature = "atmega128a", doc = "**atmega128a**,")]
7#![cfg_attr(feature = "atmega128rfa1", doc = "**atmega128rfa1**,")]
8#![cfg_attr(feature = "atmega16", doc = "**atmega16**,")]
9#![cfg_attr(feature = "atmega164pa", doc = "**atmega164pa**,")]
10#![cfg_attr(feature = "atmega168", doc = "**atmega168**,")]
11#![cfg_attr(feature = "atmega16u2", doc = "**atmega16u2**,")]
12#![cfg_attr(feature = "atmega2560", doc = "**atmega2560**,")]
13#![cfg_attr(feature = "atmega8", doc = "**atmega8**,")]
14#![cfg_attr(feature = "atmega8u2", doc = "**atmega8u2**,")]
15#![cfg_attr(feature = "atmega324pa", doc = "**atmega324pa**,")]
16#![cfg_attr(feature = "atmega328p", doc = "**atmega328p**,")]
17#![cfg_attr(feature = "atmega328pb", doc = "**atmega328pb**,")]
18#![cfg_attr(feature = "atmega32a", doc = "**atmega32a**,")]
19#![cfg_attr(feature = "atmega32u2", doc = "**atmega32u2**,")]
20#![cfg_attr(feature = "atmega32u4", doc = "**atmega32u4**,")]
21#![cfg_attr(feature = "atmega3208", doc = "**atmega3208**,")]
22#![cfg_attr(feature = "atmega3209", doc = "**atmega3209**,")]
23#![cfg_attr(feature = "atmega4808", doc = "**atmega4808**,")]
24#![cfg_attr(feature = "atmega4809", doc = "**atmega4809**,")]
25#![cfg_attr(feature = "atmega48p", doc = "**atmega48p**,")]
26#![cfg_attr(feature = "atmega64", doc = "**atmega64**,")]
27#![cfg_attr(feature = "atmega644", doc = "**atmega644**,")]
28#![cfg_attr(feature = "atmega88p", doc = "**atmega88p**,")]
29#![cfg_attr(feature = "attiny13a", doc = "**attiny13a**,")]
30#![cfg_attr(feature = "attiny167", doc = "**attiny167**,")]
31#![cfg_attr(feature = "attiny1614", doc = "**attiny1614**,")]
32#![cfg_attr(feature = "attiny202", doc = "**attiny202**,")]
33#![cfg_attr(feature = "attiny212", doc = "**attiny212**,")]
34#![cfg_attr(feature = "attiny214", doc = "**attiny214**,")]
35#![cfg_attr(feature = "attiny2313", doc = "**attiny2313**,")]
36#![cfg_attr(feature = "attiny2313a", doc = "**attiny2313a**,")]
37#![cfg_attr(feature = "attiny26", doc = "**attiny26**,")]
38#![cfg_attr(feature = "attiny402", doc = "**attiny402**,")]
39#![cfg_attr(feature = "attiny404", doc = "**attiny404**,")]
40#![cfg_attr(feature = "attiny412", doc = "**attiny412**,")]
41#![cfg_attr(feature = "attiny414", doc = "**attiny414**,")]
42#![cfg_attr(feature = "attiny416", doc = "**attiny416**,")]
43#![cfg_attr(feature = "attiny44a", doc = "**attiny44a**,")]
44#![cfg_attr(feature = "attiny816", doc = "**attiny816**,")]
45#![cfg_attr(feature = "attiny828", doc = "**attiny828**,")]
46#![cfg_attr(feature = "attiny84", doc = "**attiny84**,")]
47#![cfg_attr(feature = "attiny841", doc = "**attiny841**,")]
48#![cfg_attr(feature = "attiny84a", doc = "**attiny84a**,")]
49#![cfg_attr(feature = "attiny85", doc = "**attiny85**,")]
50#![cfg_attr(feature = "attiny861", doc = "**attiny861**,")]
51#![cfg_attr(feature = "attiny88", doc = "**attiny88**,")]
52#![cfg_attr(feature = "avr64du32", doc = "**avr64du32**,")]
53#![cfg_attr(feature = "avr64du28", doc = "**avr64du28**,")]
54#![cfg_attr(
57 feature = "docsrs",
58 doc = "**Warning**: The doc-build here on docs.rs is only for a subset of supported chips. Please build documentation locally if your MCU's registers are not documented here.\n\n"
59)]
60#![no_std]
182#![cfg_attr(target_arch = "avr", feature(asm_experimental_arch))] pub mod asm;
185pub mod interrupt;
186
187#[allow(unused_imports)]
188use generic::*;
189#[doc = r"Common register and bit access and modify traits"]
190pub mod generic;
191
192#[cfg(feature = "rt")]
210pub use avr_device_macros::interrupt;
211
212#[cfg(feature = "rt")]
229pub use avr_device_macros::entry;
230
231#[cfg(not(feature = "device-selected"))]
232compile_error!(
233 "This crate requires you to specify your target chip as a feature.
234
235 Please select one of the following:
236 * atmega1280
237 * atmega1284p
238 * atmega128a
239 * atmega128rfa1
240 * atmega16
241 * atmega164pa
242 * atmega168
243 * atmega16u2
244 * atmega2560
245 * atmega324pa
246 * atmega328p
247 * atmega328pb
248 * atmega32a
249 * atmega32u2
250 * atmega32u4
251 * atmega3208
252 * atmega3209
253 * atmega4808
254 * atmega4809
255 * atmega48p
256 * atmega64
257 * atmega644
258 * atmega8
259 * atmega8u2
260 * atmega88p
261 * attiny13a
262 * attiny167
263 * attiny1614
264 * attiny202
265 * attiny212
266 * attiny214
267 * attiny2313
268 * attiny2313a
269 * attiny26
270 * attiny402
271 * attiny412
272 * attiny414
273 * attiny416
274 * attiny44a
275 * attiny816
276 * attiny828
277 * attiny84
278 * attiny841
279 * attiny84a
280 * attiny85
281 * attiny861
282 * attiny88
283 * avr64du32
284 * avr64du28
285 "
286);
287
288#[allow(non_camel_case_types, unused_attributes, unreachable_patterns)]
289mod devices;
290
291#[cfg(feature = "at90usb1286")]
292pub use crate::devices::at90usb1286;
293#[cfg(feature = "atmega1280")]
294pub use crate::devices::atmega1280;
295#[cfg(feature = "atmega1284p")]
296pub use crate::devices::atmega1284p;
297#[cfg(feature = "atmega128a")]
298pub use crate::devices::atmega128a;
299#[cfg(feature = "atmega128rfa1")]
300pub use crate::devices::atmega128rfa1;
301#[cfg(feature = "atmega16")]
302pub use crate::devices::atmega16;
303#[cfg(feature = "atmega164pa")]
304pub use crate::devices::atmega164pa;
305#[cfg(feature = "atmega168")]
306pub use crate::devices::atmega168;
307#[cfg(feature = "atmega16u2")]
308pub use crate::devices::atmega16u2;
309#[cfg(feature = "atmega2560")]
310pub use crate::devices::atmega2560;
311#[cfg(feature = "atmega324pa")]
312pub use crate::devices::atmega324pa;
313#[cfg(feature = "atmega328p")]
314pub use crate::devices::atmega328p;
315#[cfg(feature = "atmega328pb")]
316pub use crate::devices::atmega328pb;
317#[cfg(feature = "atmega32a")]
318pub use crate::devices::atmega32a;
319#[cfg(feature = "atmega32u2")]
320pub use crate::devices::atmega32u2;
321#[cfg(feature = "atmega32u4")]
322pub use crate::devices::atmega32u4;
323#[cfg(feature = "atmega3208")]
324pub use crate::devices::atmega3208;
325#[cfg(feature = "atmega3209")]
326pub use crate::devices::atmega3209;
327#[cfg(feature = "atmega4808")]
328pub use crate::devices::atmega4808;
329#[cfg(feature = "atmega4809")]
330pub use crate::devices::atmega4809;
331#[cfg(feature = "atmega48p")]
332pub use crate::devices::atmega48p;
333#[cfg(feature = "atmega64")]
334pub use crate::devices::atmega64;
335#[cfg(feature = "atmega644")]
336pub use crate::devices::atmega644;
337#[cfg(feature = "atmega8")]
338pub use crate::devices::atmega8;
339#[cfg(feature = "atmega88p")]
340pub use crate::devices::atmega88p;
341#[cfg(feature = "atmega8u2")]
342pub use crate::devices::atmega8u2;
343#[cfg(feature = "attiny13a")]
344pub use crate::devices::attiny13a;
345#[cfg(feature = "attiny1614")]
346pub use crate::devices::attiny1614;
347#[cfg(feature = "attiny167")]
348pub use crate::devices::attiny167;
349#[cfg(feature = "attiny202")]
350pub use crate::devices::attiny202;
351#[cfg(feature = "attiny212")]
352pub use crate::devices::attiny212;
353#[cfg(feature = "attiny214")]
354pub use crate::devices::attiny214;
355#[cfg(feature = "attiny2313")]
356pub use crate::devices::attiny2313;
357#[cfg(feature = "attiny2313a")]
358pub use crate::devices::attiny2313a;
359#[cfg(feature = "attiny26")]
360pub use crate::devices::attiny26;
361#[cfg(feature = "attiny402")]
362pub use crate::devices::attiny402;
363#[cfg(feature = "attiny404")]
364pub use crate::devices::attiny404;
365#[cfg(feature = "attiny412")]
366pub use crate::devices::attiny412;
367#[cfg(feature = "attiny414")]
368pub use crate::devices::attiny414;
369#[cfg(feature = "attiny416")]
370pub use crate::devices::attiny416;
371#[cfg(feature = "attiny44a")]
372pub use crate::devices::attiny44a;
373#[cfg(feature = "attiny816")]
374pub use crate::devices::attiny816;
375#[cfg(feature = "attiny828")]
376pub use crate::devices::attiny828;
377#[cfg(feature = "attiny84")]
378pub use crate::devices::attiny84;
379#[cfg(feature = "attiny841")]
380pub use crate::devices::attiny841;
381#[cfg(feature = "attiny84a")]
382pub use crate::devices::attiny84a;
383#[cfg(feature = "attiny85")]
384pub use crate::devices::attiny85;
385#[cfg(feature = "attiny861")]
386pub use crate::devices::attiny861;
387#[cfg(feature = "attiny88")]
388pub use crate::devices::attiny88;
389#[cfg(feature = "avr64du28")]
390pub use crate::devices::avr64du28;
391#[cfg(feature = "avr64du32")]
392pub use crate::devices::avr64du32;