From 81982916e2c91a5a18c8704ff509feeb4f62bffc Mon Sep 17 00:00:00 2001 From: BuFran Date: Mon, 22 Jul 2013 17:55:03 +0200 Subject: [PATCH] [Doxygen] Add complete documentation page to STM32F0 --- doc/DoxygenLayout.xml | 1 + doc/Makefile | 10 +- doc/cm3/DoxygenLayout_cm3.xml | 1 + doc/efm32g/DoxygenLayout_efm32g.xml | 1 + doc/efm32gg/DoxygenLayout_efm32gg.xml | 1 + doc/efm32lg/DoxygenLayout_efm32lg.xml | 1 + doc/efm32tg/DoxygenLayout_efm32tg.xml | 1 + doc/lm3s/DoxygenLayout_lm3s.xml | 1 + doc/lm4f/DoxygenLayout_lm4f.xml | 1 + doc/lpc13xx/DoxygenLayout_lpc13xx.xml | 1 + doc/lpc17xx/DoxygenLayout_lpc17xx.xml | 1 + doc/lpc43xx/DoxygenLayout_lpc43xx.xml | 1 + doc/stm32f0/Doxyfile | 38 ++++ doc/stm32f0/Doxyfile_latex | 40 +++++ doc/stm32f0/DoxygenLayout_stm32f0.xml | 200 ++++++++++++++++++++++ doc/stm32f0/header_stm32f0.tex | 61 +++++++ doc/stm32f1/DoxygenLayout_stm32f1.xml | 1 + doc/stm32f2/DoxygenLayout_stm32f2.xml | 1 + doc/stm32f4/DoxygenLayout_stm32f4.xml | 1 + doc/stm32l1/DoxygenLayout_stm32l1.xml | 1 + include/libopencm3/stm32/f0/adc.h | 13 ++ include/libopencm3/stm32/f0/cec.h | 12 ++ include/libopencm3/stm32/f0/dac.h | 13 ++ include/libopencm3/stm32/f0/dma.h | 4 +- include/libopencm3/stm32/f0/doc-stm32f0.h | 32 ++++ include/libopencm3/stm32/f0/exti.h | 13 ++ include/libopencm3/stm32/f0/flash.h | 12 ++ include/libopencm3/stm32/f0/i2c.h | 12 ++ include/libopencm3/stm32/f0/pwr.h | 4 +- include/libopencm3/stm32/f0/rcc.h | 2 +- include/libopencm3/stm32/f0/syscfg.h | 12 ++ include/libopencm3/stm32/f0/timer.h | 32 ++++ include/libopencm3/stm32/f0/tsc.h | 12 ++ include/libopencm3/stm32/timer.h | 5 +- lib/stm32/f0/Makefile | 3 +- lib/stm32/f0/crc.c | 33 ++++ lib/stm32/f0/dac.c | 33 ++++ lib/stm32/f0/gpio.c | 31 ++++ lib/stm32/f0/i2c.c | 32 ++++ lib/stm32/f0/iwdg.c | 33 ++++ lib/stm32/f0/pwr.c | 38 ++++ lib/stm32/f0/rcc.c | 2 +- lib/stm32/f0/spi.c | 12 ++ lib/stm32/f0/syscfg.c | 31 ++++ lib/stm32/f0/timer.c | 34 ++++ 45 files changed, 813 insertions(+), 11 deletions(-) create mode 100644 doc/stm32f0/Doxyfile create mode 100644 doc/stm32f0/Doxyfile_latex create mode 100644 doc/stm32f0/DoxygenLayout_stm32f0.xml create mode 100644 doc/stm32f0/header_stm32f0.tex create mode 100644 include/libopencm3/stm32/f0/doc-stm32f0.h create mode 100644 include/libopencm3/stm32/f0/timer.h create mode 100644 lib/stm32/f0/crc.c create mode 100644 lib/stm32/f0/dac.c create mode 100644 lib/stm32/f0/gpio.c create mode 100644 lib/stm32/f0/i2c.c create mode 100644 lib/stm32/f0/iwdg.c create mode 100644 lib/stm32/f0/pwr.c create mode 100644 lib/stm32/f0/syscfg.c create mode 100644 lib/stm32/f0/timer.c diff --git a/doc/DoxygenLayout.xml b/doc/DoxygenLayout.xml index d4e73be2..5f50511f 100644 --- a/doc/DoxygenLayout.xml +++ b/doc/DoxygenLayout.xml @@ -6,6 +6,7 @@ + diff --git a/doc/Makefile b/doc/Makefile index 51d0605d..0ced3e8a 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,7 +5,7 @@ doc: html latex -html: cm3 usb stm32l1 stm32f1 stm32f2 stm32f4 efm32g efm32gg efm32lg efm32tg lm3s lm4f lpc13 lpc17 lpc43 top +html: cm3 usb stm32l1 stm32f0 stm32f1 stm32f2 stm32f4 efm32g efm32gg efm32lg efm32tg lm3s lm4f lpc13 lpc17 lpc43 top cm3: cd cm3/; doxygen @@ -40,6 +40,9 @@ lpc17: lpc43: cd lpc43xx/; doxygen +stm32f0: + cd stm32f0/; doxygen + stm32f1: cd stm32f1/; doxygen @@ -55,11 +58,14 @@ stm32l1: top: doxygen -latex: stm32l1.pdf stm32f1.pdf stm32f2.pdf stm32f4.pdf lm3s.pdf lm4f.pdf lpc13.pdf lpc17.pdf lpc43.pdf efm32g.pdf efm32gg.pdf efm32lg.pdf efm32tg.pdf +latex: stm32l1.pdf stm32f0.pdf stm32f1.pdf stm32f2.pdf stm32f4.pdf lm3s.pdf lm4f.pdf lpc13.pdf lpc17.pdf lpc43.pdf efm32g.pdf efm32gg.pdf efm32lg.pdf efm32tg.pdf stm32l1.pdf: cd stm32l1/; doxygen Doxyfile_latex; cd latex/; $(MAKE); cp refman.pdf ../../stm32l1.pdf +stm32f0.pdf: + cd stm32f0/; doxygen Doxyfile_latex; cd latex/; $(MAKE); cp refman.pdf ../../stm32f0.pdf + stm32f1.pdf: cd stm32f1/; doxygen Doxyfile_latex; cd latex/; $(MAKE); cp refman.pdf ../../stm32f1.pdf diff --git a/doc/cm3/DoxygenLayout_cm3.xml b/doc/cm3/DoxygenLayout_cm3.xml index 1206a190..272dc513 100644 --- a/doc/cm3/DoxygenLayout_cm3.xml +++ b/doc/cm3/DoxygenLayout_cm3.xml @@ -4,6 +4,7 @@ + diff --git a/doc/efm32g/DoxygenLayout_efm32g.xml b/doc/efm32g/DoxygenLayout_efm32g.xml index 7740639f..d2a4f130 100644 --- a/doc/efm32g/DoxygenLayout_efm32g.xml +++ b/doc/efm32g/DoxygenLayout_efm32g.xml @@ -6,6 +6,7 @@ + diff --git a/doc/efm32gg/DoxygenLayout_efm32gg.xml b/doc/efm32gg/DoxygenLayout_efm32gg.xml index 6f2006cc..3634416e 100644 --- a/doc/efm32gg/DoxygenLayout_efm32gg.xml +++ b/doc/efm32gg/DoxygenLayout_efm32gg.xml @@ -6,6 +6,7 @@ + diff --git a/doc/efm32lg/DoxygenLayout_efm32lg.xml b/doc/efm32lg/DoxygenLayout_efm32lg.xml index f2afb39b..2f9ab36c 100644 --- a/doc/efm32lg/DoxygenLayout_efm32lg.xml +++ b/doc/efm32lg/DoxygenLayout_efm32lg.xml @@ -6,6 +6,7 @@ + diff --git a/doc/efm32tg/DoxygenLayout_efm32tg.xml b/doc/efm32tg/DoxygenLayout_efm32tg.xml index f3b6d944..53a048da 100644 --- a/doc/efm32tg/DoxygenLayout_efm32tg.xml +++ b/doc/efm32tg/DoxygenLayout_efm32tg.xml @@ -6,6 +6,7 @@ + diff --git a/doc/lm3s/DoxygenLayout_lm3s.xml b/doc/lm3s/DoxygenLayout_lm3s.xml index c8678aa6..66dd3cb8 100644 --- a/doc/lm3s/DoxygenLayout_lm3s.xml +++ b/doc/lm3s/DoxygenLayout_lm3s.xml @@ -6,6 +6,7 @@ + diff --git a/doc/lm4f/DoxygenLayout_lm4f.xml b/doc/lm4f/DoxygenLayout_lm4f.xml index 27ab5e09..7ced19b3 100644 --- a/doc/lm4f/DoxygenLayout_lm4f.xml +++ b/doc/lm4f/DoxygenLayout_lm4f.xml @@ -6,6 +6,7 @@ + diff --git a/doc/lpc13xx/DoxygenLayout_lpc13xx.xml b/doc/lpc13xx/DoxygenLayout_lpc13xx.xml index 1fdccea3..e72cd8d8 100644 --- a/doc/lpc13xx/DoxygenLayout_lpc13xx.xml +++ b/doc/lpc13xx/DoxygenLayout_lpc13xx.xml @@ -6,6 +6,7 @@ + diff --git a/doc/lpc17xx/DoxygenLayout_lpc17xx.xml b/doc/lpc17xx/DoxygenLayout_lpc17xx.xml index e3fd4c67..0d915b07 100644 --- a/doc/lpc17xx/DoxygenLayout_lpc17xx.xml +++ b/doc/lpc17xx/DoxygenLayout_lpc17xx.xml @@ -6,6 +6,7 @@ + diff --git a/doc/lpc43xx/DoxygenLayout_lpc43xx.xml b/doc/lpc43xx/DoxygenLayout_lpc43xx.xml index 806ddaec..f103fc7b 100644 --- a/doc/lpc43xx/DoxygenLayout_lpc43xx.xml +++ b/doc/lpc43xx/DoxygenLayout_lpc43xx.xml @@ -6,6 +6,7 @@ + diff --git a/doc/stm32f0/Doxyfile b/doc/stm32f0/Doxyfile new file mode 100644 index 00000000..f890ec44 --- /dev/null +++ b/doc/stm32f0/Doxyfile @@ -0,0 +1,38 @@ +# HTML Documentation for STM32F1 code level + +# 14 September 2012 +# (C) Ken Sarkies + +#--------------------------------------------------------------------------- +# Common Include File +#--------------------------------------------------------------------------- + +@INCLUDE = ../Doxyfile_common + +#--------------------------------------------------------------------------- +# Local settings +#--------------------------------------------------------------------------- + +WARN_LOGFILE = doxygen_stm32f0.log + +INPUT = ../../include/libopencm3/license.dox \ + ../../include/libopencm3/stm32/f0 \ + ../../include/libopencm3/stm32/common + +INPUT += ../../lib/stm32/f0 \ + ../../lib/stm32/common + +EXCLUDE = ../../include/libopencm3/stm32/f0/usb.h \ + ../../include/libopencm3/stm32/f0/usb_desc.h + +EXCLUDE_PATTERNS = *_common_f24.h *_common_f24.c + +LAYOUT_FILE = DoxygenLayout_stm32f0.xml + +TAGFILES = ../cm3/cm3.tag=../../cm3/html + +GENERATE_TAGFILE = stm32f0.tag + +ENABLE_PREPROCESSING = YES + + diff --git a/doc/stm32f0/Doxyfile_latex b/doc/stm32f0/Doxyfile_latex new file mode 100644 index 00000000..f62818d4 --- /dev/null +++ b/doc/stm32f0/Doxyfile_latex @@ -0,0 +1,40 @@ +# LaTeX Documentation for STM32F1 code level + +# 14 September 2012 +# (C) Ken Sarkies + +#--------------------------------------------------------------------------- +# Common Include File +#--------------------------------------------------------------------------- + +@INCLUDE = ../Doxyfile_common + +#--------------------------------------------------------------------------- +# Local settings +#--------------------------------------------------------------------------- + +WARN_LOGFILE = doxygen_stm32f0_latex.log + +INPUT = ../../include/libopencm3/docmain.dox \ + ../../include/libopencm3/license.dox \ + ../../include/libopencm3/stm32/f0 \ + ../../include/libopencm3/stm32/common + +INPUT += ../../lib/stm32/f0 \ + ../../lib/stm32/common + +EXCLUDE = ../../include/libopencm3/stm32/f0/doc-stm32f0.h \ + ../../include/libopencm3/stm32/f0/usb.h \ + ../../include/libopencm3/stm32/f0/usb_desc.h \ + ../../include/libopencm3/stm32/f0/nvic_f0.h + +EXCLUDE_PATTERNS = *_common_f24.h *_common_f24.c + +LAYOUT_FILE = DoxygenLayout_stm32f0.xml + +GENERATE_HTML = NO + +GENERATE_LATEX = YES + +LATEX_HEADER = header_stm32f0.tex + diff --git a/doc/stm32f0/DoxygenLayout_stm32f0.xml b/doc/stm32f0/DoxygenLayout_stm32f0.xml new file mode 100644 index 00000000..ca2ed894 --- /dev/null +++ b/doc/stm32f0/DoxygenLayout_stm32f0.xml @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/stm32f0/header_stm32f0.tex b/doc/stm32f0/header_stm32f0.tex new file mode 100644 index 00000000..6de861d4 --- /dev/null +++ b/doc/stm32f0/header_stm32f0.tex @@ -0,0 +1,61 @@ +\documentclass{book} +\usepackage[a4paper,top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry} +\usepackage{makeidx} +\usepackage{natbib} +\usepackage{graphicx} +\usepackage{multicol} +\usepackage{float} +\usepackage{listings} +\usepackage{color} +\usepackage{ifthen} +\usepackage[table]{xcolor} +\usepackage{textcomp} +\usepackage{alltt} +\usepackage{ifpdf} +\ifpdf +\usepackage[pdftex, + pagebackref=true, + colorlinks=true, + linkcolor=blue, + unicode + ]{hyperref} +\else +\usepackage[ps2pdf, + pagebackref=true, + colorlinks=true, + linkcolor=blue, + unicode + ]{hyperref} +\usepackage{pspicture} +\fi +\usepackage[utf8]{inputenc} +\usepackage{mathptmx} +\usepackage[scaled=.90]{helvet} +\usepackage{courier} +\usepackage{sectsty} +\usepackage{amssymb} +\usepackage[titles]{tocloft} +\usepackage{doxygen} +\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=4,numbers=left } +\makeindex +\setcounter{tocdepth}{3} +\renewcommand{\footrulewidth}{0.4pt} +\renewcommand{\familydefault}{\sfdefault} +\hfuzz=15pt +\setlength{\emergencystretch}{15pt} +\hbadness=750 +\tolerance=750 +\begin{document} +\hypersetup{pageanchor=false,citecolor=blue} +\begin{titlepage} +\vspace*{7cm} +\begin{center} +{\Huge libopencm3: API Reference\\ STM STM32F0 ARM Cortex M0 Series}\\ +\vspace*{1cm} +{\large Generated by Doxygen 1.8.2}\\ +\vspace*{0.5cm} +{\small Thu Sep 13 2012 23:26:45}\\ +\end{center} +\end{titlepage} +\pagenumbering{arabic} +\hypersetup{pageanchor=true,citecolor=blue} diff --git a/doc/stm32f1/DoxygenLayout_stm32f1.xml b/doc/stm32f1/DoxygenLayout_stm32f1.xml index 8e19d27f..266aa164 100644 --- a/doc/stm32f1/DoxygenLayout_stm32f1.xml +++ b/doc/stm32f1/DoxygenLayout_stm32f1.xml @@ -6,6 +6,7 @@ + diff --git a/doc/stm32f2/DoxygenLayout_stm32f2.xml b/doc/stm32f2/DoxygenLayout_stm32f2.xml index e21cab23..be9695ea 100644 --- a/doc/stm32f2/DoxygenLayout_stm32f2.xml +++ b/doc/stm32f2/DoxygenLayout_stm32f2.xml @@ -6,6 +6,7 @@ + diff --git a/doc/stm32f4/DoxygenLayout_stm32f4.xml b/doc/stm32f4/DoxygenLayout_stm32f4.xml index 7d48f630..c37e5311 100644 --- a/doc/stm32f4/DoxygenLayout_stm32f4.xml +++ b/doc/stm32f4/DoxygenLayout_stm32f4.xml @@ -6,6 +6,7 @@ + diff --git a/doc/stm32l1/DoxygenLayout_stm32l1.xml b/doc/stm32l1/DoxygenLayout_stm32l1.xml index 62090c57..29c6fba0 100644 --- a/doc/stm32l1/DoxygenLayout_stm32l1.xml +++ b/doc/stm32l1/DoxygenLayout_stm32l1.xml @@ -6,6 +6,7 @@ + diff --git a/include/libopencm3/stm32/f0/adc.h b/include/libopencm3/stm32/f0/adc.h index c229f0bb..863d2851 100644 --- a/include/libopencm3/stm32/f0/adc.h +++ b/include/libopencm3/stm32/f0/adc.h @@ -1,3 +1,16 @@ +/** @defgroup adc_defines ADC Defines + * + * @brief Defined Constants and Types for the STM32F0xx Analog to Digital + * Converter + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/cec.h b/include/libopencm3/stm32/f0/cec.h index e5c27da3..7a483c44 100644 --- a/include/libopencm3/stm32/f0/cec.h +++ b/include/libopencm3/stm32/f0/cec.h @@ -1,3 +1,15 @@ +/** @defgroup CEC_defines CEC Defines + * + * @brief Defined Constants and Types for the STM32F0xx HDMI-CEC + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/dac.h b/include/libopencm3/stm32/f0/dac.h index d55150a4..377ee5d2 100644 --- a/include/libopencm3/stm32/f0/dac.h +++ b/include/libopencm3/stm32/f0/dac.h @@ -1,3 +1,16 @@ +/** @defgroup dac_defines DAC Defines + * + * @brief Defined Constants and Types for the STM32F0xx Digital to Analog + * Converter + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/dma.h b/include/libopencm3/stm32/f0/dma.h index 5c2b146a..37be251b 100644 --- a/include/libopencm3/stm32/f0/dma.h +++ b/include/libopencm3/stm32/f0/dma.h @@ -1,8 +1,8 @@ /** @defgroup dma_defines DMA Defines * - * @ingroup STM32F1xx_defines + * @ingroup STM32F0xx_defines * - * @brief Defined Constants and Types for the STM32F1xx DMA Controller + * @brief Defined Constants and Types for the STM32F0xx DMA Controller * * @version 1.0.0 * diff --git a/include/libopencm3/stm32/f0/doc-stm32f0.h b/include/libopencm3/stm32/f0/doc-stm32f0.h new file mode 100644 index 00000000..fc26c508 --- /dev/null +++ b/include/libopencm3/stm32/f0/doc-stm32f0.h @@ -0,0 +1,32 @@ +/** @mainpage libopencm3 STM32F0 + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * API documentation for ST Microelectronics STM32F0 Cortex M0 series. + * + * LGPL License Terms @ref lgpl_license +*/ + +/** @defgroup STM32F0xx STM32F0xx + * Libraries for ST Microelectronics STM32F0xx series. + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + +/** @defgroup STM32F0xx_defines STM32F0xx Defines + * + * @brief Defined Constants and Types for the STM32F0xx series + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + diff --git a/include/libopencm3/stm32/f0/exti.h b/include/libopencm3/stm32/f0/exti.h index 61cf4017..da58a013 100644 --- a/include/libopencm3/stm32/f0/exti.h +++ b/include/libopencm3/stm32/f0/exti.h @@ -1,3 +1,16 @@ +/** @defgroup exti_defines EXTI Defines + * + * @brief Defined Constants and Types for the STM32F0xx External Interrupts + * + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/flash.h b/include/libopencm3/stm32/f0/flash.h index fc524d46..37e5449a 100644 --- a/include/libopencm3/stm32/f0/flash.h +++ b/include/libopencm3/stm32/f0/flash.h @@ -1,3 +1,15 @@ +/** @defgroup flash_defines FLASH Defines + * + * @brief Defined Constants and Types for the STM32F0xx Flash memory + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/i2c.h b/include/libopencm3/stm32/f0/i2c.h index 983dc5b1..82adece4 100644 --- a/include/libopencm3/stm32/f0/i2c.h +++ b/include/libopencm3/stm32/f0/i2c.h @@ -1,3 +1,15 @@ +/** @defgroup i2c_defines I2C Defines + * + * @brief Defined Constants and Types for the STM32F0xx I2C + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/pwr.h b/include/libopencm3/stm32/f0/pwr.h index f880c2dd..e530059d 100644 --- a/include/libopencm3/stm32/f0/pwr.h +++ b/include/libopencm3/stm32/f0/pwr.h @@ -1,8 +1,8 @@ /** @defgroup pwr_defines PWR Defines * - * @brief Defined Constants and Types for the STM32F1xx PWR Control + * @brief Defined Constants and Types for the STM32F0xx PWR Control * - * @ingroup STM32F1xx_defines + * @ingroup STM32F0xx_defines * * @version 1.0.0 * diff --git a/include/libopencm3/stm32/f0/rcc.h b/include/libopencm3/stm32/f0/rcc.h index 306621f8..14e7015c 100644 --- a/include/libopencm3/stm32/f0/rcc.h +++ b/include/libopencm3/stm32/f0/rcc.h @@ -1,4 +1,4 @@ -/** @defgroup STM32F0xx_rcc_defines RCC Defines +/** @defgroup rcc_defines RCC Defines * * @brief libopencm3 STM32F0xx Reset and Clock Control * diff --git a/include/libopencm3/stm32/f0/syscfg.h b/include/libopencm3/stm32/f0/syscfg.h index d91cd7d8..54d6f1ac 100644 --- a/include/libopencm3/stm32/f0/syscfg.h +++ b/include/libopencm3/stm32/f0/syscfg.h @@ -1,3 +1,15 @@ +/** @defgroup syscfg_defines SYSCFG Defines + * + * @brief Defined Constants and Types for the STM32F0xx System Config + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/f0/timer.h b/include/libopencm3/stm32/f0/timer.h new file mode 100644 index 00000000..988b4fe4 --- /dev/null +++ b/include/libopencm3/stm32/f0/timer.h @@ -0,0 +1,32 @@ +/** @defgroup timer_defines Timers Defines + * + * @brief Defined Constants and Types for the STM32F0xx Timers + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2013 Frantisek Burian + * + * 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 . + */ + + diff --git a/include/libopencm3/stm32/f0/tsc.h b/include/libopencm3/stm32/f0/tsc.h index c689966c..5127a27b 100644 --- a/include/libopencm3/stm32/f0/tsc.h +++ b/include/libopencm3/stm32/f0/tsc.h @@ -1,3 +1,15 @@ +/** @defgroup tsc_defines TSC Defines + * + * @brief Defined Constants and Types for the STM32F0xx Touch Sensor + * + * @ingroup STM32F0xx_defines + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/include/libopencm3/stm32/timer.h b/include/libopencm3/stm32/timer.h index 37e9ca57..5b30d8c4 100644 --- a/include/libopencm3/stm32/timer.h +++ b/include/libopencm3/stm32/timer.h @@ -18,8 +18,9 @@ * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see . */ - -#if defined(STM32F1) +#if defined(STM32F0) +# include +#elif defined(STM32F1) # include #elif defined(STM32F2) # include diff --git a/lib/stm32/f0/Makefile b/lib/stm32/f0/Makefile index 0447708d..da33a7fe 100644 --- a/lib/stm32/f0/Makefile +++ b/lib/stm32/f0/Makefile @@ -33,7 +33,8 @@ CFLAGS = -Os -g \ ARFLAGS = rcs -OBJS = flash.o rcc.o usart.o dma.o rtc.o comparator.o spi.o +OBJS = flash.o rcc.o usart.o dma.o rtc.o comparator.o spi.o crc.o \ + dac.o i2c.o iwdg.o pwr.o gpio.o timer.o OBJS += gpio_common_all.o gpio_common_f0234.o crc_common_all.o \ pwr_common_all.o iwdg_common_all.o rtc_common_l1f024.o \ diff --git a/lib/stm32/f0/crc.c b/lib/stm32/f0/crc.c new file mode 100644 index 00000000..03daaf7a --- /dev/null +++ b/lib/stm32/f0/crc.c @@ -0,0 +1,33 @@ +/** @defgroup crc_file CRC + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx CRC + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + +/* + * 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 . + */ + +#include +#include + diff --git a/lib/stm32/f0/dac.c b/lib/stm32/f0/dac.c new file mode 100644 index 00000000..f176a0c4 --- /dev/null +++ b/lib/stm32/f0/dac.c @@ -0,0 +1,33 @@ +/** @defgroup dac_file DAC + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx DAC + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + +/* + * 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 . + */ + +#include +#include + diff --git a/lib/stm32/f0/gpio.c b/lib/stm32/f0/gpio.c new file mode 100644 index 00000000..f60b4289 --- /dev/null +++ b/lib/stm32/f0/gpio.c @@ -0,0 +1,31 @@ +/** @defgroup gpio_file GPIO + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx General Purpose I/O + * + * @version 1.0.0 + * + * @date 18 August 2012 + * + * LGPL License Terms @ref lgpl_license + */ + +/* + * 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 . + */ + +#include diff --git a/lib/stm32/f0/i2c.c b/lib/stm32/f0/i2c.c new file mode 100644 index 00000000..a39c4be7 --- /dev/null +++ b/lib/stm32/f0/i2c.c @@ -0,0 +1,32 @@ +/** @defgroup i2c_file I2C + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx I2C + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + +/* + * 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 . + */ + +#include + diff --git a/lib/stm32/f0/iwdg.c b/lib/stm32/f0/iwdg.c new file mode 100644 index 00000000..52d17598 --- /dev/null +++ b/lib/stm32/f0/iwdg.c @@ -0,0 +1,33 @@ +/** @defgroup iwdg_file IWDG + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx Independent Watchdog Timer + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + +/* + * 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 . + */ + +#include +#include + diff --git a/lib/stm32/f0/pwr.c b/lib/stm32/f0/pwr.c new file mode 100644 index 00000000..52d323eb --- /dev/null +++ b/lib/stm32/f0/pwr.c @@ -0,0 +1,38 @@ +/** @defgroup pwr-file PWR + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx Power Control + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * This library supports the power control system for the + * STM32F0 series of ARM Cortex Microcontrollers by ST Microelectronics. + * + * LGPL License Terms @ref lgpl_license + */ +/* + * 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 . + */ + +/**@{*/ + +#include + +/**@}*/ + diff --git a/lib/stm32/f0/rcc.c b/lib/stm32/f0/rcc.c index f570b263..8f964639 100644 --- a/lib/stm32/f0/rcc.c +++ b/lib/stm32/f0/rcc.c @@ -1,6 +1,6 @@ /** @defgroup STM32F0xx-rcc-file RCC * - * @ingroup STM32F1xx + * @ingroup STM32F0xx * * @brief libopencm3 STM32F0xx Reset and Clock Control * diff --git a/lib/stm32/f0/spi.c b/lib/stm32/f0/spi.c index 060e557d..3546769d 100644 --- a/lib/stm32/f0/spi.c +++ b/lib/stm32/f0/spi.c @@ -1,3 +1,15 @@ +/** @defgroup spi_file SPI + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx Serial Peripheral Interface + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ /* * This file is part of the libopencm3 project. * diff --git a/lib/stm32/f0/syscfg.c b/lib/stm32/f0/syscfg.c new file mode 100644 index 00000000..5067d96f --- /dev/null +++ b/lib/stm32/f0/syscfg.c @@ -0,0 +1,31 @@ +/** @defgroup syscfg_file SYSCFG + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx SYSCFG + * + * @version 1.0.0 + * + * @date 10 July 2013 + * + * LGPL License Terms @ref lgpl_license + */ + +/* + * 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 . + */ + +#include diff --git a/lib/stm32/f0/timer.c b/lib/stm32/f0/timer.c new file mode 100644 index 00000000..88006834 --- /dev/null +++ b/lib/stm32/f0/timer.c @@ -0,0 +1,34 @@ +/** @defgroup timer_file Timers + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx Timers + * + * @version 1.0.0 + * + * @date 11 July 2013 + * + */ + +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2010 Edward Cheeseman + * Copyright (C) 2011 Stephen Caudle + * + * 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 . + */ + +#include +