stm32f407 Shutdown Total Interrupt

Source: Internet
Author: User

When we write the program, some of the device timing is not allowed to interrupt interrupt, this time we need to execute a certain program, the first all the interrupts are closed, after the execution, and then open.

Because the version of the library function of stm32f407 is different, so the function of shutting down the total interrupt is not the same, which brings some problems to our developers, so what should we do at this time?

In fact, in the Keil programming environment, there is a Keil dedicated shutdown/Open total interrupt function, which is not found in the Keil, but it can be used, as follows:

__DISABLE_IRQ (); Shutdown Total Interrupt
__ENABLE_IRQ (); Open Total Interrupts

stm32f407 Shutdown Total Interrupt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.