Rajath Ravi / Mbed 2 deprecated ravi_blinkycode

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers led1.c Source File

led1.c

00001 #include "led1.h"
00002 #include "gpio.h"
00003 #include "main_Lec9.h"
00004 #include "stm32f4xx_rcc_mort.h"
00005 #include "hardware_timer3.h"
00006 
00007 
00008 //LECTURE 9 PROBLEM 1
00009 //void init_LED1(void)
00010 //{
00011 //    InitPortBPin0asOutput();   
00012 //}
00013 //
00014 //void toggle_LED1(void)
00015 //{
00016 //    toggleGPIOB0();
00017 //}
00018 
00019 //Lecture 10 Problem 1 - BEGIN
00020 
00021 void init_LED1(void)
00022 {
00023     InitGPIOBPin0asOutputCompare();   
00024 }
00025 
00026 void toggle_LED1(void)
00027 {
00028     toggleGPIOB0();
00029 }
00030 
00031 //Lecture 10 Problem 1 - END
00032 
00033 //Lecture 10 Problem 2 - BEGIN
00034 
00035 void init_GPIOCPort6AsInputCompare(void)
00036 {
00037     InitGPIOCPin6asInputCapture();
00038     TMR3CH1GPIOCPin6asInputCapture();
00039 }
00040 
00041 //Lecture 10 Problem 2 - END
00042 
00043