pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Revision:
10:02e481a80843
Parent:
8:db2a38920cd6
--- a/util/MCUResetReason.hpp	Fri Mar 24 11:03:28 2017 +0000
+++ b/util/MCUResetReason.hpp	Wed Mar 29 00:42:12 2017 +0000
@@ -1,10 +1,33 @@
 #ifndef _MCU_RESET_REASON_HPP_
-#define #ifndef _MCU_RESET_REASON_HPP_
+#define _MCU_RESET_REASON_HPP_
+
+#include "mbed.h"
 
-class MCUResetReason.hpp
+class MCUResetReason
 {
+    MCUResetReason();
+    uint8_t SRS[2] ;
 public:
-    
+    static MCUResetReason* ref();
+    enum RESET_REASON
+    {
+        POWER_ON,
+        EXTERNAL_PIN,
+        WATCHDOG,
+        LOSS_OF_LOCK,
+        LOSS_OF_CLOCK,
+        LOW_VOLTAGE_DETECT,
+        LOW_LEAKAGE_WAKEUP,
+        STOP_MODE_ACK_ERROR,
+        MDM_AP_SYSTEM_RESET_REQUEST,
+        SOFTWARE,
+        CORE_LOCKUP,
+        SIZE
+    };
+    static const char *str_reset_reason[SIZE];
+    RESET_REASON getResetReason(void);
+    const char *getResetReasonStr();
+    void clearFlag();
 };
 
 #endif //#ifndef _MCU_RESET_REASON_HPP_
\ No newline at end of file