mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
PICO: Adding RP2350A MCU (#14437)
- allow for provision of libc - correction for unused function in msp
This commit is contained in:
parent
a03ff788ae
commit
4769c2fcdf
4 changed files with 10 additions and 2 deletions
|
@ -63,6 +63,7 @@ typedef enum {
|
|||
MCU_TYPE_APM32F405,
|
||||
MCU_TYPE_APM32F407,
|
||||
MCU_TYPE_AT32F435M,
|
||||
MCU_TYPE_RP2350A,
|
||||
MCU_TYPE_RP2350B,
|
||||
MCU_TYPE_COUNT,
|
||||
MCU_TYPE_UNKNOWN = 255,
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#define _STRTO_ENDPTR 1
|
||||
|
||||
#if PLATFORM_NO_LIBC
|
||||
static unsigned long _strto_l(const char * str, char ** endptr, int base, int sflag)
|
||||
{
|
||||
unsigned long number, cutoff;
|
||||
|
@ -127,6 +128,7 @@ unsigned long strtoul(const char * str, char ** endptr, int base)
|
|||
{
|
||||
return _strto_l(str, endptr, base, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
int atoi(const char *str)
|
||||
{
|
||||
|
|
|
@ -289,6 +289,9 @@ static void mspSerialPassthroughFn(serialPort_t *serialPort)
|
|||
|
||||
static void mspFcSetPassthroughCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessFnPtr *mspPostProcessFn)
|
||||
{
|
||||
#ifndef USE_SERIAL_PASSTHROUGH
|
||||
UNUSED(mspPostProcessFn);
|
||||
#endif
|
||||
const unsigned int dataSize = sbufBytesRemaining(src);
|
||||
if (dataSize == 0) {
|
||||
// Legacy format
|
||||
|
@ -311,8 +314,6 @@ static void mspFcSetPassthroughCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessF
|
|||
sbufWriteU8(dst, 0);
|
||||
}
|
||||
break;
|
||||
#else
|
||||
UNUSED(mspPostProcessFn);
|
||||
#endif
|
||||
#ifdef USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
case MSP_PASSTHROUGH_ESC_4WAY:
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
|
||||
*/
|
||||
|
||||
#ifndef PLATFORM_NO_LIBC
|
||||
#define PLATFORM_NO_LIBC 1
|
||||
#endif
|
||||
|
||||
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
||||
#define DEFAULT_AUX_CHANNEL_COUNT MAX_AUX_CHANNEL_COUNT
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue