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

Committer:
wataloh
Date:
Wed Mar 29 00:42:12 2017 +0000
Revision:
10:02e481a80843
Parent:
8:db2a38920cd6
Reset reason is uploaded to Afero cloud via color JSON string.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wataloh 8:db2a38920cd6 1 #ifndef _MCU_RESET_REASON_HPP_
wataloh 10:02e481a80843 2 #define _MCU_RESET_REASON_HPP_
wataloh 10:02e481a80843 3
wataloh 10:02e481a80843 4 #include "mbed.h"
wataloh 8:db2a38920cd6 5
wataloh 10:02e481a80843 6 class MCUResetReason
wataloh 8:db2a38920cd6 7 {
wataloh 10:02e481a80843 8 MCUResetReason();
wataloh 10:02e481a80843 9 uint8_t SRS[2] ;
wataloh 8:db2a38920cd6 10 public:
wataloh 10:02e481a80843 11 static MCUResetReason* ref();
wataloh 10:02e481a80843 12 enum RESET_REASON
wataloh 10:02e481a80843 13 {
wataloh 10:02e481a80843 14 POWER_ON,
wataloh 10:02e481a80843 15 EXTERNAL_PIN,
wataloh 10:02e481a80843 16 WATCHDOG,
wataloh 10:02e481a80843 17 LOSS_OF_LOCK,
wataloh 10:02e481a80843 18 LOSS_OF_CLOCK,
wataloh 10:02e481a80843 19 LOW_VOLTAGE_DETECT,
wataloh 10:02e481a80843 20 LOW_LEAKAGE_WAKEUP,
wataloh 10:02e481a80843 21 STOP_MODE_ACK_ERROR,
wataloh 10:02e481a80843 22 MDM_AP_SYSTEM_RESET_REQUEST,
wataloh 10:02e481a80843 23 SOFTWARE,
wataloh 10:02e481a80843 24 CORE_LOCKUP,
wataloh 10:02e481a80843 25 SIZE
wataloh 10:02e481a80843 26 };
wataloh 10:02e481a80843 27 static const char *str_reset_reason[SIZE];
wataloh 10:02e481a80843 28 RESET_REASON getResetReason(void);
wataloh 10:02e481a80843 29 const char *getResetReasonStr();
wataloh 10:02e481a80843 30 void clearFlag();
wataloh 8:db2a38920cd6 31 };
wataloh 8:db2a38920cd6 32
wataloh 8:db2a38920cd6 33 #endif //#ifndef _MCU_RESET_REASON_HPP_