can support menu fixes, include header file

This commit is contained in:
kju 2010-01-22 01:43:22 +00:00
parent 9b44776ec8
commit 922b3106ed
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,7 @@
dep_bool_menu "CAN bus support" CAN_SUPPORT y
bool 'Use MCU builtin SPI support' SPI_HARDWARE
choice 'SPI Port' \
"PORTA 0 \
PORTB 1 \
@ -51,7 +53,7 @@ choice 'Bit SS' \
Bit7 7" \
'Bit4' SPI_PIN_SS
bool "Use interrupt" CAN_INTERRUPT
dep_bool_menu "Use interrupt" CAN_INTERRUPT y
choice 'Interrupt Port' \
"PINA PINA \
@ -72,3 +74,5 @@ choice 'Interrupt Bit' \
'Bit2' SPI_PIN_MCP_INT
endmenu
endmenu

View File

@ -16,7 +16,6 @@
#define BORG_CAN
// spi.[ch] defines
#define SPI_HARDWARE
#if SPI_PORTIDX == 0
#define SPI_PORT PORTA

4
main.c
View File

@ -15,6 +15,10 @@
#include "joystick/joystick.h"
#endif
#ifdef CAN_SUPPORT
#include "can/borg_can.h"
#endif
int main (void){
clear_screen(0);