aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f1
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stm32/f1')
-rw-r--r--lib/stm32/f1/crc.c5
-rw-r--r--lib/stm32/f1/dac.c5
-rw-r--r--lib/stm32/f1/dma.c5
-rw-r--r--lib/stm32/f1/i2c.c5
-rw-r--r--lib/stm32/f1/iwdg.c5
-rw-r--r--lib/stm32/f1/pwr.c177
-rw-r--r--lib/stm32/f1/rtc.c20
-rw-r--r--lib/stm32/f1/spi.c5
-rw-r--r--lib/stm32/f1/usart.c5
9 files changed, 54 insertions, 178 deletions
diff --git a/lib/stm32/f1/crc.c b/lib/stm32/f1/crc.c
index 505fb79..8c88052 100644
--- a/lib/stm32/f1/crc.c
+++ b/lib/stm32/f1/crc.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx CRC</b>
+@version 1.0.0
+
+@date 15 October 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*
diff --git a/lib/stm32/f1/dac.c b/lib/stm32/f1/dac.c
index 90dc029..d0a2372 100644
--- a/lib/stm32/f1/dac.c
+++ b/lib/stm32/f1/dac.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx DAC</b>
+@version 1.0.0
+
+@date 18 August 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*
diff --git a/lib/stm32/f1/dma.c b/lib/stm32/f1/dma.c
index f22baef..3156508 100644
--- a/lib/stm32/f1/dma.c
+++ b/lib/stm32/f1/dma.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx DMA</b>
+@version 1.0.0
+
+@date 18 August 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*
diff --git a/lib/stm32/f1/i2c.c b/lib/stm32/f1/i2c.c
index 2d86bf3..1f7e7a5 100644
--- a/lib/stm32/f1/i2c.c
+++ b/lib/stm32/f1/i2c.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx I2C</b>
+@version 1.0.0
+
+@date 15 October 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*
diff --git a/lib/stm32/f1/iwdg.c b/lib/stm32/f1/iwdg.c
index 85cf18c..f44a9e4 100644
--- a/lib/stm32/f1/iwdg.c
+++ b/lib/stm32/f1/iwdg.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx Independent Watchdog Timer</b>
+@version 1.0.0
+
+@date 18 August 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*
diff --git a/lib/stm32/f1/pwr.c b/lib/stm32/f1/pwr.c
index 451ed1c..8e59bab 100644
--- a/lib/stm32/f1/pwr.c
+++ b/lib/stm32/f1/pwr.c
@@ -1,4 +1,4 @@
-/** @defgroup STM32F1xx-pwr-file PWR
+/** @defgroup pwr-file PWR
@ingroup STM32F1xx
@@ -38,180 +38,5 @@ LGPL License Terms @ref lgpl_license
#include <libopencm3/stm32/pwr.h>
-/*---------------------------------------------------------------------------*/
-/** @brief Disable Backup Domain Write Protection.
-
-This allows backup domain registers to be changed. These registers are write
-protected after a reset.
-*/
-
-void pwr_disable_backup_domain_write_protect(void)
-{
- PWR_CR |= PWR_CR_DBP;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Re-enable Backup Domain Write Protection.
-
-This protects backup domain registers from inadvertent change.
-*/
-
-void pwr_enable_backup_domain_write_protect(void)
-{
- PWR_CR &= ~PWR_CR_DBP;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Enable Power Voltage Detector.
-
-This provides voltage level threshold detection. The result of detection is
-provided in the power voltage detector output flag (see @ref pwr_voltage_high)
-or by setting the EXTI16 interrupt (see datasheet for configuration details).
-
-@param[in] pvd_level u32. Taken from @ref pwr_pls.
-*/
-
-void pwr_enable_power_voltage_detect(u32 pvd_level)
-{
- PWR_CR &= ~PWR_CR_PLS_MASK;
- PWR_CR |= (PWR_CR_PVDE | pvd_level);
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Disable Power Voltage Detector.
-
-*/
-
-void pwr_disable_power_voltage_detect(void)
-{
- PWR_CR &= ~PWR_CR_PVDE;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Clear the Standby Flag.
-
-This is set when the processor returns from a standby mode.
-*/
-
-void pwr_clear_standby_flag(void)
-{
- PWR_CR |= PWR_CR_CSBF;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Clear the Wakeup Flag.
-
-This is set when the processor receives a wakeup signal.
-*/
-
-void pwr_clear_wakeup_flag(void)
-{
- PWR_CR |= PWR_CR_CWUF;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Set Standby Mode in Deep Sleep.
-
-*/
-
-void pwr_set_standby_mode(void)
-{
- PWR_CR |= PWR_CR_PDDS;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Set Stop Mode in Deep Sleep.
-
-*/
-
-void pwr_set_stop_mode(void)
-{
- PWR_CR &= ~PWR_CR_PDDS;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Voltage Regulator On in Stop Mode.
-
-*/
-
-void pwr_voltage_regulator_on_in_stop(void)
-{
- PWR_CR &= ~PWR_CR_LPDS;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Voltage Regulator Low Power in Stop Mode.
-
-*/
-
-void pwr_voltage_regulator_low_power_in_stop(void)
-{
- PWR_CR |= PWR_CR_LPDS;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Enable Wakeup Pin.
-
-The wakeup pin is used for waking the processor from standby mode.
-*/
-
-void pwr_enable_wakeup_pin(void)
-{
- PWR_CSR |= PWR_CSR_EWUP;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Release Wakeup Pin.
-
-The wakeup pin is used for general purpose I/O.
-*/
-
-void pwr_disable_wakeup_pin(void)
-{
- PWR_CSR &= ~PWR_CSR_EWUP;
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Get Voltage Detector Output.
-
-The voltage detector threshold must be set when the power voltage detector is
-enabled, see @ref pwr_enable_power_voltage_detect.
-
-@returns boolean: TRUE if the power voltage is above the preset voltage
-threshold.
-*/
-
-bool pwr_voltage_high(void)
-{
- return (PWR_CSR & PWR_CSR_PVDO);
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Get Standby Flag.
-
-The standby flag is set when the processor returns from a standby state. It is
-cleared by software (see @ref pwr_clear_standby_flag).
-
-@returns boolean: TRUE if the processor was in standby state.
-*/
-
-bool pwr_get_standby_flag(void)
-{
- return (PWR_CSR & PWR_CSR_SBF);
-}
-
-/*---------------------------------------------------------------------------*/
-/** @brief Get Wakeup Flag.
-
-The wakeup flag is set when a wakeup event has been received. It is
-cleared by software (see @ref pwr_clear_wakeup_flag).
-
-@returns boolean: TRUE if a wakeup event was received.
-*/
-
-bool pwr_get_wakeup_flag(void)
-{
- return (PWR_CSR & PWR_CSR_WUF);
-}
/**@}*/
diff --git a/lib/stm32/f1/rtc.c b/lib/stm32/f1/rtc.c
index cfc5f5b..24b19ce 100644
--- a/lib/stm32/f1/rtc.c
+++ b/lib/stm32/f1/rtc.c
@@ -1,3 +1,19 @@
+/** @defgroup rtc_file RTC
+
+@ingroup STM32F1xx
+
+@brief <b>libopencm3 STM32F1xx RTC</b>
+
+@author @htmlonly &copy; @endhtmlonly 2010 Uwe Hermann <uwe@hermann-uwe.de>
+@author @htmlonly &copy; @endhtmlonly 2010 Lord James <lordjames@y7mail.com>
+
+@version 1.0.0
+
+@date 4 March 2013
+
+LGPL License Terms @ref lgpl_license
+*/
+
/*
* This file is part of the libopencm3 project.
*
@@ -18,8 +34,8 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopencm3/stm32/f1/rcc.h>
-#include <libopencm3/stm32/f1/rtc.h>
+#include <libopencm3/stm32/rcc.h>
+#include <libopencm3/stm32/rtc.h>
#include <libopencm3/stm32/pwr.h>
void rtc_awake_from_off(osc_t clock_source)
diff --git a/lib/stm32/f1/spi.c b/lib/stm32/f1/spi.c
index 3be5c23..f3f36e3 100644
--- a/lib/stm32/f1/spi.c
+++ b/lib/stm32/f1/spi.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx SPI</b>
+@version 1.0.0
+
+@date 15 October 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*
diff --git a/lib/stm32/f1/usart.c b/lib/stm32/f1/usart.c
index ecf2b06..13e20b2 100644
--- a/lib/stm32/f1/usart.c
+++ b/lib/stm32/f1/usart.c
@@ -4,6 +4,11 @@
@brief <b>libopencm3 STM32F1xx USART</b>
+@version 1.0.0
+
+@date 30 August 2012
+
+LGPL License Terms @ref lgpl_license
*/
/*