Skip to content

Commit

Permalink
Merge remote-tracking branch 'emuflight/master' into 20240223_fix_com…
Browse files Browse the repository at this point in the history
…pile_warnings_CRSF_unused
  • Loading branch information
nerdCopter committed Feb 27, 2024
2 parents b0f6a0c + e65a7e0 commit db8a43a
Show file tree
Hide file tree
Showing 13 changed files with 18 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
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 db8a43a

Please sign in to comment.