Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raphnet committed Feb 7, 2015
1 parent 8b3f061 commit f51976e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lut.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <avr/pgmspace.h>

unsigned char correction_lut[256] PROGMEM = {
const unsigned char correction_lut[256] PROGMEM = {
0x00 , 0x00 , 0x00 , 0x01 , 0x01 , 0x02 , 0x03 , 0x03 , 0x04 , 0x05 , 0x05 , 0x06 , 0x07 , 0x07 , 0x08 , 0x09 ,
0x0a , 0x0a , 0x0b , 0x0c , 0x0d , 0x0d , 0x0e , 0x0f , 0x10 , 0x11 , 0x12 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 ,
0x17 , 0x18 , 0x18 , 0x19 , 0x1a , 0x1b , 0x1c , 0x1d , 0x1e , 0x1f , 0x20 , 0x21 , 0x21 , 0x22 , 0x23 , 0x24 ,
Expand Down
2 changes: 1 addition & 1 deletion lut.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

#include <avr/pgmspace.h>

extern unsigned char correction_lut[] PROGMEM;
extern const unsigned char correction_lut[] PROGMEM;

#endif
10 changes: 6 additions & 4 deletions n64_isr.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;
; n64_to_wii: AVR Microcontroller firmware for converting N64 controller
; protocol to Nintendo Wii/Gamecube controller protocol.
; Copyright (C) 2007-2008 Raphael Assenat <[email protected]>
; Copyright (C) 2007-2015 Raphael Assenat <[email protected]>
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
Expand All @@ -17,7 +17,9 @@
; with this program; if not, write to the Free Software Foundation, Inc.,
; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
;
; ------------------------------------------------------------------------
; ------------------------------------------------------------------------
;
; 2015-02-07: Updated interrupt name for compilation with recent avr-libc
;

#include <avr/io.h>
Expand All @@ -44,7 +46,7 @@
.lcomm n64_use_buf1 1;

.text
.global SIG_INTERRUPT0
.global INT0_vect
.global n64_rx_buf
.global n64_tx_buf0
.global n64_tx_buf1
Expand Down Expand Up @@ -111,7 +113,7 @@



SIG_INTERRUPT0:
INT0_vect:
push r1
in r1, IO_SREG
push zl
Expand Down

0 comments on commit f51976e

Please sign in to comment.