led.c File Reference

File containing the LED functions. More...

#include <__cross_studio_io.h>
#include <msp430x16x.h>
#include "main.h"
#include "led.h"
Include dependency graph for led.c:

Functions

void initLED (void)
 Init LED (P1.0 -> P1.4) More...
 
void toggleLED (int n, unsigned int state, unsigned int duration)
 Toogle the state of the choosen LED for a choosen time. More...
 

Detailed Description

File containing the LED functions.

Author
Gaƫl Foppolo (gaelfoppolo)

Function Documentation

void initLED ( void  )

Init LED (P1.0 -> P1.4)

All ready to use and state cleared

Here is the caller graph for this function:

void toggleLED ( int  n,
unsigned int  state,
unsigned int  duration 
)

Toogle the state of the choosen LED for a choosen time.

duration = 0 -> stay in the state choosen

Parameters
nThe LED to toogle
stateThe new state
durationThe time to toogle the state of the LED

Here is the call graph for this function: