My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
sw_timer_functions.c File Reference
#include "sw_timer_functions.h"
#include "sw_io.h"
#include <sw_timer.h>
#include <sw_types.h>
#include <sw_debug.h>
#include <task.h>
#include <global.h>
#include "sw_board.h"

Functions

void wake_up_from_sleep (struct timer_event *tevent)
 This function wakes up the task which has called sleep. More...
 
void sw_sleep (u32 secs)
 This function sleeps for given number of seconds. More...
 
void sw_usleep (u32 usecs)
 This function sleeps for given number of micro-seconds. More...
 

Function Documentation

void sw_sleep ( u32  secs)

This function sleeps for given number of seconds.

This function sleeps for the given number of seconds.

Parameters
secsNumber of secs to sleep
void sw_usleep ( u32  usecs)

This function sleeps for given number of micro-seconds.

This function sleeps for the given number of micro seconds.

Parameters
usecsNumber of micro-seconds to sleep
void wake_up_from_sleep ( struct timer_event tevent)

This function wakes up the task which has called sleep.

Parameters
teventThe timer_event structure used for putting this function to sleep