OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
arch.h
Go to the documentation of this file.
1
8#pragma once
9#ifndef OSCR_ARCH_H_
10# define OSCR_ARCH_H_ 1
11
12# if defined(ARDUINO_ARCH_AVR)
13
14# if defined(ARDUINO_AVR_MEGA2560)
15
16# define OSCR_ARCH_AVR 1
17# define OSCR_TARGET_MEGA2560 1
18# define BANKSET_MAX_BANKS 4
19
20# include "arch/avr.h"
21
22# else // probably ARDUINO_AVR_UNO / ARDUINO_AVR_NANO (ATmega328p)
23
24# error "Unsupported target architecture."
25
26# endif
27
28# elif defined(TARGET_STM32) || defined(ARDUINO_ARCH_MBED)
29
30# if defined(TARGET_STM32H7) || defined(ARDUINO_GIGA)
31
32# define OSCR_ARCH_STM32 1
33# define OSCR_TARGET_STM32H7 1
34
35# pragma message !! Support for STM32H7 is experimental !!
36
37# include "arch/stm32.h"
38
39# elif defined(TARGET_STM32MP)
40
41# define OSCR_ARCH_STM32 1
42# define OSCR_TARGET_STM32MP 1
43
44# pragma message !! Support for STM32MP is experimental !!
45
46# include "arch/stm32.h"
47
48# else // Some other STM32
49
50# error "Unsupported target architecture."
51
52# endif
53
54# else
55
56# error "Unsupported target architecture."
57
58# endif /* ARDUINO_ARCH_AVR && TARGET_STM32 */
59
60#endif /* OSCR_ARCH_H_ */
Support for AVR Architectures.