diff options
author | Christian Pointner <equinox@mur.at> | 2013-08-21 23:49:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-08-21 23:49:35 +0000 |
commit | 2d9d64bcf7f4f2533dea68edd9f67781ad968dba (patch) | |
tree | 7de995df3c9a933e5afeb9780d1854e8db263d7e /software/mpu/board/board.h | |
parent | some test for mpu (diff) |
moved heartbeat thread to seperate file
git-svn-id: https://svn.spreadspace.org/mur.sat@834 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu/board/board.h')
-rw-r--r-- | software/mpu/board/board.h | 10 |
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 |