CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
led.h File Reference
#include <stdbool.h>
#include <misc.h>
#include <stm32f10x.h>
#include <stm32f10x_gpio.h>
#include <stm32f10x_rcc.h>
Include dependency graph for led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  LedContext

Enumerations

enum  LedId { LED0 = 0, LED1 = 1 }

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)
void SysTick_Delay (unsigned long ms)
void SysTick_Handler (void)
 This function handles SysTick Handler.

Variables

struct LedContext led_context []

Enumeration Type Documentation

enum LedId
Enumerator:
LED0 
LED1 

Definition at line 41 of file led.h.

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:

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:

Variable Documentation

struct LedContext led_context[]
Initial value:
{
{ .pin = GPIO_Pin_9,
.port = GPIOC,
.clock = RCC_APB2Periph_GPIOC },
{ .pin = GPIO_Pin_8,
.port = GPIOC,
.clock = RCC_APB2Periph_GPIOC },
}

Definition at line 52 of file led.h.

Referenced by Led_Disable(), Led_Enable(), and Led_Init().