Skip to content

Commit

Permalink
add doxygen comments
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkucerak committed May 4, 2021
1 parent a44b7dc commit da2ab9c
Show file tree
Hide file tree
Showing 216 changed files with 24,533 additions and 4,474 deletions.
5 changes: 2 additions & 3 deletions apoman.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ int main(int argc, char *argv[])
parlcd_hx8357_init(lcd_mem_base);
font_descriptor_t *font = &font_winFreeSystem14x16;

peripherals_data_t peripherals = {.led_mem_base = led_mem_base, .lcd_mem_base = lcd_mem_base,
.lcd_h = SCREEN_HEIGHT, .lcd_w = SCREEN_WIDTH};
peripherals_data_t peripherals = {.led_mem_base = led_mem_base, .lcd_mem_base = lcd_mem_base, .lcd_h = SCREEN_HEIGHT, .lcd_w = SCREEN_WIDTH};

// call game method
// call game method
run_init_game_menu(&fb, lcd_mem_base, font, peripherals);

// program termination
Expand Down
2,660 changes: 2,660 additions & 0 deletions docs/Doxyfile

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/docbook/annotated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ Here are the data structures with brief descriptions:<link linkend="_structcoord
<para>Ghost metadatas </para>
<link linkend="_structmap__data">map_data</link>
<para>Basic map metadatas </para>
<link linkend="_structmap__template">map_template</link><link linkend="_structmoves__costs__t">moves_costs_t</link><link linkend="_structpacman__type">pacman_type</link>
<link linkend="_structmap__template">map_template</link>
<para>Definition of the template data structure </para>
<link linkend="_structmoves__costs__t">moves_costs_t</link>
<para>Price of movement </para>
<link linkend="_structpacman__type">pacman_type</link>
<para>Pac-man metadatas </para>
<link linkend="_structperipherals__data__t">peripherals_data_t</link>
<para>Peripherals config data </para>
Expand Down
52 changes: 52 additions & 0 deletions docs/docbook/dir_1c85e64171329218e822acddce10dd2b.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@
<para>File with definitions of data structures used across modules like fb data (data about next frame on the screeen), map data (data about currently played map) </para>
</listitem>
<listitem><para>file <link linkend="_draw__shapes_8c">draw_shapes.c</link></para>

<para>Module with functions to draw shapes to the frame buffer. </para>
</listitem>
<listitem><para>file <link linkend="_draw__shapes_8h">draw_shapes.h</link></para>

<para>Module with functions to draw shapes to the frame buffer. </para>
</listitem>
<listitem><para>file <link linkend="_final__score_8c">final_score.c</link></para>

<para>Module with function draw final score that draws the final score to the screen and waits for user input. Returns true if the user pressed the s key and therefor wants to continue playing or the q key indicating he wants to end the program. </para>
</listitem>
<listitem><para>file <link linkend="_final__score_8h">final_score.h</link></para>

<para>Module with function draw final score that draws the final score to the screen and waits for user input. Returns true if the user pressed the s key and therefor wants to continue playing or the q key indicating he wants to end the program. </para>
</listitem>
<listitem><para>file <link linkend="_font__prop14x16_8c">font_prop14x16.c</link></para>
</listitem>
Expand All @@ -32,58 +40,102 @@
<listitem><para>file <link linkend="_font__types_8h">font_types.h</link></para>
</listitem>
<listitem><para>file <link linkend="_game_8c">game.c</link></para>

<para>Module where the game is taking place. </para>
</listitem>
<listitem><para>file <link linkend="_game_8h">game.h</link></para>

<para>Module where the game is taking place. </para>
</listitem>
<listitem><para>file <link linkend="_ghost_8c">ghost.c</link></para>

<para>Module where all the logic and movement of ghost is placed. </para>
</listitem>
<listitem><para>file <link linkend="_ghost_8h">ghost.h</link></para>

