Rajath Ravi / Mbed 2 deprecated ravi_blinkycode

Dependencies:   mbed

led1.c

Committer:
rajathr
Date:
2021-10-23
Revision:
0:34ee385f4d2d

File content as of revision 0:34ee385f4d2d:

#include "led1.h"
#include "gpio.h"
#include "main_Lec9.h"
#include "stm32f4xx_rcc_mort.h"
#include "hardware_timer3.h"


//LECTURE 9 PROBLEM 1
//void init_LED1(void)
//{
//    InitPortBPin0asOutput();   
//}
//
//void toggle_LED1(void)
//{
//    toggleGPIOB0();
//}

//Lecture 10 Problem 1 - BEGIN

void init_LED1(void)
{
    InitGPIOBPin0asOutputCompare();   
}

void toggle_LED1(void)
{
    toggleGPIOB0();
}

//Lecture 10 Problem 1 - END

//Lecture 10 Problem 2 - BEGIN

void init_GPIOCPort6AsInputCompare(void)
{
    InitGPIOCPin6asInputCapture();
    TMR3CH1GPIOCPin6asInputCapture();
}

//Lecture 10 Problem 2 - END