mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Adding RP2350 SDK and target framework (#13988)
* Adding RP2350 SDK and target framework * Spacing * Removing board definitions
This commit is contained in:
parent
462cb05930
commit
2dd6f95aad
576 changed files with 435012 additions and 0 deletions
4
lib/main/pico-sdk/rp2_common/pico_cxx_options/doc.h
Normal file
4
lib/main/pico-sdk/rp2_common/pico_cxx_options/doc.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* \defgroup pico_cxx_options pico_cxx_options
|
||||
* \brief non-code library controlling C++ related compile options
|
||||
*/
|
36
lib/main/pico-sdk/rp2_common/pico_cxx_options/new_delete.cpp
Normal file
36
lib/main/pico-sdk/rp2_common/pico_cxx_options/new_delete.cpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#if !PICO_CXX_ENABLE_EXCEPTIONS
|
||||
// Override the standard allocators to use regular malloc/free
|
||||
|
||||
#if !PICO_CXX_DISABLE_ALLOCATION_OVERRIDES // Let user override
|
||||
#include <cstdlib>
|
||||
#include "pico.h"
|
||||
|
||||
void *operator new(std::size_t n) {
|
||||
return std::malloc(n);
|
||||
}
|
||||
|
||||
void *operator new[](std::size_t n) {
|
||||
return std::malloc(n);
|
||||
}
|
||||
|
||||
void operator delete(void *p) { std::free(p); }
|
||||
|
||||
void operator delete[](void *p) noexcept { std::free(p); }
|
||||
|
||||
#if __cpp_sized_deallocation
|
||||
|
||||
void operator delete(void *p, __unused std::size_t n) noexcept { std::free(p); }
|
||||
|
||||
void operator delete[](void *p, __unused std::size_t n) noexcept { std::free(p); }
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue