Stefan Schuermans commited on 2015-12-19 20:28:18
Showing 15 changed files, with 109 additions and 8 deletions.
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+NAMES = BlueBrightnessControl4 |
|
2 |
+ |
|
3 |
+GNETLIST = gnetlist |
|
4 |
+GSCHEM = gschem |
|
5 |
+PS2PDF = ps2pdf |
|
6 |
+ |
|
7 |
+.PHONY: all nets pdfs tidy clean |
|
8 |
+.SUFFIXES: |
|
9 |
+.SECONDARY: |
|
10 |
+ |
|
11 |
+all: nets pdfs tidy |
|
12 |
+ |
|
13 |
+nets: $(addsuffix .net,$(NAMES)) |
|
14 |
+ |
|
15 |
+pdfs: $(addsuffix .sch.pdf,$(NAMES)) $(patsubst %.ps,%.pdf,$(wildcard *.ps)) |
|
16 |
+ |
|
17 |
+%.net: %.sch |
|
18 |
+ $(GNETLIST) -q -g PCB -o $@ $< |
|
19 |
+ |
|
20 |
+%.sch.ps: %.sch gschem-print.scm |
|
21 |
+ $(GSCHEM) -p -s gschem-print.scm -o $@ $< |
|
22 |
+ |
|
23 |
+%.pdf: %.ps |
|
24 |
+ $(PS2PDF) $< $@ |
|
25 |
+ |
|
26 |
+tidy: |
|
27 |
+ rm -f *~ *- *.log *.ps |
|
28 |
+ |
|
29 |
+clean: tidy |
|
30 |
+ rm -f *.net *.pdf |
|
31 |
+ |
... | ... |
@@ -0,0 +1 @@ |
1 |
+*.png |
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+NAMES = BlueDataDistributor |
|
2 |
+ |
|
3 |
+GNETLIST = gnetlist |
|
4 |
+GSCHEM = gschem |
|
5 |
+PS2PDF = ps2pdf |
|
6 |
+ |
|
7 |
+.PHONY: all nets pdfs tidy clean |
|
8 |
+.SUFFIXES: |
|
9 |
+.SECONDARY: |
|
10 |
+ |
|
11 |
+all: nets pdfs tidy |
|
12 |
+ |
|
13 |
+nets: $(addsuffix .net,$(NAMES)) |
|
14 |
+ |
|
15 |
+pdfs: $(addsuffix .sch.pdf,$(NAMES)) $(patsubst %.ps,%.pdf,$(wildcard *.ps)) |
|
16 |
+ |
|
17 |
+%.net: %.sch |
|
18 |
+ $(GNETLIST) -q -g PCB -o $@ $< |
|
19 |
+ |
|
20 |
+%.sch.ps: %.sch gschem-print.scm |
|
21 |
+ $(GSCHEM) -p -s gschem-print.scm -o $@ $< |
|
22 |
+ |
|
23 |
+%.pdf: %.ps |
|
24 |
+ $(PS2PDF) $< $@ |
|
25 |
+ |
|
26 |
+tidy: |
|
27 |
+ rm -f *~ *- *.log *.ps |
|
28 |
+ |
|
29 |
+clean: tidy |
|
30 |
+ rm -f *.net *.pdf |
|
31 |
+ |
... | ... |
@@ -5,7 +5,6 @@ |
5 | 5 |
*/ |
6 | 6 |
|
7 | 7 |
#include <avr/interrupt.h> |
8 |
-#include <avr/signal.h> |
|
9 | 8 |
|
10 | 9 |
#include "arp.h" |
11 | 10 |
#include "ip.h" |
... | ... |
@@ -31,7 +30,7 @@ unsigned char Timing20 = 0; |
31 | 30 |
unsigned char Timing20_10 = 0; |
32 | 31 |
|
33 | 32 |
// 208us interrupt (timer 0 compare match) |
34 |
-SIGNAL( SIG_OUTPUT_COMPARE0 ) |
|
33 |
+ISR(OUTPUT_COMP0_vect) |
|
35 | 34 |
{ |
36 | 35 |
// call serial output |
37 | 36 |
SerialOutputBitTime( ); |
... | ... |
@@ -4,13 +4,13 @@ |
4 | 4 |
# Copyleft: GNU public license V2.0 - http://www.gnu.org/copyleft/gpl.html |
5 | 5 |
# a BlinkenArea project - http://www.blinkenarea.org/ |
6 | 6 |
|
7 |
-BLINKENLIB_INCLUDE_DIR = /usr/local/include |
|
7 |
+BLINKENLIB_INCLUDE_DIR = /usr/local/include/BlinkenLib |
|
8 | 8 |
BLINKENLIB_LIB_DIR = /usr/local/lib |
9 | 9 |
|
10 | 10 |
CC = gcc |
11 | 11 |
CFLAGS = -W -Wall -I$(BLINKENLIB_INCLUDE_DIR) -O2 |
12 |
-LFLAGS = -lm |
|
13 |
-LIBS = $(BLINKENLIB_LIB_DIR)/BlinkenLib.a |
|
12 |
+LFLAGS = -lm -L$(BLINKENLIB_LIB_DIR) |
|
13 |
+LIBS = -lBlinkenLib |
|
14 | 14 |
|
15 | 15 |
all: blue_dist |
16 | 16 |
|