From: Michal Horn Date: Tue, 25 Jun 2013 15:48:17 +0000 (+0200) Subject: Licence header added to all CMD files, comments to functions added X-Git-Tag: v0.2~24 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-test-sw.git/commitdiff_plain/8e9c23ed53bf2daab45ec04eda1527268740b488 Licence header added to all CMD files, comments to functions added --- diff --git a/rpp/lib/apps/test/src/main.c b/rpp/lib/apps/test/src/main.c index bcf15cd..8948280 100644 --- a/rpp/lib/apps/test/src/main.c +++ b/rpp/lib/apps/test/src/main.c @@ -1,16 +1,31 @@ -/** @file sys_main.c -* @brief Application main file -* @date 15.Mar.2012 -* @version 03.01.00 -* -* This file contains an empty main function, -* which can be used for the application. -*/ - -/* (c) Texas Instruments 2009-2012, All rights reserved. */ - -/* USER CODE BEGIN (0) */ -/* USER CODE END */ +/* + * Copyright (C) 2012-2013 Czech Technical University in Prague + * + * Created on: 15.3.2012 + * + * Authors: + * - Michal Horn + * - Carlos Jenkins + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : main.c + * + * Abstract: + * This file contains main function and Hook functions used by IDLE task. + * + */ /* Include Files */ #include "rpp/rpp.h" @@ -18,20 +33,11 @@ /** @fn void main(void) * @brief Application main function -* @note This function is empty by default. * * This function is called after startup. -* The user can use this function to implement the application. */ - -/* USER CODE BEGIN (2) */ -/* USER CODE END */ - - - void main(void) { -/* USER CODE BEGIN (3) */ rpp_init(); _enable_IRQ(); initCmdProc(0, (uint8_t*)"\r\n----\r\n Rapid Prototyping Platform v00.02-001\r\n Porsche Engineering 06/2013\r\n----\r\n\r\nType commands", (uint8_t *)"\r\n--> "); @@ -40,7 +46,6 @@ void main(void) //We should never get here while(1) ; -/* USER CODE END */ } #if configUSE_MALLOC_FAILED_HOOK == 1 @@ -70,8 +75,3 @@ void vApplicationStackOverflowHook(xTaskHandle xTask, #endif } #endif - - - -/* USER CODE BEGIN (4) */ -/* USER CODE END */ diff --git a/rpp/lib/cmdproc/src/cmdproc_freertos_tms570.c b/rpp/lib/cmdproc/src/cmdproc_freertos_tms570.c index 8b0ea3d..911ef5d 100644 --- a/rpp/lib/cmdproc/src/cmdproc_freertos_tms570.c +++ b/rpp/lib/cmdproc/src/cmdproc_freertos_tms570.c @@ -1,10 +1,30 @@ -/** @file cmd_proc_freertos_tms570.c -* @brief Texas Instrument SCI FreeRTOS cmdProc implementation -* @date 1.August.2012 -* -* Implements main task of command processing. -* -*/ +/* + * Copyright (C) 2012-2013 Czech Technical University in Prague + * + * Created on: 1.8.2012 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_proc_freertos_tms570.c + * + * Abstract: + * This file contains main command processor task function and initialization of CMDPROC + * + */ /* Include files */ #include "cmdproc_freertos_tms570.h" @@ -20,6 +40,13 @@ extern cmd_des_t const *cmd_list_main[]; extern cmd_io_t cmd_io_std_line; +/** + * @brief Entry function to start main CMDPROC + * @param priority Priority of CMDPROC task (0 is the highest priority) + * @param introText Text which will be printed when CMDPROC launches + * @param promptText Text printed when CMDPROC is ready to read new command + * + */ void initCmdProc(unsigned portBASE_TYPE priority, uint8_t * introText, uint8_t * promptText) { prompt = NULL; if (promptText != NULL) { @@ -39,6 +66,10 @@ void initCmdProc(unsigned portBASE_TYPE priority, uint8_t * introText, uint8_t * rpp_sci_printf("%s", prompt); } +/** + * @brief CMDPROC task procedure + * @param pvParameters Not used, task receives no parameters + */ void processCmd(void *pvParameters ) { for (;;) { cmd_processor_run(&cmd_io_std_line, cmd_list_main); diff --git a/rpp/lib/cmdproc/src/cmdproc_io.c b/rpp/lib/cmdproc/src/cmdproc_io.c index 4859d49..dd40815 100644 --- a/rpp/lib/cmdproc/src/cmdproc_io.c +++ b/rpp/lib/cmdproc/src/cmdproc_io.c @@ -1,3 +1,20 @@ +/******************************************************************* + Components for embedded applications builded for + laboratory and medical instruments firmware + + cmd_proc_io.c - IO functions for CMDPROC + + Copyright (C) 2001-2009 by Pavel Pisa pisa@cmp.felk.cvut.cz + (C) 2002-2009 by PiKRON Ltd. http://www.pikron.com + (C) 2007 by Michal Sojka + (C) 2012 by Michal Horn + + This file can be used and copied according to next + license alternatives + - MPL - Mozilla Public License + - GPL - GNU Public License + - other license provided by project originators + *******************************************************************/ #include "cmdproc.h" #include #include @@ -27,6 +44,16 @@ int cmd_io_puts(cmd_io_t *cmd_io, const char *str) return ret; } +/** + * Blocking call to print a set of characters. + * + * @param cmd_io cmd_io structure. + * @param buf Pointer to character buffer. + * @param count Maximum number of character to be printed + * + * @return Upon successful completion, a non-negative number shall return. + * In case of error, negative number is returned. + */ int cmd_io_write_bychar(cmd_io_t *cmd_io,const void *buf,int count) { int cn=0; @@ -37,6 +64,16 @@ int cmd_io_write_bychar(cmd_io_t *cmd_io,const void *buf,int count) return cn; } +/** + * Blocking call to read set of character + * + * @param cmd_io cmd_io structure. + * @param buf Pointer to character buffer. + * @param count Maximum number of character to be read + * + * @return Upon successful completion, a non-negative number shall return. + * In case of error, negative number is returned. + */ int cmd_io_read_bychar(cmd_io_t *cmd_io,void *buf,int count) { int cn=0; diff --git a/rpp/lib/cmdproc/src/cmdproc_io_tisci.c b/rpp/lib/cmdproc/src/cmdproc_io_tisci.c index 0efac34..e8eb5f9 100644 --- a/rpp/lib/cmdproc/src/cmdproc_io_tisci.c +++ b/rpp/lib/cmdproc/src/cmdproc_io_tisci.c @@ -1,21 +1,45 @@ -/** @file cmdio_tisci.c -* @brief Texas Instrument SCI IO for cmdProc -* @date 17.July.2012 -* -* Definition of IO. This implementation uses queues as buffers, which are than used for input and output. -* -*/ +/******************************************************************* + Components for embedded applications builded for + laboratory and medical instruments firmware + + cmd_proc_io_tisci.c - IO layer functions for SCI on TMS570 and FreeRTOS + + Copyright (C) 2001-2009 by Pavel Pisa pisa@cmp.felk.cvut.cz + (C) 2002-2009 by PiKRON Ltd. http://www.pikron.com + (C) 2007 by Michal Sojka + (C) 2012 by Michal Horn + + This file can be used and copied according to next + license alternatives + - MPL - Mozilla Public License + - GPL - GNU Public License + - other license provided by project originators + *******************************************************************/ + /* Include files */ #include "cmdproc_io_tisci.h" #include "types.h" #include "rpp/rpp.h" +/** + * @brief Print character on SCI + * @param cmd_io cmd_io structure + * @param ch character to be printed + * @return always 1 + * + */ int tisci_putc(cmd_io_t *cmd_io, int ch) { rpp_sci_putc((uint8_t)ch); return 1; } +/** + * @brief Read character from SCI + * @param cmd_io cmd_io structure + * @return character ASCII code + * + */ int tisci_getc(cmd_io_t *cmd_io) { int ret = '\0'; ret = rpp_sci_getc(); @@ -24,17 +48,36 @@ int tisci_getc(cmd_io_t *cmd_io) { } return ret; } + +/** + * @brief Print string on SCI + * @param cmd_io cmd_io structure + * @param buf String buffer to be printed + * @param count maximum character number to be printed + * @return number of printed characters + * + */ int tisci_write(cmd_io_t *cmd_io, const void *buf, int count) { const char *tmpBuf = buf; return rpp_sci_printf("%s", tmpBuf); } + +/** + * @brief Read string from SCI + * @param cmd_io cmd_io structure + * @param buf String buffer + * @param count maximum character number to be read + * @return SUCCESS + */ int tisci_read(cmd_io_t *cmd_io, void *buf, int count) { uint8_t* tmpBuf = buf; return rpp_sci_read(count, tmpBuf); } -/* Setting io stack for cmdProc */ +/** + * IO stack for cmdProc + */ cmd_io_t cmd_io_buf={ tisci_putc, tisci_getc, diff --git a/rpp/lib/cmdproc/src/commands/cmd.c b/rpp/lib/cmdproc/src/commands/cmd.c index b1ac0d5..58cd7a1 100644 --- a/rpp/lib/cmdproc/src/commands/cmd.c +++ b/rpp/lib/cmdproc/src/commands/cmd.c @@ -1,10 +1,30 @@ -/** @file commands.c -* @brief Command definitions file -* @date 31.July.2012 -* -* Command is defined by its function. The function and others parameters are stored as list element. -* All commands represented as elements are stored in lists connected into one main list. -*/ +/* + * Copyright (C) 2012-2013 Czech Technical University in Prague + * + * Created on: 31.7.2012 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd.c + * + * Abstract: + * This file contains root of the list of the commands. + * + */ /* Include files */ #include "rpp/rpp.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_can.c b/rpp/lib/cmdproc/src/commands/cmd_can.c index aec5d27..7a6ee45 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_can.c +++ b/rpp/lib/cmdproc/src/commands/cmd_can.c @@ -1,10 +1,29 @@ /* - * cmd_can.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_can.c + * + * Abstract: + * This file contains commands for CAN test * - * Commands for CAN control */ #include "rpp/rpp.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_emac.c b/rpp/lib/cmdproc/src/commands/cmd_emac.c index 4017969..8bde407 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_emac.c +++ b/rpp/lib/cmdproc/src/commands/cmd_emac.c @@ -1,3 +1,30 @@ +/* + * Copyright (C) 2012-2013 Czech Technical University in Prague + * + * Created on: 28.2.2013 + * + * Authors: + * - Rostislav Lisový + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_emac.c + * + * Abstract: + * Test command for Ethernet PHY + * + */ #include "commands/cmd_emac.h" #include "rpp/rpp.h" #include "sys/sys.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_fray.c b/rpp/lib/cmdproc/src/commands/cmd_fray.c index 39aa906..d1d0d7a 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_fray.c +++ b/rpp/lib/cmdproc/src/commands/cmd_fray.c @@ -1,9 +1,27 @@ /* - * cmd_fray.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_fray.c + * + * Abstract: * Commands for control FlexRay * - Getting status of FlexRay from chips on SPI * - Sending test data on FRAY @@ -17,6 +35,7 @@ * Node B receives short message from frame 1 to buffer 1 and longer message from frame 9 to buffer 9. * Commands are counting number of received messages, number of errors in messages and they print results at the end. * After 100 transmissions both nodes are halted. + * */ #include "commands/cmd_fray.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_hout.c b/rpp/lib/cmdproc/src/commands/cmd_hout.c index ccd05e8..7c772b6 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_hout.c +++ b/rpp/lib/cmdproc/src/commands/cmd_hout.c @@ -1,8 +1,29 @@ /* - * cmd_hout.c + * Copyright (C) 2012-2013 Czech Technical University in Prague + * + * Created on: 28.2.2013 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_hout.c + * + * Abstract: + * This file contains commands for HOUT control. * - * Created on: 28.2.2013 - * Author: Michal Horn */ #include "commands/cmd_hout.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_lin.c b/rpp/lib/cmdproc/src/commands/cmd_lin.c index cfc310b..8bf1be6 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_lin.c +++ b/rpp/lib/cmdproc/src/commands/cmd_lin.c @@ -1,12 +1,32 @@ /* - * cmd_lin.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_lin.c + * + * Abstract: + * This file contains commands for LIN control. * - * Commands for LIN control. */ + #include "rpp/rpp.h" #include "sys/sys.h" #include "hal/hal.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_motor_example.c b/rpp/lib/cmdproc/src/commands/cmd_motor_example.c index a9e3ec5..48e729f 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_motor_example.c +++ b/rpp/lib/cmdproc/src/commands/cmd_motor_example.c @@ -1,13 +1,31 @@ /* - * cmd_motor_example.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 16.5.2013 - * Author: Michal Horn + * Created on: 16.5.2013 * - * Example commands for motor controlling over FlexRay. First board has connected control panel - * with two buttons and variable resistor, second board has DC motor connected to H-bridge. Both - * boards are connected by FlexRay and user can drive motor by the control pannel (speed, direction - * and enabling). + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_pin.c + * + * Abstract: + * Example commands for motor controlling over FlexRay. First board has connected control panel + * with two buttons and variable resistor, second board has DC motor connected to H-bridge. Both + * boards are connected by FlexRay and user can drive motor by the control panel (speed, direction + * and enabling). */ #include "commands/cmd_motor_example.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_pin.c b/rpp/lib/cmdproc/src/commands/cmd_pin.c index 62def07..f641727 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_pin.c +++ b/rpp/lib/cmdproc/src/commands/cmd_pin.c @@ -1,13 +1,31 @@ /* - * cmd_pin.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 * - * Commands for pin controlling - * - Printing list of available pins - * - Setting and getting value to pins - * - Setting and getting pins direction + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_pin.c + * + * Abstract: + * Commands for pin controlling + * - Printing list of available pins + * - Setting and getting value to pins + * - Setting and getting pins direction */ #include "commands/cmd_pin.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_port.c b/rpp/lib/cmdproc/src/commands/cmd_port.c index c7337cd..33ab768 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_port.c +++ b/rpp/lib/cmdproc/src/commands/cmd_port.c @@ -1,12 +1,30 @@ /* - * cmd_port.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 * - * Commands for port controlling - * - Printing list of available ports (not yet available) - * - Setting/getting port value + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_port.c + * + * Abstract: + * Commands for port controlling + * - Printing list of available ports (not yet available) + * - Setting/getting port value* */ #include "commands/cmd_port.h" @@ -79,6 +97,13 @@ cmd_des_t const cmd_des_port_val={ cmd_do_port_val, (void *)&cmd_list_port }; +/** Command descriptor for port list printout */ +cmd_des_t const cmd_des_port_list={ + 0, 0, + "portlist","Print list of port names", + cmd_do_port_list, (void *)&cmd_list_port +}; + /** List of commands for port, defined as external */ cmd_des_t const *cmd_list_port[]={ &cmd_des_port_val, diff --git a/rpp/lib/cmdproc/src/commands/cmd_spi.c b/rpp/lib/cmdproc/src/commands/cmd_spi.c index e472242..22dba13 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_spi.c +++ b/rpp/lib/cmdproc/src/commands/cmd_spi.c @@ -1,11 +1,30 @@ /* - * cmd_spi.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_spi.c + * + * Abstract: + * Command for processing data from SPI and + * lowlevel command for sending data on SPI * - * Command for processing data from SPI and - * lowlevel command for sending data on SPI */ #include "commands/cmd_spi.h" diff --git a/rpp/lib/cmdproc/src/commands/cmd_vbat.c b/rpp/lib/cmdproc/src/commands/cmd_vbat.c index 3b31b07..ea77992 100644 --- a/rpp/lib/cmdproc/src/commands/cmd_vbat.c +++ b/rpp/lib/cmdproc/src/commands/cmd_vbat.c @@ -1,11 +1,30 @@ /* - * cmd_vbat.c + * Copyright (C) 2012-2013 Czech Technical University in Prague * - * Created on: 28.2.2013 - * Author: Michal Horn + * Created on: 28.2.2013 + * + * Authors: + * - Michal Horn + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * File : cmd_vbat.c + * + * Abstract: + * Commands for VBAT control + * - Power VBAT1 on and off using PWM to charge capacitors * - * Commands for VBAT control - * - Power VBAT1 on and off using PWM to charge capacitors */ #include "rpp/rpp.h"