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.
Dependents: UAVCAN UAVCAN_Subscriber
libuavcan_drivers/lpc11c24/driver/src/internal.hpp
- Committer:
- RuslanUrya
- Date:
- 2018-04-14
- Revision:
- 0:dfe6edabb8ec
File content as of revision 0:dfe6edabb8ec:
/* * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> */ #pragma once #include <cstdint> #include <chip.h> /* * Compiler version check */ #ifdef __GNUC__ # if (__GNUC__ * 10 + __GNUC_MINOR__) < 49 # error "Use GCC 4.9 or newer" # endif #endif namespace uavcan_lpc11c24 { /** * Locks UAVCAN driver interrupts. * TODO: priority. */ struct CriticalSectionLocker { CriticalSectionLocker() { __disable_irq(); } ~CriticalSectionLocker() { __enable_irq(); } }; /** * Internal for the driver */ namespace clock { std::uint64_t getUtcUSecFromCanInterrupt(); } }