mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-12 19:10:27 +03:00
Commiting to start over
This commit is contained in:
parent
15e2efefba
commit
4c2f222d1e
1 changed files with 8 additions and 4 deletions
|
@ -57,6 +57,10 @@
|
||||||
#include "drivers/nvic.h"
|
#include "drivers/nvic.h"
|
||||||
#include "build/atomic.h"
|
#include "build/atomic.h"
|
||||||
|
|
||||||
|
#ifdef STM32H7A3xx
|
||||||
|
#error "not supposed to be here"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
/* Private define ------------------------------------------------------------*/
|
/* Private define ------------------------------------------------------------*/
|
||||||
#define APP_RX_DATA_SIZE 4096
|
#define APP_RX_DATA_SIZE 4096
|
||||||
|
@ -99,7 +103,7 @@ static int8_t CDC_Itf_DeInit(void);
|
||||||
static int8_t CDC_Itf_Control(uint8_t cmd, uint8_t* pbuf, uint16_t length);
|
static int8_t CDC_Itf_Control(uint8_t cmd, uint8_t* pbuf, uint16_t length);
|
||||||
static int8_t CDC_Itf_Receive(uint8_t* pbuf, uint32_t *Len);
|
static int8_t CDC_Itf_Receive(uint8_t* pbuf, uint32_t *Len);
|
||||||
#if defined(STM32H7)
|
#if defined(STM32H7)
|
||||||
static int8_t CDC_Itf_Transmit(uint8_t *pbuf, uint32_t *Len, uint8_t epnum);
|
static int8_t CDC_Itf_TransmitCpl(uint8_t *pbuf, uint32_t *Len, uint8_t epnum);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void TIM_Config(void);
|
static void TIM_Config(void);
|
||||||
|
@ -112,7 +116,7 @@ USBD_CDC_ItfTypeDef USBD_CDC_fops =
|
||||||
CDC_Itf_Control,
|
CDC_Itf_Control,
|
||||||
CDC_Itf_Receive,
|
CDC_Itf_Receive,
|
||||||
#ifdef STM32H7
|
#ifdef STM32H7
|
||||||
CDC_Itf_Transmit,
|
CDC_Itf_TransmitCpl,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -385,13 +389,13 @@ uint32_t CDC_Receive_BytesAvailable(void)
|
||||||
* @param Len: Number of data received (in bytes)
|
* @param Len: Number of data received (in bytes)
|
||||||
* @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
|
* @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
|
||||||
*/
|
*/
|
||||||
static int8_t CDC_Itf_Transmit(uint8_t *Buf, uint32_t *Len, uint8_t epnum)
|
static int8_t CDC_Itf_TransmitCplt(uint8_t *Buf, uint32_t *Len, uint8_t epnum)
|
||||||
{
|
{
|
||||||
UNUSED(Buf);
|
UNUSED(Buf);
|
||||||
UNUSED(Len);
|
UNUSED(Len);
|
||||||
UNUSED(epnum);
|
UNUSED(epnum);
|
||||||
|
|
||||||
return (0);
|
return USBD_OK;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue