CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
led.c File Reference
#include "led.h"
Include dependency graph for led.c:

Go to the source code of this file.

Functions

void assert_param (bool value)
 Copyright (c) 2012, Roy van Dam roy@v.nosp@m.anda.nosp@m.m-inn.nosp@m.ovat.nosp@m.ions..nosp@m.com All rights reserved.
void Led_Disable (LedId led)
void Led_Enable (LedId led)
void Led_Init (LedId led)
int main (void)
void SysTick_Delay (unsigned long ms)
void SysTick_Handler (void)

Variables

volatile unsigned long system_tick_count = 0

Function Documentation

void assert_param ( bool  value)

Copyright (c) 2012, Roy van Dam roy@v.nosp@m.anda.nosp@m.m-inn.nosp@m.ovat.nosp@m.ions..nosp@m.com All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 28 of file led.c.

void Led_Disable ( LedId  led)

Definition at line 66 of file led.c.

References led_context, LedContext::pin, and LedContext::port.

Referenced by main().

Here is the caller graph for this function:

void Led_Enable ( LedId  led)

Definition at line 63 of file led.c.

References led_context, LedContext::pin, and LedContext::port.

Referenced by main().

Here is the caller graph for this function:

void Led_Init ( LedId  led)

Definition at line 51 of file led.c.

References led_context, and LedContext::pin.

Referenced by main().

Here is the caller graph for this function:

int main ( void  )

Definition at line 70 of file led.c.

References LED0, LED1, Led_Disable(), Led_Enable(), Led_Init(), and SysTick_Delay().

Here is the call graph for this function:

void SysTick_Delay ( unsigned long  ms)

Definition at line 40 of file led.c.

References system_tick_count.

Referenced by main().

Here is the caller graph for this function:

void SysTick_Handler ( void  )

Definition at line 36 of file led.c.

References system_tick_count.

Variable Documentation

volatile unsigned long system_tick_count = 0

Definition at line 34 of file led.c.

Referenced by SysTick_Delay(), and SysTick_Handler().