From fc31739eb6fdf230a26930e8d42de7a26558aeae Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Tue, 3 Aug 2021 18:00:07 -0400 Subject: WIP deep sleep mode --- watch-library/config/hpl_eic_config.h | 16 ++++++++-------- watch-library/config/hpl_rtc_config.h | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'watch-library/config') diff --git a/watch-library/config/hpl_eic_config.h b/watch-library/config/hpl_eic_config.h index 3b268a10..5066be66 100644 --- a/watch-library/config/hpl_eic_config.h +++ b/watch-library/config/hpl_eic_config.h @@ -138,14 +138,14 @@ // Interrupt 2 Settings // eic_arch_enable_irq_setting2 #ifndef CONF_EIC_ENABLE_IRQ_SETTING2 -#define CONF_EIC_ENABLE_IRQ_SETTING2 0 +#define CONF_EIC_ENABLE_IRQ_SETTING2 1 #endif // External Interrupt 2 Filter Enable // Indicates whether the external interrupt 2 filter is enabled or not // eic_arch_filten2 #ifndef CONF_EIC_FILTEN2 -#define CONF_EIC_FILTEN2 0 +#define CONF_EIC_FILTEN2 1 #endif // External Interrupt 2 Event Output Enable @@ -165,7 +165,7 @@ // This defines input sense trigger // eic_arch_sense2 #ifndef CONF_EIC_SENSE2 -#define CONF_EIC_SENSE2 EIC_NMICTRL_NMISENSE_NONE_Val +#define CONF_EIC_SENSE2 EIC_NMICTRL_NMISENSE_RISE_Val #endif // External Interrupt 2 Asynchronous Edge Detection Mode @@ -264,7 +264,7 @@ // Interrupt 5 Settings // eic_arch_enable_irq_setting5 #ifndef CONF_EIC_ENABLE_IRQ_SETTING5 -#define CONF_EIC_ENABLE_IRQ_SETTING5 1 +#define CONF_EIC_ENABLE_IRQ_SETTING5 0 #endif // External Interrupt 5 Filter Enable @@ -291,7 +291,7 @@ // This defines input sense trigger // eic_arch_sense5 #ifndef CONF_EIC_SENSE5 -#define CONF_EIC_SENSE5 EIC_NMICTRL_NMISENSE_RISE_Val +#define CONF_EIC_SENSE5 EIC_NMICTRL_NMISENSE_NONE_Val #endif // External Interrupt 5 Asynchronous Edge Detection Mode @@ -313,7 +313,7 @@ // Indicates whether the external interrupt 6 filter is enabled or not // eic_arch_filten6 #ifndef CONF_EIC_FILTEN6 -#define CONF_EIC_FILTEN6 0 +#define CONF_EIC_FILTEN6 1 #endif // External Interrupt 6 Event Output Enable @@ -355,7 +355,7 @@ // Indicates whether the external interrupt 7 filter is enabled or not // eic_arch_filten7 #ifndef CONF_EIC_FILTEN7 -#define CONF_EIC_FILTEN7 0 +#define CONF_EIC_FILTEN7 1 #endif // External Interrupt 7 Event Output Enable @@ -723,7 +723,7 @@ // -#define CONFIG_EIC_EXTINT_MAP {5, PIN_PB05}, {6, PIN_PA22}, {7, PIN_PA23}, +#define CONFIG_EIC_EXTINT_MAP {2, PIN_PA02}, {6, PIN_PA22}, {7, PIN_PA23}, // <<< end of configuration section >>> diff --git a/watch-library/config/hpl_rtc_config.h b/watch-library/config/hpl_rtc_config.h index 9085ca37..582a1c23 100644 --- a/watch-library/config/hpl_rtc_config.h +++ b/watch-library/config/hpl_rtc_config.h @@ -114,14 +114,14 @@ // RTC Tamper Input 2 settings // tamper_input_2_settings #ifndef CONF_TAMPER_INPUT_2_SETTINGS -#define CONF_TAMPER_INPUT_2_SETTINGS 0 +#define CONF_TAMPER_INPUT_2_SETTINGS 1 #endif // Tamper Level Settings // Indicates Tamper input 2 level // tamper_level_2 #ifndef CONF_RTC_TAMP_LVL_2 -#define CONF_RTC_TAMP_LVL_2 0 +#define CONF_RTC_TAMP_LVL_2 1 #endif // RTC Tamper Input Action @@ -132,7 +132,7 @@ // These bits define the RTC Tamper Input Action to be performed // rtc_tamper_input_action_2 #ifndef CONF_RTC_TAMPER_INACT_2 -#define CONF_RTC_TAMPER_INACT_2 0 +#define CONF_RTC_TAMPER_INACT_2 1 #endif // Debounce Enable for Tamper Input -- cgit v1.2.3