45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
/***************************************************************
|
|
*
|
|
* OpenBeacon.org - config file
|
|
*
|
|
* Copyright 2010 Milosch Meriac <meriac@openbeacon.de>
|
|
*
|
|
***************************************************************
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
/* Treshold for detecting 3D accelerometer movement */
|
|
#define ACC_TRESHOLD 3
|
|
#define ACC_MOVING_TRESHOLD 20
|
|
|
|
/* Clock Definition */
|
|
#define SYSTEM_CRYSTAL_CLOCK 12000000
|
|
#define SYSTEM_CORE_CLOCK (SYSTEM_CRYSTAL_CLOCK*6)
|
|
|
|
/* Enable Sound Output */
|
|
#define SOUND_ENABLE
|
|
|
|
/* SPI_CS(io_port, io_pin, CPSDVSR frequency, mode) */
|
|
#define SPI_CS_NRF SPI_CS( 1,10, 8, SPI_CS_MODE_NORMAL ) /* 9.0MHz */
|
|
#define SPI_CS_ACC3D SPI_CS( 0, 4,18, SPI_CS_MODE_NORMAL ) /* 4.0MHz */
|
|
|
|
#define NRF_MAX_MAC_SIZE 5
|
|
|
|
#endif/*__CONFIG_H__*/
|