Add test program that gobbles echoed character
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# File: Makefile
|
||||
# Author: M. P. Hayes, UCECE
|
||||
# Date: 11 Sep 2010
|
||||
# Descr: Makefile for ir_uart_test3 docs
|
||||
|
||||
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 --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
|
||||
|
||||
@@ -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.
|
||||
@@ -0,0 +1,118 @@
|
||||
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:
|
||||
|
||||
navswitch_init@navswitch.c:
|
||||
|
||||
timer0_mode_set@timer0.c:
|
||||
|
||||
timer0_init@timer0.c: timer0_mode_set
|
||||
|
||||
prescale_select@prescale.c:
|
||||
|
||||
timer0_prescaler_get@timer0.c:
|
||||
|
||||
timer0_running_p@timer0.c: timer0_prescaler_get
|
||||
|
||||
timer0_prescaler_set@timer0.c:
|
||||
|
||||
timer0_period_set@timer0.c: prescale_select timer0_running_p timer0_prescaler_set
|
||||
|
||||
timer0_output_set@timer0.c:
|
||||
|
||||
timer0_start@timer0.c: timer0_prescaler_set
|
||||
|
||||
usart1_baud_divisor_set@usart1.c:
|
||||
|
||||
usart1_init@usart1.c: usart1_baud_divisor_set
|
||||
|
||||
ir_uart_init@ir_uart.c: pio_config_set timer0_init timer0_period_set timer0_mode_set timer0_output_set timer0_start usart1_init
|
||||
|
||||
timer_init@timer.c:
|
||||
|
||||
pacer_init@pacer.c: timer_init
|
||||
|
||||
tinygl_draw_message@tinygl.c: strncpy strlen
|
||||
|
||||
tinygl_text@tinygl.c: tinygl_draw_message
|
||||
|
||||
show_char@ir_uart_test3.c: tinygl_text
|
||||
|
||||
timer_get@timer.c:
|
||||
|
||||
timer_wait_until@timer.c: timer_get
|
||||
|
||||
pacer_wait@pacer.c: timer_wait_until
|
||||
|
||||
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
|
||||
|
||||
pio_config_get@pio.c:
|
||||
|
||||
_delay_loop_1@navswitch.c:
|
||||
|
||||
pio_input_get@pio.c:
|
||||
|
||||
navswitch_update@navswitch.c: pio_config_get pio_config_set pio_config_set _delay_loop_1 pio_input_get pio_config_set
|
||||
|
||||
navswitch_push_event_p@navswitch.c:
|
||||
|
||||
usart1_write_ready_p@usart1.c:
|
||||
|
||||
usart1_putc@usart1.c: usart1_putc usart1_write_ready_p
|
||||
|
||||
ir_uart_putc@ir_uart.c: usart1_putc
|
||||
|
||||
usart1_read_ready_p@usart1.c:
|
||||
|
||||
ir_uart_read_ready_p@ir_uart.c: usart1_read_ready_p
|
||||
|
||||
usart1_getc@usart1.c: usart1_read_ready_p
|
||||
|
||||
ir_uart_getc@ir_uart.c: usart1_getc
|
||||
|
||||
main@ir_uart_test3.c: system_init tinygl_init tinygl_font_set tinygl_text_speed_set tinygl_text_mode_set navswitch_init ir_uart_init pacer_init show_char pacer_wait tinygl_update navswitch_update navswitch_push_event_p ir_uart_putc navswitch_push_event_p ir_uart_putc ir_uart_read_ready_p ir_uart_getc show_char
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
../../drivers/avr/timer.h:
|
||||
|
||||
../../drivers/avr/timer.c: ../../drivers/avr/timer.h
|
||||
|
||||
../../drivers/avr/timer.o: ../../drivers/avr/timer.c
|
||||
|
||||
../../drivers/avr/pio.h:
|
||||
|
||||
../../drivers/ledmat.h:
|
||||
|
||||
../../drivers/ledmat.c: ../../drivers/avr/pio.h ../../drivers/ledmat.h
|
||||
|
||||
../../drivers/ledmat.o: ../../drivers/ledmat.c
|
||||
|
||||
../../drivers/navswitch.h:
|
||||
|
||||
../../drivers/avr/delay.h:
|
||||
|
||||
../../drivers/navswitch.c: ../../drivers/navswitch.h ../../drivers/avr/delay.h ../../drivers/avr/pio.h
|
||||
|
||||
../../drivers/navswitch.o: ../../drivers/navswitch.c
|
||||
|
||||
../../drivers/display.h:
|
||||
|
||||
../../utils/font.h:
|
||||
|
||||
../../utils/tinygl.h: ../../drivers/display.h ../../utils/font.h
|
||||
|
||||
../../utils/tinygl.c: ../../utils/tinygl.h ../../drivers/display.h ../../utils/font.h
|
||||
|
||||
../../utils/tinygl.o: ../../utils/tinygl.c
|
||||
|
||||
../../utils/pacer.h:
|
||||
|
||||
../../drivers/avr/ir_uart.h:
|
||||
|
||||
../../fonts/font5x7_1.h: ../../utils/font.h
|
||||
|
||||
ir_uart_test3.c: ../../drivers/navswitch.h ../../utils/tinygl.h ../../utils/pacer.h ../../drivers/avr/ir_uart.h ../../fonts/font5x7_1.h
|
||||
|
||||
ir_uart_test3.o: ir_uart_test3.c
|
||||
|
||||
../../utils/font.c: ../../utils/font.h
|
||||
|
||||
../../utils/font.o: ../../utils/font.c
|
||||
|
||||
../../drivers/avr/pio.c: ../../drivers/avr/pio.h
|
||||
|
||||
../../drivers/avr/pio.o: ../../drivers/avr/pio.c
|
||||
|
||||
../../utils/pacer.c: ../../drivers/avr/timer.h ../../utils/pacer.h
|
||||
|
||||
../../utils/pacer.o: ../../utils/pacer.c
|
||||
|
||||
../../drivers/display.c: ../../drivers/ledmat.h ../../drivers/display.h
|
||||
|
||||
../../drivers/display.o: ../../drivers/display.c
|
||||
|
||||
../../drivers/avr/system.c:
|
||||
|
||||
../../drivers/avr/system.o: ../../drivers/avr/system.c
|
||||
|
||||
../../drivers/avr/prescale.h:
|
||||
|
||||
../../drivers/avr/prescale.c: ../../drivers/avr/prescale.h
|
||||
|
||||
../../drivers/avr/prescale.o: ../../drivers/avr/prescale.c
|
||||
|
||||
../../drivers/avr/usart1.h:
|
||||
|
||||
../../drivers/avr/timer0.h:
|
||||
|
||||
../../drivers/avr/ir_uart.c: ../../drivers/avr/ir_uart.h ../../drivers/avr/usart1.h ../../drivers/avr/timer0.h ../../drivers/avr/pio.h
|
||||
|
||||
../../drivers/avr/ir_uart.o: ../../drivers/avr/ir_uart.c
|
||||
|
||||
../../drivers/avr/bits.h:
|
||||
|
||||
../../drivers/avr/timer0.c: ../../drivers/avr/timer0.h ../../drivers/avr/bits.h ../../drivers/avr/prescale.h
|
||||
|
||||
../../drivers/avr/timer0.o: ../../drivers/avr/timer0.c
|
||||
|
||||
../../drivers/avr/usart1.c: ../../drivers/avr/usart1.h
|
||||
|
||||
../../drivers/avr/usart1.o: ../../drivers/avr/usart1.c
|
||||
|
||||
ir_uart_test3.out: ../../drivers/avr/timer.o ../../drivers/ledmat.o ../../drivers/navswitch.o ../../utils/tinygl.o ir_uart_test3.o ../../utils/font.o ../../drivers/avr/pio.o ../../utils/pacer.o ../../drivers/display.o ../../drivers/avr/system.o ../../drivers/avr/prescale.o ../../drivers/avr/ir_uart.o ../../drivers/avr/timer0.o ../../drivers/avr/usart1.o
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
pio:
|
||||
|
||||
navswitch: pio
|
||||
|
||||
ledmat: pio
|
||||
|
||||
display: ledmat
|
||||
|
||||
font:
|
||||
|
||||
tinygl: display font
|
||||
|
||||
timer:
|
||||
|
||||
pacer: timer
|
||||
|
||||
usart1:
|
||||
|
||||
prescale:
|
||||
|
||||
timer0: prescale
|
||||
|
||||
ir_uart: usart1 timer0 pio
|
||||
|
||||
ir_uart_test3: navswitch tinygl pacer ir_uart
|
||||
|
||||
Reference in New Issue
Block a user