diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-04-16 22:43:40 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-04-16 22:43:40 +0000 |
commit | 8331e44b7a348a637815dd38fc62c1840feb5ca8 (patch) | |
tree | 3f20817f21972b182fa7b010960c91a92055aeac /nuttx/configs/stm3240g-eval | |
parent | 461a0ea6cc9fb889343058124489a916fd79d5ee (diff) |
Add watchdog timer configuration info to all STM32 configurations
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4621 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/stm3240g-eval')
-rwxr-xr-x | nuttx/configs/stm3240g-eval/README.txt | 21 | ||||
-rw-r--r-- | nuttx/configs/stm3240g-eval/nsh/appconfig | 4 | ||||
-rw-r--r-- | nuttx/configs/stm3240g-eval/nsh2/appconfig | 4 |
3 files changed, 27 insertions, 2 deletions
diff --git a/nuttx/configs/stm3240g-eval/README.txt b/nuttx/configs/stm3240g-eval/README.txt index 1fb7d6ff43..1db2f88584 100755 --- a/nuttx/configs/stm3240g-eval/README.txt +++ b/nuttx/configs/stm3240g-eval/README.txt @@ -901,7 +901,23 @@ Where <subdir> is one of the following: CONFIG_DISABLE_POLL=n - 7. This configuration requires that jumper JP22 be set to enable RS-232 operation. + 7. This example supports the watchdog timer test (apps/examples/watchdog) + buty this must be manually enabled by selecting: + + CONFIG_WATCHDOG=y : Enables watchdog timer driver support + CONFIG_STM32_WWDG=y : Enables the WWDG timer facility, OR + CONFIG_STM32_IWDG=y : Enables the IWDG timer facility (but not both) + + The WWDG watchdog is driven off the (fast) 42MHz PCLK1 and, as result, + has a maximum timeout value of 49 milliseconds. for WWDG watchdog, you + should also add the fillowing to the configuration file: + + CONFIG_EXAMPLES_WATCHDOG_PINGDELAY=20 + CONFIG_EXAMPLES_WATCHDOG_TIMEOUT=49 + + The IWDG timer has a range of about 35 seconds and should not be an issue. + + 8. This configuration requires that jumper JP22 be set to enable RS-232 operation. nsh2: ----- @@ -939,7 +955,8 @@ Where <subdir> is one of the following: NOTES: 1. See the notes for the nsh configuration. Most also apply to the nsh2 - configuration. + configuration. Like the nsh configuration, this configuration can + be modified to support a variety of additional tests. 2. RS-232 is disabled, but Telnet is still available for use as a console. Since RS-232 and SDIO use the same pins (one controlled by JP22), RS232 diff --git a/nuttx/configs/stm3240g-eval/nsh/appconfig b/nuttx/configs/stm3240g-eval/nsh/appconfig index 77bf3e9380..ac587d8a2f 100644 --- a/nuttx/configs/stm3240g-eval/nsh/appconfig +++ b/nuttx/configs/stm3240g-eval/nsh/appconfig @@ -76,6 +76,10 @@ ifeq ($(CONFIG_I2C),y) CONFIGURED_APPS += system/i2c endif +ifeq ($(CONFIG_WATCHDOG),y) +CONFIGURED_APPS += examples/watchdog +endif + # Uncomment examples/ftpc to include the FTP client example # Uncomment examples/ftpd to include the FTP daemon example diff --git a/nuttx/configs/stm3240g-eval/nsh2/appconfig b/nuttx/configs/stm3240g-eval/nsh2/appconfig index 83ff084aad..e44a5e5dac 100644 --- a/nuttx/configs/stm3240g-eval/nsh2/appconfig +++ b/nuttx/configs/stm3240g-eval/nsh2/appconfig @@ -76,6 +76,10 @@ ifeq ($(CONFIG_I2C),y) CONFIGURED_APPS += system/i2c endif +ifeq ($(CONFIG_WATCHDOG),y) +CONFIGURED_APPS += examples/watchdog +endif + # Uncomment examples/ftpc to include the FTP client example # Uncomment examples/ftpd to include the FTP daemon example |