[modules] gps_ubx_ucenter: USB support

closes #569
This commit is contained in:
Ben Laurie
2013-10-26 18:45:12 +01:00
committed by Felix Ruess
parent 3fe72e28e3
commit 5f3b16bafa
+6 -5
View File
@@ -27,7 +27,6 @@
* *
*/ */
#include "gps_ubx_ucenter.h" #include "gps_ubx_ucenter.h"
////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////
@@ -295,6 +294,9 @@ static inline void gps_ubx_ucenter_config_port(void)
#if GPS_PORT_ID == GPS_PORT_UART1 || GPS_PORT_ID == GPS_PORT_UART2 #if GPS_PORT_ID == GPS_PORT_UART1 || GPS_PORT_ID == GPS_PORT_UART2
UbxSend_CFG_PRT(GPS_PORT_ID, 0x0, 0x0, 0x000008D0, 38400, UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0); UbxSend_CFG_PRT(GPS_PORT_ID, 0x0, 0x0, 0x000008D0, 38400, UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0);
#endif #endif
#if GPS_PORT_ID == GPS_PORT_USB
UbxSend_CFG_PRT(GPS_PORT_ID, 0x0, 0x0, 0x0, 0, UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0);
#endif
} }
#define GPS_SBAS_ENABLED 0x01 #define GPS_SBAS_ENABLED 0x01
@@ -319,6 +321,9 @@ static inline void gps_ubx_ucenter_enable_msg(uint8_t class, uint8_t id, uint8_t
#if GPS_PORT_ID == GPS_PORT_UART2 #if GPS_PORT_ID == GPS_PORT_UART2
UbxSend_CFG_MSG(class, id, 0, 0, rate, 0); UbxSend_CFG_MSG(class, id, 0, 0, rate, 0);
#endif #endif
#if GPS_PORT_ID == GPS_PORT_USB
UbxSend_CFG_MSG(class, id, 0, 0, 0, rate);
#endif
#if GPS_PORT_ID == GPS_PORT_DDC #if GPS_PORT_ID == GPS_PORT_DDC
UbxSend_CFG_MSG(class, id, rate, 0, 0, 0); UbxSend_CFG_MSG(class, id, rate, 0, 0, 0);
#endif #endif
@@ -419,7 +424,3 @@ static bool_t gps_ubx_ucenter_configure(uint8_t nr)
} }
return TRUE; // Continue, except for the last case return TRUE; // Continue, except for the last case
} }