diff --git a/include/libopencm3/stm32/l0/st_usbfs.h b/include/libopencm3/stm32/l0/st_usbfs.h new file mode 100644 index 00000000..7b65d2b8 --- /dev/null +++ b/include/libopencm3/stm32/l0/st_usbfs.h @@ -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 . + */ +/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY ! + * Use top-level + */ + +#ifndef LIBOPENCM3_ST_USBFS_H +# error Do not include directly ! +#else + +#include + +#endif diff --git a/include/libopencm3/stm32/st_usbfs.h b/include/libopencm3/stm32/st_usbfs.h index f0d1f5f4..42d98e56 100644 --- a/include/libopencm3/stm32/st_usbfs.h +++ b/include/libopencm3/stm32/st_usbfs.h @@ -29,6 +29,8 @@ # include #elif defined(STM32F3) # include +#elif defined(STM32L0) +# include #elif defined(STM32L1) # include #else diff --git a/lib/stm32/l0/Makefile b/lib/stm32/l0/Makefile index 2e4332cf..4f3259d3 100644 --- a/lib/stm32/l0/Makefile +++ b/lib/stm32/l0/Makefile @@ -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 += 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 include ../../Makefile.include