1
0
Fork 0
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:
J Blackman 2024-10-23 10:02:48 +11:00 committed by GitHub
parent 462cb05930
commit 2dd6f95aad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
576 changed files with 435012 additions and 0 deletions

View file

@ -0,0 +1,4 @@
/**
* \defgroup pico_cxx_options pico_cxx_options
* \brief non-code library controlling C++ related compile options
*/

View 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