aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/swlink/platform.h
diff options
context:
space:
mode:
authorGareth McMullin2013-12-04 16:16:08 +1300
committerGareth McMullin2013-12-04 16:16:08 +1300
commit8835df1822ed9e99ee593a6ed16bb44cf09e4c57 (patch)
tree50d6d84450ea055554f9809b7a4e05f3f8159c8b /src/platforms/swlink/platform.h
parent42570efaf8f76655fb6458f00dbfd20af0a73322 (diff)
parente3f3171a33f12064b876b98b537f2c6347761f42 (diff)
Merge remote-tracking branch 'origin/usbuart_highrate'
Diffstat (limited to 'src/platforms/swlink/platform.h')
-rw-r--r--src/platforms/swlink/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platforms/swlink/platform.h b/src/platforms/swlink/platform.h
index 614a389..d0c9618 100644
--- a/src/platforms/swlink/platform.h
+++ b/src/platforms/swlink/platform.h
@@ -106,6 +106,7 @@ extern usbd_device *usbdev;
*/
#define IRQ_PRI_USB (2 << 4)
#define IRQ_PRI_USBUSART (1 << 4)
+#define IRQ_PRI_USBUSART_TIM (3 << 4)
#define IRQ_PRI_USB_VBUS (14 << 4)
#define IRQ_PRI_TRACE (0 << 4)
@@ -117,6 +118,10 @@ extern usbd_device *usbdev;
#define USBUSART_PORT GPIOB
#define USBUSART_TX_PIN GPIO6
#define USBUSART_ISR usart1_isr
+#define USBUSART_TIM TIM4
+#define USBUSART_TIM_CLK_EN() rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_TIM4EN)
+#define USBUSART_TIM_IRQ NVIC_TIM4_IRQ
+#define USBUSART_TIM_ISR tim4_isr
#define TRACE_TIM TIM2
#define TRACE_TIM_CLK_EN() rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_TIM2EN)