diff options
Diffstat (limited to 'software/mpu/board')
-rw-r--r-- | software/mpu/board/board.h | 16 |
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 |