stm32l0: Add USB support via st_usbfs driver.

This commit is contained in:
Karl Palsson
2015-10-03 18:01:37 +00:00
parent add087aafc
commit f1d8a7ef04
3 changed files with 32 additions and 0 deletions

View 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

View File

@@ -29,6 +29,8 @@
# include <libopencm3/stm32/f1/st_usbfs.h>
#elif defined(STM32F3)
# include <libopencm3/stm32/f3/st_usbfs.h>
#elif defined(STM32L0)
# include <libopencm3/stm32/l0/st_usbfs.h>
#elif defined(STM32L1)
# include <libopencm3/stm32/l1/st_usbfs.h>
#else