summaryrefslogtreecommitdiff
path: root/software/mpu/board
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-08-25 20:53:39 +0000
committerChristian Pointner <equinox@mur.at>2013-08-25 20:53:39 +0000
commitea942c8d66d448dd09edf52d936795bbd1293e7c (patch)
tree602e5895dc78939c0ca1408e95146faea33a287c /software/mpu/board
parentcleaned up shell (no double disconnect/connect for usb) (diff)
some compatibility changes
git-svn-id: https://svn.spreadspace.org/mur.sat@839 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu/board')
-rw-r--r--software/mpu/board/board.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/software/mpu/board/board.h b/software/mpu/board/board.h
index 3004909..465a864 100644
--- a/software/mpu/board/board.h
+++ b/software/mpu/board/board.h
@@ -41,10 +41,8 @@
/*
* IO pins assignments.
*/
-#define LED__PIN 8
-#define LED__PORT GPIOA
-#define USB_DISC__PIN 13
-#define USB_DISC__PORT GPIOA
+#define GPIOA_LED 8
+#define GPIOA_USB_DISC 13
/*
* I/O ports initial setup, this configuration is established soon after reset
@@ -133,14 +131,12 @@
#define VAL_GPIOGODR 0xFFFFFFFF
/*
- * USB bus activation macro, required by the USB driver.
+ * These macros are needed by the USB driver but for compatibility
+ * with STM32F405-style processors not used.
*/
-#define usb_lld_connect_bus(usbp) palClearPad(USB_DISC__PORT, USB_DISC__PIN)
+#define usb_lld_connect_bus(usbp)
+#define usb_lld_disconnect_bus(usbp)
-/*
- * USB bus de-activation macro, required by the USB driver.
- */
-#define usb_lld_disconnect_bus(usbp) palSetPad(USB_DISC__PORT, USB_DISC__PIN)
#if !defined(_FROM_ASM_)
#ifdef __cplusplus