From 2d9d64bcf7f4f2533dea68edd9f67781ad968dba Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 21 Aug 2013 23:49:35 +0000 Subject: moved heartbeat thread to seperate file git-svn-id: https://svn.spreadspace.org/mur.sat@834 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/mpu/board/board.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'software/mpu/board/board.h') 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 -- cgit v1.2.3