Study Notes
for
redesigned
2012-10-30
versions:V-0.1
All
main.c is as follows, with detailed comments. You can basically use it after understanding the following examples and instructions:
//A high preemption level will interrupt other interrupts and give priority to execution, while a high response level will give priority to execution after other interrupts are completed.
//EXTI: external interrupt/event controller
//EXTI controller can generate up to 19 software events/interrupt requests
//Configure 19 lines as interrupt sources, 19 lines as event sources, and 19 lines as software interrupt/event lines. For details, see "STM32F103xxx User Manual"
//P135
//This file mainly performs various initialization configurations, including GPIO configuration, EXTI configuration, system clock configuration, etc.
//The interrupt service routine is in the stm32f10x_it.c file, which provides templates for all exception handlers and peripheral interrupt service routines. For details, see this file
#include
EXTI_InitTypeDef
ErrorStatus
void
void
void
int
{
#ifdef
#endif
[page]
}
void
{
//Reset RCC external device registers to default values
//Configure ADC clock =
}
void
{
}
[page]
void
{
#ifdef
#else
#endif
}
#ifdef
void
{
}
#endif
The interrupt service function in the stm32f10x_it.c file is as follows:
void
{
//This function can operate the specified port bit.
//This parameter must take one of the values of the enumeration type BitAction, which can be Bit_RESET: clear the data port bit and Bit_SET: set the data port bit
//GPIO_ReadOutputDataBit() function reads the output of the specified IO port pin, the parameters specify the port and bit
}
Previous article:ucos-ii study notes-creation of the first multitasking program
Next article:STM32 study notes - use of system timer SysTick
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- BlueNRG-x Documentation - Installing the chip pack
- [Silicon Labs Development Kit Review] +PG22 Development Board-PWM Case Test
- Ultra-Wideband (UWB) For Dummies
- High-performance C6000 DSP architecture
- MSP430F149 cc1101 wireless transceiver source program
- A fun animation
- Inductor coil parameters question
- What are the functions of these RF chips?
- EEWORLD University ---- Practical production of IoT projects: drones
- Invite you to watch the WeChat live broadcast: Outdoor lighting intelligent interconnection solutions allow TE to connect light and smart future