TI's mqtt.
Diff: platform/cc3200_platform.cpp
- Revision:
- 0:698866e331b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/platform/cc3200_platform.cpp Sat Jun 06 13:29:50 2015 +0000 @@ -0,0 +1,42 @@ +/****************************************************************************** + * + * Copyright (C) 2014 Texas Instruments Incorporated + * + * All rights reserved. Property of Texas Instruments Incorporated. + * Restricted rights to use, duplicate or disclose this code are + * granted through contract. + * + * The program may not be used without the written permission of + * Texas Instruments Incorporated or against the terms and conditions + * stipulated in the agreement under which this program has been supplied, + * and under no circumstances can it be used with non-TI connectivity device. + * + ******************************************************************************/ + +#include "cc3200_platform.h" + + +Timer t; + +namespace mbed_mqtt { + +void platform_timer_init() +{ + t.start(); +} + +uint32_t platform_get_time_in_secs() +{ + uint32_t Secs = 0; +// uint16_t Msec = 0; + + t.stop(); + Secs = t.read(); +// Msec = t.read_ms(); + t.reset(); + t.start(); + + return (Secs); +} + +}//namespace mbed_mqtt