54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/**
|
||
****************************(C) COPYRIGHT 2016 DJI****************************
|
||
* @file ledi.c/h
|
||
* @brief ң<><D2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ң<EFBFBD><D2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SBUS<55><53>Э<EFBFBD>鴫<EFBFBD>䣬<EFBFBD><E4A3AC><EFBFBD><EFBFBD>DMA<4D><41><EFBFBD>䷽ʽ<E4B7BD><CABD>ԼCPU
|
||
* <20><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><C3B4>ڿ<EFBFBD><DABF><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬʱ<CDAC>ṩһЩ<D2BB><D0A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>DMA<4D><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
* <20>ķ<EFBFBD>ʽ<EFBFBD><CABD>֤<EFBFBD>Ȳ<EFBFBD>ε<EFBFBD><CEB5>ȶ<EFBFBD><C8B6>ԡ<EFBFBD>
|
||
* @note
|
||
* @history
|
||
* Version Date Author Modification
|
||
* V1.0.0 Dec-26-2018 RM 1. <20><><EFBFBD>
|
||
*
|
||
@verbatim
|
||
==============================================================================
|
||
|
||
==============================================================================
|
||
@endverbatim
|
||
****************************(C) COPYRIGHT 2016 DJI****************************
|
||
*/
|
||
#ifndef LEDI_H
|
||
#define LEDI_H
|
||
#ifdef __cplusplus
|
||
extern "C"{
|
||
#endif
|
||
|
||
|
||
|
||
#include "usart.h"
|
||
#include <string.h>
|
||
#include <stdlib.h>
|
||
|
||
|
||
|
||
#define SBUS_RX_BUF_NUM 50u
|
||
#define RC_FRAME_LENGTH 25u
|
||
|
||
typedef struct
|
||
{
|
||
float ch[4];
|
||
int16_t sw[8];
|
||
|
||
uint32_t last_heartbeat_tick;
|
||
|
||
} LD_t;
|
||
|
||
extern void remote_control_init(void);
|
||
static void sbus_to_rc(volatile const uint8_t *sbus_buf, LD_t *ld);
|
||
void UART3IdleCallback(void);
|
||
#endif
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|