platforms/stm32: Move more platform dependencies to platform.h
This commit is contained in:
parent
30d8aa1eb7
commit
1eb9bfc650
|
@ -95,6 +95,7 @@ extern usbd_device *usbdev;
|
|||
#define LED_IDLE_RUN GPIO10
|
||||
#define LED_ERROR GPIO11
|
||||
|
||||
#define USB_DRIVER stm32f103_usb_driver
|
||||
#define USB_IRQ NVIC_USB_LP_CAN_RX0_IRQ
|
||||
#define USB_ISR usb_lp_can_rx0_isr
|
||||
/* Interrupt priorities. Low numbers are high priority.
|
||||
|
|
|
@ -81,6 +81,7 @@ extern usbd_device *usbdev;
|
|||
#define LED_UART GPIO14
|
||||
#define LED_IDLE_RUN GPIO8
|
||||
|
||||
#define USB_DRIVER stm32f103_usb_driver
|
||||
#define USB_IRQ NVIC_USB_LP_CAN_RX0_IRQ
|
||||
#define USB_ISR usb_lp_can_rx0_isr
|
||||
/* Interrupt priorities. Low numbers are high priority.
|
||||
|
|
|
@ -19,9 +19,17 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <libopencm3/cm3/systick.h>
|
||||
#include <libopencm3/stm32/f1/rcc.h>
|
||||
#include <libopencm3/stm32/f1/gpio.h>
|
||||
#include <libopencm3/stm32/rcc.h>
|
||||
#include <libopencm3/stm32/gpio.h>
|
||||
#if defined(STM32F1)
|
||||
#include <libopencm3/stm32/f1/flash.h>
|
||||
#elif defined(STM32F2)
|
||||
#include <libopencm3/stm32/f2/flash.h>
|
||||
#elif defined(STM32F4)
|
||||
#include <libopencm3/stm32/f4/flash.h>
|
||||
#else
|
||||
#warning "Unhandled STM32 family"
|
||||
#endif
|
||||
#include <libopencm3/cm3/scb.h>
|
||||
#include <libopencm3/usb/usbd.h>
|
||||
#include <libopencm3/usb/dfu.h>
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopencm3/stm32/f1/rcc.h>
|
||||
#include <libopencm3/stm32/f1/gpio.h>
|
||||
#include <libopencm3/stm32/rcc.h>
|
||||
#include <libopencm3/stm32/gpio.h>
|
||||
#include <libopencm3/stm32/usart.h>
|
||||
#include <libopencm3/cm3/nvic.h>
|
||||
#include <libopencm3/cm3/scs.h>
|
||||
|
|
Loading…
Reference in New Issue