1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +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,20 @@
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _PICO_INT64_OPS_H
#define _PICO_INT64_OPS_H
#include "pico/types.h"
/** \file int64_ops.h
* \defgroup pico_int64_ops pico_int64_ops
*
* \brief Optimized replacement implementations of the compiler built-in 64 bit multiplication
*
* This library does not provide any additional functions
*/
#endif

View file

@ -0,0 +1,46 @@
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "pico/asm_helper.S"
pico_default_asm_setup
.macro int64_section name
#if PICO_INT64_OPS_IN_RAM
.section RAM_SECTION_NAME(\name), "ax"
#else
.section SECTION_NAME(\name), "ax"
#endif
.endm
int64_section __aeabi_lmul
wrapper_func __aeabi_lmul
muls r1, r2
muls r3, r0
adds r1, r3
mov r12, r1
lsrs r1, r2, #16
uxth r3, r0
muls r3, r1
push {r4}
lsrs r4, r0, #16
muls r1, r4
uxth r2, r2
uxth r0, r0
muls r0, r2
muls r2, r4
lsls r4, r3, #16
lsrs r3, #16
adds r0, r4
pop {r4}
adcs r1, r3
lsls r3, r2, #16
lsrs r2, #16
adds r0, r3
adcs r1, r2
add r1, r12
bx lr