git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8366 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
939489f06c
commit
0a6a80bb36
|
@ -224,7 +224,7 @@ void ext_lld_exti_irq_enable(void) {
|
|||
nvicEnableVector(EXTI0_1_IRQn, STM32_EXT_EXTI0_1_IRQ_PRIORITY);
|
||||
nvicEnableVector(EXTI2_3_IRQn, STM32_EXT_EXTI2_3_IRQ_PRIORITY);
|
||||
nvicEnableVector(EXTI4_15_IRQn, STM32_EXT_EXTI4_15_IRQ_PRIORITY);
|
||||
#if !defined(STM32F030)
|
||||
#if !defined(STM32F030) !defined(STM32F070)
|
||||
nvicEnableVector(PVD_IRQn, STM32_EXT_EXTI16_IRQ_PRIORITY);
|
||||
nvicEnableVector(ADC1_COMP_IRQn, STM32_EXT_EXTI21_22_IRQ_PRIORITY);
|
||||
#endif
|
||||
|
@ -241,7 +241,7 @@ void ext_lld_exti_irq_disable(void) {
|
|||
nvicDisableVector(EXTI0_1_IRQn);
|
||||
nvicDisableVector(EXTI2_3_IRQn);
|
||||
nvicDisableVector(EXTI4_15_IRQn);
|
||||
#if !defined(STM32F030)
|
||||
#if !defined(STM32F030) !defined(STM32F070)
|
||||
nvicDisableVector(PVD_IRQn);
|
||||
nvicDisableVector(ADC1_COMP_IRQn);
|
||||
#endif
|
||||
|
|
|
@ -1312,6 +1312,9 @@
|
|||
/*===========================================================================*/
|
||||
#elif defined(STM32F070x6) || defined(STM32F070xB)
|
||||
|
||||
/* Common identifier of all STM32F070 devices.*/
|
||||
#define STM32F070
|
||||
|
||||
/* ADC attributes.*/
|
||||
#define STM32_HAS_ADC1 TRUE
|
||||
#define STM32_ADC_SUPPORTS_PRESCALER FALSE
|
||||
|
@ -1508,7 +1511,11 @@
|
|||
#define STM32_HAS_UART8 FALSE
|
||||
|
||||
/* USB attributes.*/
|
||||
#define STM32_HAS_USB FALSE
|
||||
#define STM32_HAS_USB TRUE
|
||||
#define STM32_USB_ACCESS_SCHEME_2x16 TRUE
|
||||
#define STM32_USB_PMA_SIZE 768
|
||||
#define STM32_USB_HAS_BCDR TRUE
|
||||
|
||||
#define STM32_HAS_OTG1 FALSE
|
||||
#define STM32_HAS_OTG2 FALSE
|
||||
|
||||
|
|
Loading…
Reference in New Issue