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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MCUResetReason.hpp Source File

MCUResetReason.hpp

00001 #ifndef _MCU_RESET_REASON_HPP_
00002 #define _MCU_RESET_REASON_HPP_
00003 
00004 #include "mbed.h"
00005 
00006 class MCUResetReason
00007 {
00008     MCUResetReason();
00009     uint8_t SRS[2] ;
00010 public:
00011     static MCUResetReason* ref();
00012     enum RESET_REASON
00013     {
00014         POWER_ON,
00015         EXTERNAL_PIN,
00016         WATCHDOG,
00017         LOSS_OF_LOCK,
00018         LOSS_OF_CLOCK,
00019         LOW_VOLTAGE_DETECT,
00020         LOW_LEAKAGE_WAKEUP,
00021         STOP_MODE_ACK_ERROR,
00022         MDM_AP_SYSTEM_RESET_REQUEST,
00023         SOFTWARE,
00024         CORE_LOCKUP,
00025         SIZE
00026     };
00027     static const char *str_reset_reason[SIZE];
00028     RESET_REASON getResetReason(void);
00029     const char *getResetReasonStr();
00030     void clearFlag();
00031 };
00032 
00033 #endif //#ifndef _MCU_RESET_REASON_HPP_