summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/chip/stm32_pwr.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-10 19:07:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-10 19:07:13 +0000
commit610648a0b4a6115a3d73a40ae108fb18a75c1965 (patch)
treeb60022b91db5775403fb1e1fca1b5ccd4f69e01e /nuttx/arch/arm/src/stm32/chip/stm32_pwr.h
parent8a161fa847642f5c652ec4541502c6a8de8a9696 (diff)
downloadpx4-nuttx-610648a0b4a6115a3d73a40ae108fb18a75c1965.tar.gz
px4-nuttx-610648a0b4a6115a3d73a40ae108fb18a75c1965.tar.bz2
px4-nuttx-610648a0b4a6115a3d73a40ae108fb18a75c1965.zip
Many STM32 header files updated for F3 support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5635 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip/stm32_pwr.h')
-rw-r--r--nuttx/arch/arm/src/stm32/chip/stm32_pwr.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_pwr.h b/nuttx/arch/arm/src/stm32/chip/stm32_pwr.h
index 2ece6a357..4e817a2c1 100644
--- a/nuttx/arch/arm/src/stm32/chip/stm32_pwr.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32_pwr.h
@@ -1,7 +1,7 @@
/************************************************************************************
* arch/arm/src/stm32/chip/stm32_pwr.h
*
- * Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -93,7 +93,12 @@
# define PWR_CSR_BRR (1 << 3) /* Bit 3: Backup regulator ready */
#endif
-#define PWR_CSR_EWUP (1 << 8) /* Bit 8: Enable WKUP pin */
+#if defined(CONFIG_STM32_STM32F30XX)
+# define PWR_CSR_EWUP1 (1 << 8) /* Bit 8: Enable WKUP1 pin */
+# define PWR_CSR_EWUP2 (1 << 9) /* Bit 9: Enable WKUP2 pin */
+#else
+# define PWR_CSR_EWUP (1 << 8) /* Bit 8: Enable WKUP pin */
+#endif
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
# define PWR_CSR_BRE (1 << 9) /* Bit 9: Backup regulator enable */