FastLED 3.9.15
Loading...
Searching...
No Matches

◆ avr_tests()

void avr_tests ( )

Definition at line 5 of file avr_test.h.

5 {
6#if FASTLED_USE_PROGMEM != 1
7#error "FASTLED_USE_PROGMEM should be 1 for AVR"
8#endif
9
10#if SKETCH_HAS_LOTS_OF_MEMORY != 0
11#error "SKETCH_HAS_LOTS_OF_MEMORY should be 0 for AVR"
12#endif
13
14#if FASTLED_ALLOW_INTERRUPTS != 0
15#error "FASTLED_ALLOW_INTERRUPTS should be 0 for AVR (default)"
16#endif
17
18#ifndef FASTLED_AVR
19#error "FASTLED_AVR should be defined for AVR platforms"
20#endif
21
22#ifndef F_CPU
23#error "F_CPU should be defined for AVR platforms"
24#endif
25
26// AVR should have a reasonable F_CPU (typically 8MHz or 16MHz)
27#if F_CPU < 1000000 || F_CPU > 32000000
28#warning "AVR F_CPU seems unusual - check if this is expected"
29#endif
30
31// Check for Arduino environment on AVR
32#ifndef ARDUINO
33#warning "ARDUINO macro not defined - may not be in Arduino environment"
34#endif
35
36// AVR-specific assembly optimizations should be enabled
37#ifndef QADD8_AVRASM
38#warning "AVR assembly optimizations may not be enabled"
39#endif
40}