Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/clunet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. DUDANOV <sergey.dudanov@gmail.com>2016-07-08 08:40:49 +0300
committerGitHub <noreply@github.com>2016-07-08 08:40:49 +0300
commit92cf549febaf1a66531da7f74f8e86bfc682be23 (patch)
tree2bb8f64052d375d6773662a05a860b9871a4f3c4
parent7e184e4b8ce0a028427779039561071ec3f40568 (diff)
Update clunet_config.h
Отказываемся от прерывания переполнения.
-rw-r--r--demo_project/clunet_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/demo_project/clunet_config.h b/demo_project/clunet_config.h
index f366b06..1dbb107 100644
--- a/demo_project/clunet_config.h
+++ b/demo_project/clunet_config.h
@@ -49,15 +49,15 @@
/* How to enable and disable timer interrupts */
#define CLUNET_ENABLE_TIMER_COMP set_bit(TIMSK, OCIE2)
#define CLUNET_DISABLE_TIMER_COMP unset_bit(TIMSK, OCIE2)
-#define CLUNET_ENABLE_TIMER_OVF set_bit(TIMSK, TOIE2)
-#define CLUNET_DISABLE_TIMER_OVF unset_bit(TIMSK, TOIE2)
+//#define CLUNET_ENABLE_TIMER_OVF set_bit(TIMSK, TOIE2)
+//#define CLUNET_DISABLE_TIMER_OVF unset_bit(TIMSK, TOIE2)
/* How to init and enable external interrupt (read pin) */
#define CLUNET_INIT_INT {set_bit(MCUCR,ISC00);unset_bit(MCUCR,ISC01); set_bit(GICR, INT0);}
/* Interrupt vectors */
#define CLUNET_TIMER_COMP_VECTOR TIMER2_COMP_vect
-#define CLUNET_TIMER_OVF_VECTOR TIMER2_OVF_vect
+//#define CLUNET_TIMER_OVF_VECTOR TIMER2_OVF_vect
#define CLUNET_INT_VECTOR INT0_vect
#endif