58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
#ifndef CONFIG_H_
|
|
#define CONFIG_H_
|
|
|
|
#include "autoconf.h"
|
|
|
|
#define STREAMER_NUM 30
|
|
|
|
#define FEUER_N 5
|
|
#define FEUER_S 30
|
|
#define FEUER_DIV 44
|
|
#define FEUER_DELAY 50
|
|
|
|
#define SNAKE_DELAY 100
|
|
|
|
//#define SCROLLTEXT_STRING_SIZE 128
|
|
//#define SCROLLTEXT_FONT font_arial8
|
|
//#define SCROLLTEXT_DEFAULT "</#www.das-labor.org"
|
|
//#define SCROLL_X_SPEED 20
|
|
//#define SCROLL_Y_SPEED 20
|
|
|
|
#define BORG_CAN
|
|
|
|
// spi.[ch] defines
|
|
#define SPI_HARDWARE
|
|
#define SPI_PORT PORTB //for slave select
|
|
#define SPI_PIN PINB //for slave select
|
|
#define SPI_DDR DDRB
|
|
|
|
#define SPI_PIN_MOSI PB5
|
|
#define SPI_PIN_MISO PB6
|
|
#define SPI_PIN_SCK PB7
|
|
#define SPI_PIN_SS PB4 // for slave select
|
|
|
|
//interrupt pin of MCP2515 for non interrupt driven can
|
|
#define SPI_REG_PIN_MCP_INT PIND
|
|
#define SPI_PIN_MCP_INT PD2
|
|
|
|
// can.[ch] defines
|
|
#undef CAN_INTERRUPT //set this to enable interrupt driven and buffering version
|
|
#define CAN_RX_BUFFER_SIZE 2 //only used for Interrupt
|
|
#define CAN_TX_BUFFER_SIZE 2 //only used for Interrupt
|
|
#define F_MCP F_CPU
|
|
|
|
#define INIT_EEPROM
|
|
|
|
//#define UART_BAUD_RATE 115200L
|
|
|
|
#define REVERSED_HARDWARE
|
|
//#define INVERSE_ROWS
|
|
|
|
//#define INTERLACED_ROWS
|
|
//#define INTERLACED_COLS
|
|
|
|
|
|
|
|
|
|
#endif /* CONFIG_H_ */
|