summaryrefslogtreecommitdiff
path: root/software/mpu/board
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-08-04 23:19:37 +0000
committerChristian Pointner <equinox@mur.at>2013-08-04 23:19:37 +0000
commit8e13152b6f1cf62a58d98b7340b1e5457204e6ea (patch)
tree6ca11d8b69822d6d70047360e678ccd8f7e9a967 /software/mpu/board
parentdos vs unix line ending (diff)
enabled USB, fixed missing PortF and PortG init
git-svn-id: https://svn.spreadspace.org/mur.sat@826 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu/board')
-rw-r--r--software/mpu/board/board.c2
-rw-r--r--software/mpu/board/board.h16
2 files changed, 18 insertions, 0 deletions
diff --git a/software/mpu/board/board.c b/software/mpu/board/board.c
index b5aa8ff..c1a077e 100644
--- a/software/mpu/board/board.c
+++ b/software/mpu/board/board.c
@@ -30,6 +30,8 @@ const PALConfig pal_default_config =
{VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
{VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
+ {VAL_GPIOFODR, VAL_GPIOFCRL, VAL_GPIOFCRH},
+ {VAL_GPIOGODR, VAL_GPIOGCRL, VAL_GPIOGCRH}
};
#endif
diff --git a/software/mpu/board/board.h b/software/mpu/board/board.h
index bcb8319..19b4fa7 100644
--- a/software/mpu/board/board.h
+++ b/software/mpu/board/board.h
@@ -117,6 +117,22 @@
#define VAL_GPIOEODR 0xFFFFFFFF
/*
+ * Port F setup.
+ * Everything input with pull-up except:
+ */
+#define VAL_GPIOFCRL 0x88888888 /* PF7...PF0 */
+#define VAL_GPIOFCRH 0x88888888 /* PF15...PF8 */
+#define VAL_GPIOFODR 0xFFFFFFFF
+
+/*
+ * Port G setup.
+ * Everything input with pull-up except:
+ */
+#define VAL_GPIOGCRL 0x88888888 /* PG7...PG0 */
+#define VAL_GPIOGCRH 0x88888888 /* PG15...PG8 */
+#define VAL_GPIOGODR 0xFFFFFFFF
+
+/*
* USB bus activation macro, required by the USB driver.
*/
#define usb_lld_connect_bus(usbp) palClearPad(GPIOA, GPIOA_USB_DISC)