summaryrefslogtreecommitdiff
path: root/software/mpu/board/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/mpu/board/board.h')
-rw-r--r--software/mpu/board/board.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/software/mpu/board/board.h b/software/mpu/board/board.h
index 19b4fa7..018a45e 100644
--- a/software/mpu/board/board.h
+++ b/software/mpu/board/board.h
@@ -41,8 +41,10 @@
/*
* IO pins assignments.
*/
-#define GPIOA_LED 8
-#define GPIOA_USB_DISC 13
+#define LED__PIN 8
+#define LED__PORT GPIOA
+#define USB_DISC__PIN 13
+#define USB_DISC__PORT GPIOA
/*
* I/O ports initial setup, this configuration is established soon after reset
@@ -135,12 +137,12 @@
/*
* USB bus activation macro, required by the USB driver.
*/
-#define usb_lld_connect_bus(usbp) palClearPad(GPIOA, GPIOA_USB_DISC)
+#define usb_lld_connect_bus(usbp) palClearPad(USB_DISC__PORT, USB_DISC__PIN)
/*
* USB bus de-activation macro, required by the USB driver.
*/
-#define usb_lld_disconnect_bus(usbp) palSetPad(GPIOA, GPIOA_USB_DISC)
+#define usb_lld_disconnect_bus(usbp) palSetPad(USB_DISC__PORT, USB_DISC__PIN)
#if !defined(_FROM_ASM_)
#ifdef __cplusplus