stm32l0: Add USB support via st_usbfs driver.
This commit is contained in:
27
include/libopencm3/stm32/l0/st_usbfs.h
Normal file
27
include/libopencm3/stm32/l0/st_usbfs.h
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY !
|
||||||
|
* Use top-level <libopencm3/stm32/st_usbfs.h>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_ST_USBFS_H
|
||||||
|
# error Do not include directly !
|
||||||
|
#else
|
||||||
|
|
||||||
|
#include <libopencm3/stm32/common/st_usbfs_v2.h>
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -29,6 +29,8 @@
|
|||||||
# include <libopencm3/stm32/f1/st_usbfs.h>
|
# include <libopencm3/stm32/f1/st_usbfs.h>
|
||||||
#elif defined(STM32F3)
|
#elif defined(STM32F3)
|
||||||
# include <libopencm3/stm32/f3/st_usbfs.h>
|
# include <libopencm3/stm32/f3/st_usbfs.h>
|
||||||
|
#elif defined(STM32L0)
|
||||||
|
# include <libopencm3/stm32/l0/st_usbfs.h>
|
||||||
#elif defined(STM32L1)
|
#elif defined(STM32L1)
|
||||||
# include <libopencm3/stm32/l1/st_usbfs.h>
|
# include <libopencm3/stm32/l1/st_usbfs.h>
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ OBJS += pwr_common_all.o pwr_common_l01.o
|
|||||||
OBJS += gpio_common_all.o gpio_common_f0234.o rcc_common_all.o
|
OBJS += gpio_common_all.o gpio_common_f0234.o rcc_common_all.o
|
||||||
OBJS += crs_common_all.o
|
OBJS += crs_common_all.o
|
||||||
|
|
||||||
|
OBJS += usb.o usb_control.o usb_standard.o
|
||||||
|
OBJS += st_usbfs_core.o st_usbfs_v2.o
|
||||||
|
|
||||||
VPATH += ../../usb:../:../../cm3:../common
|
VPATH += ../../usb:../:../../cm3:../common
|
||||||
|
|
||||||
include ../../Makefile.include
|
include ../../Makefile.include
|
||||||
|
|||||||
Reference in New Issue
Block a user