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
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
Generated on Sat Oct 21 2023 04:38:55 by
1.7.2