diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-22 23:54:13 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-22 23:54:13 +0000 |
commit | 908a670dfc44111c1c1f3fdee0ebb7471c2ef079 (patch) | |
tree | f6971b2c7feb93ad38c224d93a8d75f645f86087 /stmhal/usbd_cdc_interface.h | |
parent | 02fa0358005fed02e989e7b1ad9b31f7a9ae8637 (diff) | |
download | micropython-908a670dfc44111c1c1f3fdee0ebb7471c2ef079.tar.gz micropython-908a670dfc44111c1c1f3fdee0ebb7471c2ef079.zip |
stmhal: Add intensity method for blue LED.
As part of this, rejig the way TIM3 is initialised, since it's now
shared by USB CDC and the blue LED PWM.
Diffstat (limited to 'stmhal/usbd_cdc_interface.h')
-rw-r--r-- | stmhal/usbd_cdc_interface.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/stmhal/usbd_cdc_interface.h b/stmhal/usbd_cdc_interface.h index f0c8404ff5..5ed5ecef46 100644 --- a/stmhal/usbd_cdc_interface.h +++ b/stmhal/usbd_cdc_interface.h @@ -33,21 +33,11 @@ /* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
-/* Definition for TIMx clock resources */
-#define USBD_CDC_TIMx TIM3
-#define USBD_CDC_TIMx_CLK_ENABLE __TIM3_CLK_ENABLE
-#define USBD_CDC_TIMx_FORCE_RESET() __TIM3_FORCE_RESET()
-#define USBD_CDC_TIMx_RELEASE_RESET() __TIM3_RELEASE_RESET()
-
-/* Definition for TIMx's NVIC */
-#define USBD_CDC_TIMx_IRQn TIM3_IRQn
-//#define USBD_CDC_TIMx_IRQHandler TIM3_IRQHandler // this is hard coded in stm32f4xx_it.c
-
/* Periodically, the state of the buffer "UserTxBuffer" is checked.
The period depends on USBD_CDC_POLLING_INTERVAL */
#define USBD_CDC_POLLING_INTERVAL 10 /* in ms. The max is 65 and the min is 1 */
-extern TIM_HandleTypeDef USBD_CDC_TIM3_Handle;
+extern TIM_HandleTypeDef TIM3_Handle;
extern const USBD_CDC_ItfTypeDef USBD_CDC_fops;
void USBD_CDC_HAL_TIM_PeriodElapsedCallback(void);
|