File: disable-removed-nonfree-atmel-driver.patch

package info (click to toggle)
simavr 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,268 kB
  • sloc: ansic: 362,806; makefile: 622; ruby: 70; python: 63
file content (47 lines) | stat: -rw-r--r-- 1,232 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: disable removed non-free atmel driver
Author: Milan Kupcevic <milan@debian.org>
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/examples/board_i2ctest/atmega1280_i2ctest.c
+++ b/examples/board_i2ctest/atmega1280_i2ctest.c
@@ -44,7 +44,7 @@
 
 static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL,
                                          _FDEV_SETUP_WRITE);
-
+/*
 static void
 test_twi_with_atmel_driver(void)
 {
@@ -81,7 +81,7 @@
 			sleep_mode();
 	}
 }
-
+*/
 /*
  * Tests the TWI using a commonly used and non-interrupt driven
  * alternative to the Atmel driver:
@@ -126,9 +126,9 @@
 	stdout = &mystdout;
 
 	sei();
-
+/*
 	test_twi_with_atmel_driver();
-
+*/
 	/*
 	 * This should produce *exactly* the same output as above, except
 	 * the data written should be D00D as opposed to DEAD.
--- a/examples/board_i2ctest/Makefile
+++ b/examples/board_i2ctest/Makefile
@@ -37,7 +37,6 @@
 include ${simavr}/Makefile.common
 
 atmega1280_${target}.axf: atmega1280_${target}.c twimaster.c
-atmega1280_${target}.axf: ${simavr}/examples/shared/avr_twi_master.c
 atmega1280_${target}.axf: ${simavr}/examples/shared/avr_twi_master.h
 
 board = ${OBJ}/${target}.elf