Add voltmeter1

This commit is contained in:
Michael Hayes
2013-05-24 05:39:35 +00:00
parent cd2e6f4460
commit 1320cad49c
79 changed files with 849 additions and 106 deletions
+45
View File
@@ -0,0 +1,45 @@
# File: Makefile
# Author: M. P. Hayes, UCECE
# Date: 11 Sep 2010
# Descr: Makefile for voltmeter1 docs
# The scripts used to make the graphs require the program dot; this
# is part of the graphviz package.
DEL = rm
all: file_dependencies.pdf module_dependencies.pdf makefile_dependencies.pdf build_dependencies.pdf callgraph.pdf
file_dependencies.pdf: files.d
../../../etc/graphdeps.py $< --out $@
module_dependencies.pdf: modules.d
../../../etc/graphdeps.py $< --modules --rotate --out $@
makefile_dependencies.pdf: ../Makefile
../../../etc/graphdeps.py $< --out $@
build_dependencies.pdf: ../Makefile
../../../etc/graphdeps.py $< --out $@ --showops
callgraph.pdf: callgraph.d
../../../etc/graphdeps.py --calls --modules $< --out $@ --showops
files.d: ../Makefile
(cd ..; ../../etc/makemake.py --relpath --files . . ../../drivers ../../drivers/avr ../../utils ../../extra --exclude system.h > doc/files.d)
modules.d: ../Makefile
(cd ..; ../../etc/makemake.py --relpath --modules . . ../../drivers ../../drivers/avr ../../utils ../../extra --exclude system > doc/modules.d)
callgraph.d: ../Makefile
(cd ..; ../../etc/makemake.py --cc="avr-gcc" --cflags="-Os -mmcu=atmega32u2" --relpath --calls . . ../../drivers ../../drivers/avr ../../utils ../../extra --exclude system.h > doc/callgraph.d)
# Clean: delete derived files.
.PHONY: clean
clean:
-$(DEL) *.d *.pdf
+16
View File
@@ -0,0 +1,16 @@
Running make in this directory will generate a number of PDF graphs.
In the callgraph, the arrows means "calls". In the dependency graphs,
the arrows means "requires" (or "depends upon").
callgraph.pdf This shows the callgraph, i.e., what functions each
function in the program calls.
module_dependencies.pdf This shows the dependencies between the modules.
file_dependencies.pdf This shows the dependencies between the files.
makefile_dependencies.pdf This shows the dependencies required by make when
building the program.
build_dependencies.pdf This is like makefile_dependencies.pdf but shows
the operations performed to generate the new file.
callgraph.d This shows the callgraph in text format.
files.d This shows the file dependencies in text format.
modules.d This shows the module dependencies in text format.
Binary file not shown.
+80
View File
@@ -0,0 +1,80 @@
system_clock_init@system.c:
system_watchdog_timer_init@system.c:
system_init@system.c: system_clock_init system_watchdog_timer_init
pio_config_set@pio.c:
ledmat_init@ledmat.c: pio_config_set pio_config_set
display_clear@display.c:
display_init@display.c: ledmat_init display_clear
tinygl_text_speed_set@tinygl.c:
tinygl_clear@tinygl.c: display_clear
tinygl_init@tinygl.c: display_init tinygl_text_speed_set tinygl_clear
tinygl_font_set@tinygl.c:
tinygl_text_mode_set@tinygl.c:
tinygl_text_dir_set@tinygl.c:
display_task_init@voltmeter1.c: tinygl_init tinygl_font_set tinygl_text_mode_set tinygl_text_dir_set
adc_init@adc.c: pio_config_set
adc_enable@adc.c:
adc_task_init@voltmeter1.c: adc_init adc_enable
timer_init@timer.c:
timer_get@timer.c:
timer_wait_until@timer.c: timer_get
task_schedule@task.c: timer_init timer_get timer_wait_until timer_get
tinygl_point@tinygl.c:
font_pixel_get@font.c:
tinygl_font_pixel_get@tinygl.c: font_pixel_get
display_pixel_set@display.c:
tinygl_draw_point@tinygl.c: display_pixel_set
tinygl_draw_char@tinygl.c: tinygl_point tinygl_font_pixel_get tinygl_draw_point tinygl_point tinygl_draw_point tinygl_point tinygl_font_pixel_get tinygl_draw_point tinygl_point tinygl_draw_point
tinygl_draw_string@tinygl.c: tinygl_draw_char
tinygl_text_advance@tinygl.c: tinygl_draw_string tinygl_draw_string
pio_output_high@pio.c:
pio_output_low@pio.c:
ledmat_display_column@ledmat.c: pio_output_high pio_output_low pio_output_high pio_output_low
display_update@display.c: ledmat_display_column
tinygl_update@tinygl.c: tinygl_text_advance display_update
display_task@voltmeter1.c: tinygl_update
adc_measure@adc.c: pio_output_high pio_output_low
tinygl_draw_message@tinygl.c: strncpy strlen
tinygl_text@tinygl.c: tinygl_draw_message
adc_task@voltmeter1.c: adc_measure tinygl_text
main@voltmeter1.c: system_init display_task_init adc_task_init task_schedule @display_task @adc_task
Binary file not shown.
Binary file not shown.
+62
View File
@@ -0,0 +1,62 @@
../../drivers/avr/timer.h:
../../drivers/avr/timer.c: ../../drivers/avr/timer.h
../../drivers/avr/timer.o: ../../drivers/avr/timer.c
../../drivers/avr/system.c:
../../drivers/avr/system.o: ../../drivers/avr/system.c
../../utils/task.h: ../../drivers/avr/timer.h
../../drivers/display.h:
../../utils/font.h:
../../utils/tinygl.h: ../../drivers/display.h ../../utils/font.h
adc.h:
../../fonts/font3x5_1.h: ../../utils/font.h
voltmeter1.c: ../../utils/task.h ../../utils/tinygl.h adc.h ../../fonts/font3x5_1.h
voltmeter1.o: voltmeter1.c
../../utils/font.c: ../../utils/font.h
../../utils/font.o: ../../utils/font.c
../../drivers/avr/pio.h:
../../drivers/avr/delay.h:
adc.c: ../../drivers/avr/pio.h ../../drivers/avr/delay.h adc.h
adc.o: adc.c
../../drivers/avr/pio.c: ../../drivers/avr/pio.h
../../drivers/avr/pio.o: ../../drivers/avr/pio.c
../../drivers/ledmat.h:
../../drivers/display.c: ../../drivers/ledmat.h ../../drivers/display.h
../../drivers/display.o: ../../drivers/display.c
../../drivers/ledmat.c: ../../drivers/avr/pio.h ../../drivers/ledmat.h
../../drivers/ledmat.o: ../../drivers/ledmat.c
../../utils/tinygl.c: ../../utils/tinygl.h ../../drivers/display.h ../../utils/font.h
../../utils/tinygl.o: ../../utils/tinygl.c
../../utils/task.c: ../../utils/task.h ../../drivers/avr/timer.h
../../utils/task.o: ../../utils/task.c
voltmeter1.out: ../../drivers/avr/timer.o ../../drivers/avr/system.o voltmeter1.o ../../utils/font.o adc.o ../../drivers/avr/pio.o ../../drivers/display.o ../../drivers/ledmat.o ../../utils/tinygl.o ../../utils/task.o
Binary file not shown.
Binary file not shown.
+18
View File
@@ -0,0 +1,18 @@
timer:
task: timer
pio:
ledmat: pio
display: ledmat
font:
tinygl: display font
adc: pio
voltmeter1: task tinygl adc