Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add support for Sanguino board with atmega644p #135

Closed
wants to merge 1 commit into from

2 participants

@daapp

Compile using: make DEVICE=atmega644p

Signed-off-by: Alexander Danilov alexander.a.danilov@gmail.com

@daapp daapp Adopt for Sanguino board.
Compile using: make DEVICE=atmega644p

Signed-off-by: Alexander Danilov <alexander.a.danilov@gmail.com>
76a2100
@chamnit
Owner

Can't seem to get my system to merge on command line, nor will github automatically merge this. Can you re-fork the most recent push and apply this change? Otherwise I can add this myself, but you're merge won't be documented this way.

@chamnit chamnit closed this
@daapp

Add this youself, please.

@chamnit
Owner

Done. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 9, 2012
  1. @daapp

    Adopt for Sanguino board.

    daapp authored
    Compile using: make DEVICE=atmega644p
    
    Signed-off-by: Alexander Danilov <alexander.a.danilov@gmail.com>
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +8 −0 serial.c
View
8 serial.c
@@ -105,7 +105,11 @@ void serial_write(uint8_t data) {
}
// Data Register Empty Interrupt handler
+#ifdef __AVR_ATmega644P__
+ISR(USART0_UDRE_vect)
+#else
ISR(USART_UDRE_vect)
+#endif
{
// Temporary tx_buffer_tail (to optimize for volatile)
uint8_t tail = tx_buffer_tail;
@@ -154,7 +158,11 @@ uint8_t serial_read()
}
}
+#ifdef __AVR_ATmega644P__
+ISR(USART0_RX_vect)
+#else
ISR(USART_RX_vect)
+#endif
{
uint8_t data = UDR0;
uint8_t next_head;
Something went wrong with that request. Please try again.