<para>Module where all the logic and movement of ghost is placed. </para>
</listitem>
<listitem><para>file <link linkend="_map__circles_8c">map_circles.c</link></para>
</listitem>
<listitem><para>file <link linkend="_map__conch_8c">map_conch.c</link></para>
</listitem>
<listitem><para>file <link linkend="_map__from__template_8c">map_from_template.c</link></para>

<para>Module for creating map for the screen from the templates in the form described in the map template.h. </para>
</listitem>
<listitem><para>file <link linkend="_map__from__template_8h">map_from_template.h</link></para>
</listitem>
<listitem><para>file <link linkend="_map__star_8c">map_star.c</link></para>
</listitem>
<listitem><para>file <link linkend="_map__template_8h">map_template.h</link></para>

<para>File housing the definition of the template data structure Current maps: map star, map circles, map conch. </para>
</listitem>
<listitem><para>file <link linkend="_map__to__fb_8c">map_to_fb.c</link></para>

<para>Module for rendering the map to the frame buffer. Houses function render map. </para>
</listitem>
<listitem><para>file <link linkend="_map__to__fb_8h">map_to_fb.h</link></para>

<para>Module for rendering the map to the frame buffer. Houses function render map. </para>
</listitem>
<listitem><para>file <link linkend="_menu__utilities_8c">menu_utilities.c</link></para>

<para>Module for drawing menu, setting game settings and starting the game. </para>
</listitem>
<listitem><para>file <link linkend="_menu__utilities_8h">menu_utilities.h</link></para>

<para>Module for drawing menu, setting game settings and starting the game. </para>
</listitem>
<listitem><para>file <link linkend="_mzapo__parlcd_8c">mzapo_parlcd.c</link></para>

<para>Module for setting the LCD screen and writing data to it. </para>
</listitem>
<listitem><para>file <link linkend="_mzapo__parlcd_8h">mzapo_parlcd.h</link></para>

<para>Module for setting the LCD screen and writing data to it. </para>
</listitem>
<listitem><para>file <link linkend="_mzapo__phys_8c">mzapo_phys.c</link></para>

<para>Module for mapping the the peripheral adresses to the memory. </para>
</listitem>
<listitem><para>file <link linkend="_mzapo__phys_8h">mzapo_phys.h</link></para>

<para>Module for mapping the the peripheral adresses to the memory. </para>
</listitem>
<listitem><para>file <link linkend="_mzapo__regs_8h">mzapo_regs.h</link></para>
</listitem>
<listitem><para>file <link linkend="_pacman_8c">pacman.c</link></para>

<para>Module for the controls and rendering of pacman. </para>
</listitem>
<listitem><para>file <link linkend="_pacman_8h">pacman.h</link></para>

<para>Module for the controls and rendering of pacman. </para>
</listitem>
<listitem><para>file <link linkend="_terminal__read_8c">terminal_read.c</link></para>

<para>Module housing the thread function for reading the terminal in nonblocking mode and setting the last key pressed variable. </para>
</listitem>
<listitem><para>file <link linkend="_terminal__read_8h">terminal_read.h</link></para>

<para>Module housing the thread function for reading the terminal in nonblocking mode and setting the last key pressed variable. </para>
</listitem>
<listitem><para>file <link linkend="_text__fb_8c">text_fb.c</link></para>

<para>Module for drawing text to frame buffer. </para>
</listitem>
<listitem><para>file <link linkend="_text__fb_8h">text_fb.h</link></para>

<para>Module for drawing text to frame buffer. </para>
</listitem>
<listitem><para>file <link linkend="_update__peripherals_8c">update_peripherals.c</link></para>

<para>Module for setting the peripherals. </para>
</listitem>
<listitem><para>file <link linkend="_update__peripherals_8h">update_peripherals.h</link></para>

<para>Module for setting the peripherals. </para>
</listitem>
</itemizedlist>
</simplesect>
Expand Down
Loading

0 comments on commit da2ab9c

Please sign in to comment.