Skip to content

Commit

Permalink
Merge branch 'master' into 20240223_fix_compile_warnings_strncpy
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Feb 27, 2024
2 parents 60e043e + c655ade commit ad85a97
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 440 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uin
count32b = (len + 3) / 4;
for (i = 0; i < count32b; i++, src += 4)
{
USBx_DFIFO(ch_ep_num) = *((__packed uint32_t *)src);
USBx_DFIFO((uint32_t)ch_ep_num) = *((uint32_t *)src);
}
}
return HAL_OK;
Expand All @@ -843,7 +843,7 @@ void *USB_ReadPacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len)

for ( i = 0; i < count32b; i++, dest += 4 )
{
*(__packed uint32_t *)dest = USBx_DFIFO(0);
*(uint32_t *)dest = USBx_DFIFO(0);

}
return ((void *)dest);
Expand Down
5 changes: 4 additions & 1 deletion src/main/drivers/beesign.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ static uint8_t beesignCRC(const beesign_frame_t *pPackage) {
return crc;
}

// compiler reports unused
/*
static uint8_t beesignChkID(uint8_t id) {
UNUSED(id);
return BEESIGN_OK;
}
*/

uint8_t beesignReceive(uint8_t **pRcvFrame) {
if (!receiveFrameValid) {
Expand Down Expand Up @@ -608,7 +611,7 @@ bool checkBeesignSerialPort(void) {

void beesignUpdate(timeUs_t currentTimeUs) {
UNUSED(currentTimeUs);
if (checkBeesignSerialPort) {
if (checkBeesignSerialPort()) {
#ifdef USE_OSD_BEESIGN
static uint32_t beesignTaskCounter = 0;
static uint32_t beesignSendNextCounterPoint = 0;
Expand Down
6 changes: 4 additions & 2 deletions src/main/msc/usbd_msc_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@
#define USBD_MANUFACTURER_STRING "STMicroelectronics"
#define USBD_PRODUCT_HS_STRING "Mass Storage in HS Mode"
#define USBD_PRODUCT_FS_STRING "Mass Storage in FS Mode"
#define USBD_CONFIGURATION_HS_STRING "MSC Config"
#define USBD_INTERFACE_HS_STRING "MSC Interface"
#define USBD_CONFIGURATION_HS_STRING "MSC Config in HS Mode"
#define USBD_INTERFACE_HS_STRING "MSC Interface in HS Mode"
#define USBD_CONFIGURATION_FS_STRING "MSC Config in FS Mode"
#define USBD_INTERFACE_FS_STRING "MSC Interface in FS Mode"
/**
* @}
*/
Expand Down
1 change: 1 addition & 0 deletions src/main/rx/crsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ typedef struct crsfPayloadLinkstatistics_s {
} crsfLinkStatistics_t;

static void handleCrsfLinkStatisticsFrame(const crsfLinkStatistics_t* statsPtr, timeUs_t currentTimeUs) {
UNUSED(currentTimeUs);
const crsfLinkStatistics_t stats = *statsPtr;
CRSFsetLQ(stats.uplink_Link_quality);
CRSFsetRFMode(stats.rf_Mode);
Expand Down
12 changes: 0 additions & 12 deletions src/main/target/CRASHTESTF7/TALONF7V2.md

This file was deleted.

36 changes: 0 additions & 36 deletions src/main/target/CRASHTESTF7/config.c

This file was deleted.

44 changes: 0 additions & 44 deletions src/main/target/CRASHTESTF7/target.c

This file was deleted.

153 changes: 0 additions & 153 deletions src/main/target/CRASHTESTF7/target.h

This file was deleted.

8 changes: 0 additions & 8 deletions src/main/target/CRASHTESTF7/target.mk

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/target/FLWO_FLYWOOF411FR/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,5 @@
#define TARGET_IO_PORTC 0xffff
#define TARGET_IO_PORTD (BIT(2))

#define USABLE_TIMER_CHANNEL_COUNT 7
#define USABLE_TIMER_CHANNEL_COUNT 10
#define USED_TIMERS ( TIM_N(1)|TIM_N(2)|TIM_N(3)|TIM_N(4) )
Loading

0 comments on commit ad85a97

Please sign in to comment.