summaryrefslogtreecommitdiff
path: root/n/avr/utils/test_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/utils/test_utils.c')
-rw-r--r--n/avr/utils/test_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/n/avr/utils/test_utils.c b/n/avr/utils/test_utils.c
index 7b2ea09..0636e0a 100644
--- a/n/avr/utils/test_utils.c
+++ b/n/avr/utils/test_utils.c
@@ -22,6 +22,7 @@
* Email: <contact@ni.fr.eu.org>
* }}} */
#include "utils.h"
+#include <avr/io.h>
/* +AutoDec */
/* -AutoDec */
@@ -29,6 +30,11 @@
int
main (void)
{
+ /* Test regv, the first one should generate a warning. */
+ TCCR0 = regv (FOC0, WGM00, COM01, COM0, WGM01, CS02, CS00, CS01,
+ 0, 0, 0, 0, 0, 1, 1, 1);
+ TCCR0 = regv (FOC0, WGM00, COM01, COM0, WGM01, CS02, CS01, CS00,
+ 0, 0, 0, 0, 0, 1, 1, 1);
//delay_ns (1);
//delay_ns (1000);
//delay_ns (1000000);