crashtest-r0ket/misc/openbeacon/lpc13xx/openbeacon-usb2/inc/config.h

48 lines
1.5 KiB
C
Raw Normal View History

2011-06-12 02:18:11 +00:00
/***************************************************************
*
* 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__
/* enable USB disk support */
2011-06-12 02:33:50 +00:00
//#define USB_DISK_SUPPORT
2011-06-12 02:18:11 +00:00
#define USB_VENDOR_ID 0x2366
#define USB_PROD_ID 0x0003
#define USB_DEVICE 1
/* SPI_CS(io_port, io_pin, CPSDVSR frequency, mode) */
2011-06-12 02:33:50 +00:00
//#define SPI_CS_FLASH SPI_CS( 2, 0, 24, SPI_CS_MODE_SKIP_TX ) /* 24.0MHz */
2011-06-12 02:18:11 +00:00
#define SPI_CS_NRF SPI_CS( 1,10, 24, SPI_CS_MODE_NORMAL ) /* 9.6MHz */
//#define SPI_CS_ACC3D SPI_CS( 0, 4, 6, SPI_CS_MODE_NORMAL ) /* 8.0MHz */
#define NRF_MAX_MAC_SIZE 5
/* FreeRTOS configuration */
#define ENABLE_FREERTOS
#define TASK_NRF_STACK_SIZE 256
#define TASK_NRF_PRIORITY (tskIDLE_PRIORITY + 2)
2011-06-12 20:54:41 +00:00
#define UPDATE_INTERVAL_MS 250
2011-06-12 02:18:11 +00:00
#endif/*__CONFIG_H__*/