diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-01 14:10:13 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-01 14:10:13 +0000 |
commit | 21b907c94677776684b86440ec081a0252cd02e2 (patch) | |
tree | 3664934b835409b9b33e83e621ef4adeb796d410 /os/hal/platforms/AVR/pal_lld.c | |
parent | 8fabd4641a6d869901256d8b1b4163a6a99b05f6 (diff) | |
download | ChibiOS-21b907c94677776684b86440ec081a0252cd02e2.tar.gz ChibiOS-21b907c94677776684b86440ec081a0252cd02e2.tar.bz2 ChibiOS-21b907c94677776684b86440ec081a0252cd02e2.zip |
Arduino Mega support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4379 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AVR/pal_lld.c')
-rw-r--r-- | os/hal/platforms/AVR/pal_lld.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/os/hal/platforms/AVR/pal_lld.c b/os/hal/platforms/AVR/pal_lld.c index fa2c647df..c5a4785b7 100644 --- a/os/hal/platforms/AVR/pal_lld.c +++ b/os/hal/platforms/AVR/pal_lld.c @@ -95,6 +95,26 @@ void _pal_lld_init(const PALConfig *config) { PORTG = config->portg.out;
DDRG = config->portg.dir;
#endif
+
+#if defined(PORTH) || defined(__DOXYGEN__)
+ PORTH = config->porth.out;
+ DDRH = config->porth.dir;
+#endif
+
+#if defined(PORTJ) || defined(__DOXYGEN__)
+ PORTJ = config->portj.out;
+ DDRJ = config->portj.dir;
+#endif
+
+#if defined(PORTK) || defined(__DOXYGEN__)
+ PORTK = config->portk.out;
+ DDRK = config->portk.dir;
+#endif
+
+#if defined(PORTL) || defined(__DOXYGEN__)
+ PORTL = config->portl.out;
+ DDRL = config->portl.dir;
+#endif
}
/**
|