mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
PiOS.posix: added missing header definition to use FreeRTOS tasks in udp driver if applicable
This commit is contained in:
parent
e16a42b672
commit
0d23e78762
@ -45,7 +45,11 @@ struct pios_udp_cfg {
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const struct pios_udp_cfg * cfg;
|
const struct pios_udp_cfg * cfg;
|
||||||
|
#if defined(PIOS_INCLUDE_FREERTOS)
|
||||||
|
xTaskHandle rxThread;
|
||||||
|
#else
|
||||||
pthread_t rxThread;
|
pthread_t rxThread;
|
||||||
|
#endif
|
||||||
|
|
||||||
int socket;
|
int socket;
|
||||||
struct sockaddr_in server;
|
struct sockaddr_in server;
|
||||||
@ -68,5 +72,4 @@ extern int32_t PIOS_UDP_Init(uint32_t * udp_id, const struct pios_udp_cfg * cfg)
|
|||||||
|
|
||||||
extern const struct pios_com_driver pios_udp_com_driver;
|
extern const struct pios_com_driver pios_udp_com_driver;
|
||||||
|
|
||||||
|
|
||||||
#endif /* PIOS_UDP_PRIV_H */
|
#endif /* PIOS_UDP_PRIV_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user