Krolyxon
Commit 1d55752

Branches

Tags

Refs →

orion-rf.piolibdepsesp32-s3-n16r8RF24utilityATTinyRF24_arch_config.h

53 lines · 994 B · Objective-C

1/*
2 TMRh20 2015
3 ATTiny Configuration File
4*/
5
6#ifndef RF24_UTILITY_ATTINY_RF24_ARCH_CONFIG_H_
7#define RF24_UTILITY_ATTINY_RF24_ARCH_CONFIG_H_
8
9/*** USER DEFINES: ***/
10//#define FAILURE_HANDLING
11//#define MINIMAL
12/**********************/
13
14#define rf24_max(a, b) (a > b ? a : b)
15#define rf24_min(a, b) (a < b ? a : b)
16
17#if ARDUINO < 100
18 #include <WProgram.h>
19#else
20 #include <Arduino.h>
21#endif
22
23#include <stddef.h>
24
25#include <SPI.h>
26
27#define _SPI SPI
28typedef uint8_t rf24_gpio_pin_t;
29#define RF24_PIN_INVALID 0xFF
30
31#if !defined(RF24_CSN_SETTLE_LOW_DELAY)
32 #define RF24_CSN_SETTLE_LOW_DELAY 11
33#endif
34
35#if !defined(RF24_CSN_SETTLE_HIGH_DELAY)
36 #define RF24_CSN_SETTLE_HIGH_DELAY 100
37#endif
38
39#ifdef RF24_DEBUG
40 #define IF_RF24_DEBUG(x) ({ x; })
41#else
42 #define IF_RF24_DEBUG(x)
43
44 #if defined(RF24_TINY)
45 #define printf_P(...)
46 #endif
47#endif // !defined(RF24_DEBUG)
48
49#include <avr/pgmspace.h>
50
51#define PRIPSTR "%S"
52
53#endif // RF24_UTILITY_ATTINY_RF24_ARCH_CONFIG_H_