// Copyright (C) 2024 Clyne Sullivan <clyne@bitgloo.com>
//
// Distributed under the GNU GPL v3 or later. You should have received a copy of
// the GNU General Public License along with this program.
// If not, see <https://www.gnu.org/licenses/>.

pub fn interrupt_disable() void {
    asm volatile("cpsid i");
}

pub fn interrupt_enable() void {
    asm volatile("cpsie i");
}