summaryrefslogtreecommitdiff
path: root/n/avr/utils/test_utils.c
diff options
context:
space:
mode:
authorschodet2004-09-20 22:20:35 +0000
committerschodet2004-09-20 22:20:35 +0000
commite13b9ba42de78ef57f11ad0a2f45f4f4648fce77 (patch)
treef5c8ab834e33314323faed5ec263755527d37769 /n/avr/utils/test_utils.c
parent8e68be9cca04b7acb9c67dee46564c43141cf197 (diff)
Ajout de regv.
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);