Choco OS  V.0.16.9.0
Join to the chocolate world
oc_led.c File Reference

The file with interface source for the LED driver. More...

#include <oc_led.h>
#include <oc_gpio.h>
#include <oc_pwm.h>
#include <oc_module.h>
#include <oc_stdlib.h>
#include <oc_string.h>
#include <oc_stdio.h>
#include <oc_driver.h>

Go to the source code of this file.

Data Structures

struct  Context_t
 stores ETH context More...
 

Functions

oC_ErrorCode_t oC_LED_Configure (const oC_LED_Config_t *Config, oC_LED_Context_t *outContext)
 configures LED pins to work More...
 
oC_ErrorCode_t oC_LED_Unconfigure (const oC_LED_Config_t *Config, oC_LED_Context_t *outContext)
 Restores default state on pins. More...
 

Detailed Description


Author
Patryk Kubiak
Note
Copyright (C) 2015 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om

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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file oc_led.c.

Function Documentation

oC_ErrorCode_t oC_LED_Configure ( const oC_LED_Config_t Config,
oC_LED_Context_t outContext 
)

The function is for configuration of the driver. Look at the oC_LED_Config_t structure description and fields list to get more info.

Parameters
ConfigPointer to the configuration structure
outContextDestination for the driver context structure
Returns
code of error

Definition at line 126 of file oc_led.c.

oC_ErrorCode_t oC_LED_Unconfigure ( const oC_LED_Config_t Config,
oC_LED_Context_t outContext 
)
Parameters
ConfigPointer to the configuration
outContextDestination for the context structure
Returns
code of error

Definition at line 172 of file oc_led.c.