diff --git a/lab_2/Empty LaTex ReportV1.aux b/lab_2/Empty LaTex ReportV1.aux index 0cfd18d..41927bf 100644 --- a/lab_2/Empty LaTex ReportV1.aux +++ b/lab_2/Empty LaTex ReportV1.aux @@ -20,4 +20,4 @@ \@writefile{toc}{\contentsline {section}{\numberline {2}Target Specifications}{1}{section.2}} \@writefile{toc}{\contentsline {section}{\numberline {3}Schematic}{1}{section.3}} \@writefile{toc}{\contentsline {section}{\numberline {4}Firmware Plan}{1}{section.4}} -\@writefile{toc}{\contentsline {section}{\numberline {5}Parts Required}{1}{section.5}} +\@writefile{toc}{\contentsline {section}{\numberline {5}Parts Required}{2}{section.5}} diff --git a/lab_2/Empty LaTex ReportV1.fdb_latexmk b/lab_2/Empty LaTex ReportV1.fdb_latexmk index 232a875..e5df538 100644 --- a/lab_2/Empty LaTex ReportV1.fdb_latexmk +++ b/lab_2/Empty LaTex ReportV1.fdb_latexmk @@ -1,8 +1,8 @@ # Fdb version 3 -["pdflatex"] 1570724546 "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.tex" "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.pdf" "Empty LaTex ReportV1" 1570724546 +["pdflatex"] 1570725704 "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.tex" "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.pdf" "Empty LaTex ReportV1" 1570725704 "/etc/texmf/web2c/texmf.cnf" 1567530603 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux" 1570724546 1101 c03febe99fcc7c400611da31896ca24d "" - "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.tex" 1570724546 1526 31ebeef1956784c2ac73d49c98b9df7a "" + "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux" 1570725704 1101 bfe4dd9b32e754850ed11482e15289f4 "" + "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.tex" 1570725703 2417 a4fae490563dee5e2a53c475abcef8d7 "" "/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map" 1511824771 3332 103109f5612ad95229751940c61aada0 "" "/usr/share/texlive/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm" 1480098698 1004 54797486969f23fa377b128694d548df "" "/usr/share/texlive/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex8.tfm" 1480098698 988 bdf658c3bfc2d96d3c8b02cfc1c94c20 "" @@ -26,6 +26,7 @@ "/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb" 1480098733 32080 340ef9bf63678554ee606688e7b5339d "" "/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb" 1480098733 32722 d7379af29a190c3f453aba36302ff5a9 "" "/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb" 1480098733 32362 179c33bbf43f19adbb3825bb4e36e57a "" + "/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb" 1480098733 32569 5e5ddc8df908dea60932f3c484a54c0d "" "/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt12.pfb" 1480098733 24252 1e4e051947e12dfb50fee0b7f4e26e3a "" "/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/symbols/msam10.pfb" 1480098733 31764 459c573c03a4949a528c2cc7f557e217 "" "/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii" 1480098806 71627 94eb9990bed73c364d7f53f960cc8c5b "" @@ -66,6 +67,9 @@ "/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def" 1518041854 14098 4e70bf396c7c265bd8b0e5cab3fd3d4d "" "/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg" 1480098833 678 4792914a8f45be57bb98413425e4c7af "" "/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg" 1480098833 235 6031e5765137be07eed51a510b2b8fb7 "" + "/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg" 1480098833 1827 d72ad54409ca5c1068a1939c63441bd2 "" + "/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty" 1480098833 80336 ff90c926c3d7bfdaa3d80ca57123b0bb "" + "/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty" 1480098833 77028 c3eb00afb55a32bc13ca8da7f5234377 "" "/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty" 1480098836 3834 4363110eb0ef1eb2b71c8fcbcdb6c357 "" "/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty" 1480098836 12095 5337833c991d80788a43d3ce26bd1c46 "" "/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty" 1480098836 7075 2fe3d848bba95f139de11ded085e74aa "" @@ -81,15 +85,15 @@ "/usr/share/texmf/web2c/texmf.cnf" 1520210507 32485 c64754543d8ac501bea6e75e209ea521 "" "/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1568140038 2361257 726fe6b8da9ff7c93aa3fe9e1a980b90 "" "/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1567717912 724917 8f47dfd9e170416fd47eaec382daba57 "" - "Empty LaTex ReportV1.aux" 1570724546 1101 c03febe99fcc7c400611da31896ca24d "" - "Empty LaTex ReportV1.out" 1570724546 259 c3c35b14c3a91f538e188aae8cf11d7b "" - "Empty LaTex ReportV1.tex" 1570724546 1526 31ebeef1956784c2ac73d49c98b9df7a "" - "Empty LaTex ReportV1.toc" 1570724546 349 91412fdd71c097b903e27d5f22f77325 "" + "Empty LaTex ReportV1.aux" 1570725704 1101 bfe4dd9b32e754850ed11482e15289f4 "" + "Empty LaTex ReportV1.out" 1570725704 259 c3c35b14c3a91f538e188aae8cf11d7b "" + "Empty LaTex ReportV1.tex" 1570725703 2417 a4fae490563dee5e2a53c475abcef8d7 "" + "Empty LaTex ReportV1.toc" 1570725704 349 65b48889de6b4037b7cbcb09f2058b31 "" (generated) "Empty LaTex ReportV1.aux" "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.pdf" - "Empty LaTex ReportV1.pdf" "Empty LaTex ReportV1.toc" - "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.log" + "Empty LaTex ReportV1.pdf" "Empty LaTex ReportV1.out" + "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.log" "Empty LaTex ReportV1.log" diff --git a/lab_2/Empty LaTex ReportV1.fls b/lab_2/Empty LaTex ReportV1.fls index 705144f..99558f9 100644 --- a/lab_2/Empty LaTex ReportV1.fls +++ b/lab_2/Empty LaTex ReportV1.fls @@ -87,6 +87,12 @@ INPUT /usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def INPUT /usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def INPUT /usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty INPUT /usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty +INPUT /usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty +INPUT /usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty +INPUT /usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty +INPUT /usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty +INPUT /usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg +INPUT /usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg INPUT /home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux INPUT /home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux OUTPUT /home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux @@ -162,5 +168,6 @@ INPUT /home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.out INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb +INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt12.pfb INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/symbols/msam10.pfb diff --git a/lab_2/Empty LaTex ReportV1.log b/lab_2/Empty LaTex ReportV1.log index eefdedf..7b6330b 100644 --- a/lab_2/Empty LaTex ReportV1.log +++ b/lab_2/Empty LaTex ReportV1.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2019.9.5) 10 OCT 2019 10:22 +This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2019.9.5) 10 OCT 2019 10:41 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. @@ -263,41 +263,62 @@ Package: rerunfilecheck 2016/05/16 v1.8 Rerun checks for auxiliary files (HO) Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 282. ) \Hy@SectionHShift=\skip49 -) -Package hyperref Info: Option `bookmarksnumbered' set `true' on input line 27. -Package hyperref Info: Option `bookmarksopen' set `true' on input line 27. -Package hyperref Info: Option `colorlinks' set `false' on input line 27. +) (/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty +\lst@mode=\count114 +\lst@gtempboxa=\box32 +\lst@token=\toks24 +\lst@length=\count115 +\lst@currlwidth=\dimen122 +\lst@column=\count116 +\lst@pos=\count117 +\lst@lostspace=\dimen123 +\lst@width=\dimen124 +\lst@newlines=\count118 +\lst@lineno=\count119 +\lst@maxwidth=\dimen125 + (/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty +File: lstmisc.sty 2015/06/04 1.6 (Carsten Heinz) +\c@lstnumber=\count120 +\lst@skipnumbers=\count121 +\lst@framebox=\box33 +) (/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg +File: listings.cfg 2015/06/04 1.6 listings configuration +)) +Package: listings 2015/06/04 1.6 (Carsten Heinz) +Package hyperref Info: Option `bookmarksnumbered' set `true' on input line 28. +Package hyperref Info: Option `bookmarksopen' set `true' on input line 28. +Package hyperref Info: Option `colorlinks' set `false' on input line 28. (/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux) \openout1 = `"Empty LaTex ReportV1.aux"'. -LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 41. -LaTeX Font Info: ... okay on input line 41. -LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 41. -LaTeX Font Info: ... okay on input line 41. -LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 41. -LaTeX Font Info: ... okay on input line 41. -LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 41. -LaTeX Font Info: ... okay on input line 41. -LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 41. -LaTeX Font Info: ... okay on input line 41. -LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 41. -LaTeX Font Info: ... okay on input line 41. -LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 41. -LaTeX Font Info: ... okay on input line 41. -\AtBeginShipoutBox=\box32 +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 42. +LaTeX Font Info: ... okay on input line 42. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 42. +LaTeX Font Info: ... okay on input line 42. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 42. +LaTeX Font Info: ... okay on input line 42. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 42. +LaTeX Font Info: ... okay on input line 42. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 42. +LaTeX Font Info: ... okay on input line 42. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 42. +LaTeX Font Info: ... okay on input line 42. +LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 42. +LaTeX Font Info: ... okay on input line 42. +\AtBeginShipoutBox=\box34 (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] -\scratchcounter=\count114 -\scratchdimen=\dimen122 -\scratchbox=\box33 -\nofMPsegments=\count115 -\nofMParguments=\count116 -\everyMPshowfont=\toks24 -\MPscratchCnt=\count117 -\MPscratchDim=\dimen123 -\MPnumerator=\count118 -\makeMPintoPDFobject=\count119 -\everyMPtoPDFconversion=\toks25 +\scratchcounter=\count122 +\scratchdimen=\dimen126 +\scratchbox=\box35 +\nofMPsegments=\count123 +\nofMParguments=\count124 +\everyMPshowfont=\toks25 +\MPscratchCnt=\count125 +\MPscratchDim=\dimen127 +\MPnumerator=\count126 +\makeMPintoPDFobject=\count127 +\everyMPtoPDFconversion=\toks26 ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty @@ -316,26 +337,27 @@ Package: lscape 2000/10/22 v3.01 Landscape Pages (DPC) ) Package pdflscape Info: Auto-detected driver: pdftex on input line 81. ) -Package hyperref Info: Link coloring OFF on input line 41. +Package hyperref Info: Link coloring OFF on input line 42. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO) ) -\c@section@level=\count120 +\c@section@level=\count128 ) -LaTeX Info: Redefining \ref on input line 41. -LaTeX Info: Redefining \pageref on input line 41. -LaTeX Info: Redefining \nameref on input line 41. +LaTeX Info: Redefining \ref on input line 42. +LaTeX Info: Redefining \pageref on input line 42. +LaTeX Info: Redefining \nameref on input line 42. (/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.out) (/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.out) \@outlinefile=\write4 \openout4 = `"Empty LaTex ReportV1.out"'. -LaTeX Font Info: Try loading font information for U+msa on input line 44. +\c@lstlisting=\count129 +LaTeX Font Info: Try loading font information for U+msa on input line 45. (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd File: umsa.fd 2013/01/14 v3.01 AMS symbols A ) -LaTeX Font Info: Try loading font information for U+msb on input line 44. +LaTeX Font Info: Try loading font information for U+msb on input line 45. (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd File: umsb.fd 2013/01/14 v3.01 AMS symbols B ) [1 @@ -344,30 +366,30 @@ File: umsb.fd 2013/01/14 v3.01 AMS symbols B \tf@toc=\write5 \openout5 = `"Empty LaTex ReportV1.toc"'. + [2] [1] +Package atveryend Info: Empty hook `BeforeClearDocument' on input line 117. [2] -Package atveryend Info: Empty hook `BeforeClearDocument' on input line 72. - [1] -Package atveryend Info: Empty hook `AfterLastShipout' on input line 72. +Package atveryend Info: Empty hook `AfterLastShipout' on input line 117. (/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.aux) -Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 72. -Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 72. +Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 117. +Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 117. Package rerunfilecheck Info: File `"Empty LaTex ReportV1".out' has not changed. (rerunfilecheck) Checksum: C3C35B14C3A91F538E188AAE8CF11D7B;259. -Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 72. +Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 117. ) Here is how much of TeX's memory you used: - 7196 strings out of 494923 - 104128 string characters out of 6180743 - 188096 words of memory out of 5000000 - 10403 multiletter control sequences out of 15000+600000 + 8411 strings out of 494923 + 122061 string characters out of 6180743 + 218593 words of memory out of 5000000 + 11564 multiletter control sequences out of 15000+600000 12564 words of font info for 49 fonts, out of 8000000 for 9000 14 hyphenation exceptions out of 8191 - 37i,9n,39p,334b,331s stack positions out of 5000i,500n,10000p,200000b,80000s - -Output written on "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.pdf" (3 pages, 55221 bytes). + 37i,9n,39p,334b,1628s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on "/home/david/Documents/homework/ECE_312/lab/lab_2/Empty LaTex ReportV1.pdf" (4 pages, 67246 bytes). PDF statistics: - 70 PDF objects out of 1000 (max. 8388607) - 59 compressed objects within 1 object stream - 10 named destinations out of 1000 (max. 500000) + 129 PDF objects out of 1000 (max. 8388607) + 115 compressed objects within 2 object streams + 52 named destinations out of 1000 (max. 500000) 41 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/lab_2/Empty LaTex ReportV1.pdf b/lab_2/Empty LaTex ReportV1.pdf index 9107b08..8239286 100644 Binary files a/lab_2/Empty LaTex ReportV1.pdf and b/lab_2/Empty LaTex ReportV1.pdf differ diff --git a/lab_2/Empty LaTex ReportV1.synctex.gz b/lab_2/Empty LaTex ReportV1.synctex.gz index 11c79b7..be00960 100644 Binary files a/lab_2/Empty LaTex ReportV1.synctex.gz and b/lab_2/Empty LaTex ReportV1.synctex.gz differ diff --git a/lab_2/Empty LaTex ReportV1.tex b/lab_2/Empty LaTex ReportV1.tex index 3b74ebe..3b7da18 100644 --- a/lab_2/Empty LaTex ReportV1.tex +++ b/lab_2/Empty LaTex ReportV1.tex @@ -6,6 +6,7 @@ \usepackage{amssymb} \usepackage{pdfpages} \usepackage[hidelinks]{hyperref} +\usepackage{listings} \newcommand{\docTitle}{Musical Greeting Card} @@ -55,6 +56,50 @@ \section{Firmware Plan} +\begin{lstlisting} +main(): + initialize_gpio() + initialize_timer() + + loop forever: + if playing: + play_beat() + + if not playing and button_is_pressed: + delay(debounce_time) + set flag playing + enable_interrupts() + + if interrupt_button_press: + reset flag playing + play_rest() + +// Will play rest of current beat then shut off +button_press_interrupt(): + disable_interrupts() + set flag interrupt_button_press + +// Plays one full beat +play_beat(): + if current_note_has_duration: + keep playing note + else: + read next note + play_note(next_note) + current_note_duration-- + + + delay(on_time) + + if current_note_has_duration: + keep playing note + else + play_rest() + + delay_rest_time + +\end{lstlisting} + \section{Parts Required} \begin{table}[H] diff --git a/lab_2/Empty LaTex ReportV1.toc b/lab_2/Empty LaTex ReportV1.toc index 8d9f07d..3752070 100644 --- a/lab_2/Empty LaTex ReportV1.toc +++ b/lab_2/Empty LaTex ReportV1.toc @@ -2,4 +2,4 @@ \contentsline {section}{\numberline {2}Target Specifications}{1}{section.2} \contentsline {section}{\numberline {3}Schematic}{1}{section.3} \contentsline {section}{\numberline {4}Firmware Plan}{1}{section.4} -\contentsline {section}{\numberline {5}Parts Required}{1}{section.5} +\contentsline {section}{\numberline {5}Parts Required}{2}{section.5}