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.
47 lines
824 B
47 lines
824 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
|
|
|
|
#ifdef CAN_SUPPORT
|
|
|
|
#define BORG_CAN
|
|
// spi.[ch] defines
|
|
|
|
#if SPI_PORTIDX == 0
|
|
#define SPI_PORT PORTA
|
|
#define SPI_DDR DDRA
|
|
#define SPI_PIN PINA
|
|
#elif SPI_PORTIDX == 1
|
|
#define SPI_PORT PORTB
|
|
#define SPI_DDR DDRB
|
|
#define SPI_PIN PINB
|
|
#elif SPI_PORTIDX == 2
|
|
#define SPI_PORT PORTC
|
|
#define SPI_DDR DDRC
|
|
#define SPI_PIN PINC
|
|
#elif SPI_PORTIDX == 3
|
|
#define SPI_PORT PORTD
|
|
#define SPI_DDR DDRD
|
|
#define SPI_PIN PIND
|
|
#endif
|
|
|
|
// can.[ch] defines
|
|
#define CAN_RX_BUFFER_SIZE 2 //only used for Interrupt
|
|
#define CAN_TX_BUFFER_SIZE 2 //only used for Interrupt
|
|
#endif
|
|
|
|
#define INIT_EEPROM
|
|
|
|
//#define UART_BAUD_RATE 115200L
|
|
|
|
#endif /* CONFIG_H_ */
|
|
|