Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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