Update revision to use TI's mqtt and Freertos.
Dependencies: mbed client server
Fork of cc3100_Test_mqtt_CM3 by
Diff: mqtt_V1/platform/cc3200_platform.cpp
- Revision:
- 3:a8c249046181
diff -r 241bff9fe406 -r a8c249046181 mqtt_V1/platform/cc3200_platform.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mqtt_V1/platform/cc3200_platform.cpp Thu Sep 03 14:02:37 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