The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
160:5571c4ff569f
Parent:
156:ff21514d8981
--- a/TARGET_EFM32HG_STK3400/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cryotimer.h	Thu Nov 23 11:44:04 2017 +0000
+++ b/TARGET_EFM32HG_STK3400/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cryotimer.h	Wed Jan 17 16:13:02 2018 +0000
@@ -1,9 +1,9 @@
 /***************************************************************************//**
  * @file em_cryotimer.h
  * @brief Ultra Low Energy Timer/Counter (CRYOTIMER) peripheral API
- * @version 5.1.2
+ * @version 5.3.3
  *******************************************************************************
- * @section License
+ * # License
  * <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
  *******************************************************************************
  *
@@ -116,8 +116,7 @@
  ******************************************************************************/
 
 /** Prescaler selection. */
-typedef enum
-{
+typedef enum {
   cryotimerPresc_1     = _CRYOTIMER_CTRL_PRESC_DIV1,      /**< Divide clock by 1. */
   cryotimerPresc_2     = _CRYOTIMER_CTRL_PRESC_DIV2,      /**< Divide clock by 2. */
   cryotimerPresc_4     = _CRYOTIMER_CTRL_PRESC_DIV4,      /**< Divide clock by 4. */
@@ -129,16 +128,14 @@
 } CRYOTIMER_Presc_TypeDef;
 
 /** Low frequency oscillator selection. */
-typedef enum
-{
+typedef enum {
   cryotimerOscLFRCO   = _CRYOTIMER_CTRL_OSCSEL_LFRCO,  /**< Select Low Frequency RC Oscillator. */
   cryotimerOscLFXO    = _CRYOTIMER_CTRL_OSCSEL_LFXO,   /**< Select Low Frequency Crystal Oscillator. */
   cryotimerOscULFRCO  = _CRYOTIMER_CTRL_OSCSEL_ULFRCO, /**< Select Ultra Low Frequency RC Oscillator. */
 } CRYOTIMER_Osc_TypeDef;
 
 /** Period selection value */
-typedef enum
-{
+typedef enum {
   cryotimerPeriod_1     = 0,    /**< Wakeup event after every Pre-scaled clock cycle. */
   cryotimerPeriod_2     = 1,    /**< Wakeup event after 2 Pre-scaled clock cycles. */
   cryotimerPeriod_4     = 2,    /**< Wakeup event after 4 Pre-scaled clock cycles. */
@@ -179,8 +176,7 @@
  ******************************************************************************/
 
 /** CRYOTIMER initialization structure. */
-typedef struct
-{
+typedef struct {
   /** Enable/disable counting when initialization is completed. */
   bool                      enable;
 
@@ -205,15 +201,15 @@
  ******************************************************************************/
 
 /** Default CRYOTIMER init structure. */
-#define CRYOTIMER_INIT_DEFAULT                                                   \
-{                                                                                \
-  true,                  /* Start counting when init done.                    */ \
-  false,                 /* Disable CRYOTIMER during debug halt.              */ \
-  false,                 /* Disable EM4 wakeup.                               */ \
-  cryotimerOscLFRCO,     /* Select Low Frequency RC Oscillator.               */ \
-  cryotimerPresc_1,      /* LF Oscillator frequency undivided.                */ \
-  cryotimerPeriod_4096m, /* Wakeup event after 4096M pre-scaled clock cycles. */ \
-}
+#define CRYOTIMER_INIT_DEFAULT                                                     \
+  {                                                                                \
+    true,                  /* Start counting when init done.                    */ \
+    false,                 /* Disable CRYOTIMER during debug halt.              */ \
+    false,                 /* Disable EM4 wakeup.                               */ \
+    cryotimerOscLFRCO,     /* Select Low Frequency RC Oscillator.               */ \
+    cryotimerPresc_1,      /* LF Oscillator frequency undivided.                */ \
+    cryotimerPeriod_4096m, /* Wakeup event after 4096M pre-scaled clock cycles. */ \
+  }
 
 /*******************************************************************************
  *****************************   PROTOTYPES   **********************************