pcb and initial code from https://github.com/das-labor/borgware-2d.git
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.
44 lines
912 B
44 lines
912 B
#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 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
|
|
|
|
#endif /* CONFIG_H_ */
|
|
|