From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/msp430-built-in-functions.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 devdocs/gcc~13/msp430-built-in-functions.html (limited to 'devdocs/gcc~13/msp430-built-in-functions.html') diff --git a/devdocs/gcc~13/msp430-built-in-functions.html b/devdocs/gcc~13/msp430-built-in-functions.html new file mode 100644 index 00000000..b130f221 --- /dev/null +++ b/devdocs/gcc~13/msp430-built-in-functions.html @@ -0,0 +1,8 @@ +

6.60.20 MSP430 Built-in Functions ΒΆ

GCC provides a couple of special builtin functions to aid in the writing of interrupt handlers in C.

__bic_SR_register_on_exit (int mask)
+

This clears the indicated bits in the saved copy of the status register currently residing on the stack. This only works inside interrupt handlers and the changes to the status register will only take affect once the handler returns.

__bis_SR_register_on_exit (int mask)
+

This sets the indicated bits in the saved copy of the status register currently residing on the stack. This only works inside interrupt handlers and the changes to the status register will only take affect once the handler returns.

__delay_cycles (long long cycles)

This inserts an instruction sequence that takes exactly cycles cycles (between 0 and about 17E9) to complete. The inserted sequence may use jumps, loops, or no-ops, and does not interfere with any other instructions. Note that cycles must be a compile-time constant integer - that is, you must pass a number, not a variable that may be optimized to a constant later. The number of cycles delayed by this builtin is exact.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/MSP430-Built-in-Functions.html +

+
-- cgit v1.2.3