-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/development'
# Conflicts: # CMakeLists.txt
- Loading branch information
1 parent
4277657
commit d7f9d1a
Showing
165 changed files
with
757 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/****************************************************************************** | ||
The MIT License(MIT) | ||
Embedded Template Library. | ||
https://github.com/ETLCPP/etl | ||
https://www.etlcpp.com | ||
Copyright(c) 2017 jwellbelove | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files(the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions : | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
******************************************************************************/ | ||
|
||
#ifndef __ETL_ATOMIC__ | ||
#define __ETL_ATOMIC__ | ||
|
||
#include "platform.h" | ||
|
||
#if ETL_ATOMIC_SUPPORTED == 1 | ||
#include <atomic> | ||
|
||
namespace etl | ||
{ | ||
typedef std::atomic<uint32_t> atomic_uint32_t; | ||
} | ||
#define ETL_CPP11_ATOMIC_AVAILABLE 1 | ||
#elif defined(ETL_COMPILER_ARM) | ||
#include "atomic/atomic_arm.h" | ||
#define ETL_ETL_ATOMIC_AVAILABLE 1 | ||
#elif defined(ETL_COMPILER_GCC) | ||
#include "atomic/atomic_gcc.h" | ||
#define ETL_ATOMIC_AVAILABLE 1 | ||
#elif defined(ETL_COMPILER_MSVC) | ||
#include "atomic/atomic_windows.h" | ||
#define ETL_ATOMIC_AVAILABLE 1 | ||
#else | ||
#warning NO ATOMIC SUPPORT DEFINED! | ||
#define ETL_ATOMIC_AVAILABLE 0 | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
#include "platform.h" | ||
|
||
#include "atomic.h" | ||
|
||
struct spsc_queue_implementation | ||
{ | ||
enum | ||
{ | ||
UNKNOWN, | ||
STD_ATOMIC, | ||
ETL_ATOMIC, | ||
CMSIS_RTOS2, | ||
FREERTOS, | ||
GCC, | ||
WIN32 | ||
}; | ||
}; | ||
|
||
template <typename T, const size_t IMPLEMENTATION = spsc_queue_implementation::UNKNOWN> | ||
class ispsc_queue; | ||
|
||
template <typename T, const size_t SIZE, const size_t IMPLEMENTATION = spsc_queue_implementation::UNKNOWN> | ||
class spsc_queue : public ispsc_queue; | ||
|
||
#if ETL_ATOMIC_AVAILABLE | ||
template <typename T> | ||
class ispsc_queue<T, spsc_queue_implementation::STD_ATOMIC> | ||
{ | ||
|
||
}; | ||
|
||
template <typename T, const size_t SIZE> | ||
class spsc_queue<T, SIZE, spsc_queue_implementation::STD_ATOMIC> | ||
: public ispsc_queue<T, spsc_queue_implementation::STD_ATOMIC> | ||
{ | ||
|
||
}; | ||
#endif | ||
|
||
#if ETL_OPERATING_SYSTEM == ETL_CMSIS_RTOS2 | ||
template <typename T, const size_t SIZE> | ||
class spsc_queue<T, SIZE, spsc_queue_implementation::CMSIS_RTOS2> | ||
: public ispsc_queue<T, spsc_queue_implementation::CMSIS_RTOS2> | ||
{ | ||
|
||
}; | ||
#endif | ||
|
||
#if ETL_OPERATING_SYSTEM == ETL_FREERTOS | ||
template <typename T, const size_t SIZE> | ||
class spsc_queue<T, SIZE, spsc_queue_implementation::FREERTOS> | ||
: public ispsc_queue<T, spsc_queue_implementation::FREERTOS> | ||
{ | ||
|
||
}; | ||
#endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
///\file | ||
|
||
/****************************************************************************** | ||
The MIT License(MIT) | ||
Embedded Template Library. | ||
https://github.com/ETLCPP/etl | ||
https://www.etlcpp.com | ||
Copyright(c) 2017 jwellbelove, scott-eddy | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files(the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions : | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
******************************************************************************/ | ||
#ifndef __ETL_PROFILE_H__ | ||
#define __ETL_PROFILE_H__ | ||
#ifdef PROFILE_MSVC | ||
#include "msvc_x86.h" | ||
#elif PROFILE_GCC_GENERIC | ||
#include "gcc_generic.h" | ||
#elif PROFILE_GCC_LINUX_X86 | ||
#include "gcc_linux_x86.h" | ||
#elif PROFILE_GCC_WINDOWS_X86 | ||
#include "gcc_windows_x86.h" | ||
#elif PROFILE_ARM_V5_GENERIC | ||
#include "armv5.h" | ||
#elif PROFILE_ARM_V6_GENERIC | ||
#include "armv6.h" | ||
#elif PROFILE_ARDUINO | ||
#include "arduino_arm.h" | ||
#elif PROFILE_TICC | ||
#include "ticc.h" | ||
#elif PROFILE_CPP03_GENERIC | ||
#include "cpp03.h" | ||
#elif PROFILE_CPP11_GENERIC | ||
#include "cpp11.h" | ||
#elif PROFILE_CPP14_GENERIC | ||
#include "cpp14.h" | ||
#elif PROFILE_CUSTOM | ||
#include "custom_profile.h" | ||
#else | ||
#error Must provide a profile header file when buiding ETL. See https://www.etlcpp.com/setup.html | ||
#endif | ||
|
||
#endif // __ETL_PROFILE_H_ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.