1
0
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:
Corvus Corax 2012-03-23 08:42:03 +01:00
parent e16a42b672
commit 0d23e78762

View File

@ -45,7 +45,11 @@ struct pios_udp_cfg {
typedef struct {
const struct pios_udp_cfg * cfg;
#if defined(PIOS_INCLUDE_FREERTOS)
xTaskHandle rxThread;
#else
pthread_t rxThread;
#endif
int socket;
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;
#endif /* PIOS_UDP_PRIV_H */