Browse Source

can support menu fixes, include header file

feature/2015
kju 15 years ago
parent
commit
922b3106ed
  1. 6
      can/config.in
  2. 1
      config.h
  3. 4
      main.c

6
can/config.in

@ -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

1
config.h

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

4
main.c

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

Loading…
Cancel
Save