diff options
author | Christian Pointner <equinox@mur.at> | 2013-08-04 23:19:37 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-08-04 23:19:37 +0000 |
commit | 8e13152b6f1cf62a58d98b7340b1e5457204e6ea (patch) | |
tree | 6ca11d8b69822d6d70047360e678ccd8f7e9a967 /software/mpu/board/board.h | |
parent | dos 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/board.h')
-rw-r--r-- | software/mpu/board/board.h | 16 |
1 files changed, 16 insertions, 0 deletions
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) |