Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen.
https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
797 B
47 lines
797 B
|
|
/*
|
|
TMRh20 2015
|
|
ATTiny Configuration File
|
|
*/
|
|
|
|
#ifndef __RF24_ARCH_CONFIG_H__
|
|
#define __RF24_ARCH_CONFIG_H__
|
|
|
|
/*** USER DEFINES: ***/
|
|
//#define FAILURE_HANDLING
|
|
//#define MINIMAL
|
|
/**********************/
|
|
|
|
#define rf24_max(a,b) (a>b?a:b)
|
|
#define rf24_min(a,b) (a<b?a:b)
|
|
|
|
|
|
|
|
#if ARDUINO < 100
|
|
#include <WProgram.h>
|
|
#else
|
|
#include <Arduino.h>
|
|
#endif
|
|
#include <stddef.h>
|
|
|
|
// Include the header file for SPI functions ( Main SPI code is contained in RF24.cpp for simplicity )
|
|
#include "spi.h"
|
|
|
|
#define _SPI SPI
|
|
|
|
#ifdef SERIAL_DEBUG
|
|
#define IF_SERIAL_DEBUG(x) ({x;})
|
|
#else
|
|
#define IF_SERIAL_DEBUG(x)
|
|
#if defined(RF24_TINY)
|
|
#define printf_P(...)
|
|
#endif
|
|
#endif
|
|
|
|
#include <avr/pgmspace.h>
|
|
#define PRIPSTR "%S"
|
|
|
|
|
|
|
|
#endif // __RF24_ARCH_CONFIG_H__
|
|
|