wip
This commit is contained in:
parent
2e6e9fa300
commit
fd32aae02b
|
@ -47,12 +47,12 @@ extern "C" {
|
|||
/**
|
||||
* @brief Verbose level for all trace logs
|
||||
*/
|
||||
#define VERBOSE_LEVEL VLEVEL_L
|
||||
#define VERBOSE_LEVEL VLEVEL_OFF
|
||||
|
||||
/**
|
||||
* @brief Enable trace logs
|
||||
*/
|
||||
#define APP_LOG_ENABLED 1
|
||||
#define APP_LOG_ENABLED 0
|
||||
|
||||
/**
|
||||
* @brief Activate monitoring (probes) of some internal RF signals for debug purpose
|
||||
|
@ -75,7 +75,7 @@ extern "C" {
|
|||
* @brief Enable/Disable MCU Debugger pins (dbg serial wires)
|
||||
* @note by HW serial wires are ON by default, need to put them OFF to save power
|
||||
*/
|
||||
#define DEBUGGER_ENABLED 1
|
||||
#define DEBUGGER_ENABLED 0
|
||||
|
||||
/**
|
||||
* @brief Disable Low Power mode
|
||||
|
|
|
@ -1706,9 +1706,10 @@ void STS_Get_Date_Time_Stamp(void)
|
|||
UnixEpoch.Seconds -= 18; /*removing leap seconds*/
|
||||
|
||||
SysTimeLocalTime(UnixEpoch.Seconds, &sts_localtime);
|
||||
#if 0
|
||||
APP_LOG(TS_OFF, VLEVEL_M, "UTC TIME:%02dh%02dm%02ds on %02d/%02d/%04d wday:yday=%02d:%02d\r\n",
|
||||
sts_localtime.tm_hour, sts_localtime.tm_min, sts_localtime.tm_sec,
|
||||
sts_localtime.tm_mday, sts_localtime.tm_mon + 1, sts_localtime.tm_year + 1900, sts_localtime.tm_wday, sts_localtime.tm_yday);
|
||||
|
||||
#endif
|
||||
// return (uint32_t)UnixEpoch.Seconds;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1759988577722177836" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1874087067402926142" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1759988577722177836" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1874087067402926142" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
|
|
Binary file not shown.
|
@ -230,7 +230,7 @@
|
|||
/* General Settings */
|
||||
#define MajorVer 25U
|
||||
#define MinorVer 1U
|
||||
#define SubMinorVer 15U
|
||||
#define SubMinorVer 16U
|
||||
#define FirmwareVersion 3U
|
||||
#define YUNHORN_STS_MAX_NVM_CFG_SIZE 64U
|
||||
#define YUNHORN_STS_AC_CODE_SIZE 20U
|
||||
|
|
|
@ -52,7 +52,7 @@ volatile sts_zone_center_by_rows_of_spads_t zone_center[4]={
|
|||
#if (defined(STS_P2)||defined(STS_T6))
|
||||
extern volatile uint8_t sts_door_jam_profile;
|
||||
volatile uint8_t sts_presence_state=0;
|
||||
static int PresenceState=0, PrevPresenceState=0;
|
||||
// static int PresenceState=0, PrevPresenceState=0;
|
||||
volatile uint8_t sts_distance_mode = DOOR_JAM_2400; //DOOR_JAM_2400; //sts_door_jam_profile; //DOOR_JAM_3000;
|
||||
#endif
|
||||
#if (defined(STS_T6)||defined(STS_P2))
|
||||
|
|
|
@ -342,7 +342,7 @@ done_err:
|
|||
* @param n_data number of byte to read
|
||||
* @return of if ok else i2c I/O operation status
|
||||
*/
|
||||
|
||||
#if 0
|
||||
static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data) {
|
||||
|
||||
int status;
|
||||
|
@ -358,7 +358,7 @@ static int _ExpanderRd(int I2cExpAddr, int index, uint8_t *data, int n_data) {
|
|||
XNUCLEO53L1A1_PutI2cBus();
|
||||
return status;
|
||||
}
|
||||
|
||||
#endif
|
||||
/**
|
||||
* STMPE1600 i2c Expender register write
|
||||
* @param I2cExpAddr Expender address
|
||||
|
|
Loading…
Reference in New Issue