From 0821446b48402327d2e5965ff42ebda14bd4aaa4 Mon Sep 17 00:00:00 2001 From: Fernando Date: Sat, 19 Dec 2020 17:34:39 -0300 Subject: [PATCH 1/4] Se agrega el alumnos TAJES, Fernando --- src/alumnos.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/alumnos.c b/src/alumnos.c index dc3b4d9..9d58ff2 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -25,14 +25,14 @@ /*=====[Definitions of public global variables]==============================*/ -static const struct alumno_s ESTEBAN_VOLENTINI = { - .apellidos = "VOLENTINI", - .nombres = "Esteban Daniel", - .documento = "23.517.968", +static const struct alumno_s FERNANDO_TAJES = { + .apellidos = "TAJES", + .nombres = "Fernando", + .documento = "3.864.221-4", }; const alumno_t ALUMNOS[] = { - &ESTEBAN_VOLENTINI, + &FERNANDO_TAJES, }; const int CANTIDAD_ALUMNOS = (sizeof(ALUMNOS) / sizeof(alumno_t)); From 416438e27fb720f682fb171b02cdc92ded019bbf Mon Sep 17 00:00:00 2001 From: Fernando Date: Sat, 19 Dec 2020 17:53:11 -0300 Subject: [PATCH 2/4] Se agrego al alumno Esteban Volentini --- src/alumnos.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/alumnos.c b/src/alumnos.c index 9d58ff2..8040ff6 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -25,6 +25,13 @@ /*=====[Definitions of public global variables]==============================*/ +static const struct alumno_s ESTEBAN_VOLENTINI = { + .apellidos = "VOLENTINI", + .nombres = "Esteban Daniel", + .documento = "23.517.968", +}; + + static const struct alumno_s FERNANDO_TAJES = { .apellidos = "TAJES", .nombres = "Fernando", @@ -32,6 +39,7 @@ static const struct alumno_s FERNANDO_TAJES = { }; const alumno_t ALUMNOS[] = { + &ESTEBAN_VOLENTINI, &FERNANDO_TAJES, }; From 93fcc59597bfde0500357477d117d2f7fd665dc4 Mon Sep 17 00:00:00 2001 From: Fernando Date: Sat, 19 Dec 2020 18:49:13 -0300 Subject: [PATCH 3/4] Comentarios doxygen --- inc/alumnos.h | 10 ++++++++++ src/alumnos.c | 20 ++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/inc/alumnos.h b/inc/alumnos.h index 34f71b8..312575f 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -29,6 +29,9 @@ extern "C" { /*=====[Definitions of public data types]====================================*/ +/** + * @brief Estructura con los datos del alumno +*/ typedef struct alumno_s { char apellidos[30]; char nombres[30]; @@ -39,6 +42,13 @@ typedef struct alumno_s { /*=====[Prototypes (declarations) of public functions]=======================*/ + +/** + * @brief Función serializar alumno + * @param cadena + * @param espacio + * @return True o False + */ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); bool SerializarAlumnos(char * cadena, size_t espacio); diff --git a/src/alumnos.c b/src/alumnos.c index 8040ff6..95210d2 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -1,11 +1,9 @@ -/*=====[Module Name]=========================================================== - * Copyright 2019 Esteban Daniel VOLENTINI - * All rights reserved. - * License: BSD-3-Clause ) - * - * Version: 0.1.0 - * Creation Date: 2019/03/01 - */ +/** + * @file alumnos.c + * @brief Módulo que implementa las funciones... + * @author -------- + * @date 19/12/2020 +*/ /*=====[Inclusion of own header]=============================================*/ @@ -53,6 +51,9 @@ const int CANTIDAD_ALUMNOS = (sizeof(ALUMNOS) / sizeof(alumno_t)); /*=====[Implementations of interrupt functions]==============================*/ +/** + * @brief Función que serializa al alumno +*/ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { int resultado; const char FORMATO[] = "{" @@ -67,6 +68,9 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } +/** + * @brief Función que serializa a los alumnos +*/ bool SerializarAlumnos(char * cadena, size_t espacio) { static const int cantidad = sizeof(ALUMNOS) / sizeof(alumno_t); int posicion = snprintf(cadena, espacio, "[\r\n "); From 98a10e12c6db6f2e47e5a0a58bd92a3195a894e6 Mon Sep 17 00:00:00 2001 From: Fernando Date: Sat, 19 Dec 2020 18:57:02 -0300 Subject: [PATCH 4/4] makefile --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index 6e5d9a6..0dcb350 100644 --- a/makefile +++ b/makefile @@ -29,3 +29,6 @@ $(BIN_DIR): $(OUT_DIR) $(OBJ_DIR): $(OUT_DIR) @echo Creating output objects folder @mkdir $(OBJ_DIR) + +doc: + doxygen $(INC_DIR)/*.h $(SRC_DIR)/*.c