Library for Modtronix NZ32 STM32 boards, like the NZ32-SC151, NZ32-SB072, NZ32-SE411 and others
nz32s_default_config.h@15:3fd3c1ce01be, 2016-08-13 (annotated)
- Committer:
- modtronix-com
- Date:
- Sat Aug 13 12:57:48 2016 +1000
- Revision:
- 15:3fd3c1ce01be
- Parent:
- 13:328bfac0e686
- Child:
- 17:86034c970ea0
Added support for Windowed and Independent WDT
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
modtronix | 3:99cb87ee1792 | 1 | /** |
modtronix-com |
13:328bfac0e686 | 2 | * File: nz32s_default_config.h |
modtronix | 3:99cb87ee1792 | 3 | * |
modtronix | 3:99cb87ee1792 | 4 | * Author: Modtronix Engineering - www.modtronix.com |
modtronix | 3:99cb87ee1792 | 5 | * |
modtronix | 3:99cb87ee1792 | 6 | * Description: |
modtronix | 3:99cb87ee1792 | 7 | * |
modtronix | 3:99cb87ee1792 | 8 | * Software License Agreement: |
modtronix | 3:99cb87ee1792 | 9 | * This software has been written or modified by Modtronix Engineering. The code |
modtronix | 3:99cb87ee1792 | 10 | * may be modified and can be used free of charge for commercial and non commercial |
modtronix | 3:99cb87ee1792 | 11 | * applications. If this is modified software, any license conditions from original |
modtronix | 3:99cb87ee1792 | 12 | * software also apply. Any redistribution must include reference to 'Modtronix |
modtronix | 3:99cb87ee1792 | 13 | * Engineering' and web link(www.modtronix.com) in the file header. |
modtronix | 3:99cb87ee1792 | 14 | * |
modtronix | 3:99cb87ee1792 | 15 | * THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, |
modtronix | 3:99cb87ee1792 | 16 | * IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
modtronix | 3:99cb87ee1792 | 17 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE |
modtronix | 3:99cb87ee1792 | 18 | * COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR |
modtronix | 3:99cb87ee1792 | 19 | * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
modtronix | 3:99cb87ee1792 | 20 | */ |
modtronix | 3:99cb87ee1792 | 21 | #ifndef MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ |
modtronix | 3:99cb87ee1792 | 22 | #define MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ |
modtronix | 3:99cb87ee1792 | 23 | |
modtronix-com |
13:328bfac0e686 | 24 | //This file requires a file called "modtronix_config.h" to exist in the project! |
modtronix-com |
13:328bfac0e686 | 25 | //Use this file to override any of the default defines below. Do NOT edit this file! |
modtronix-com |
13:328bfac0e686 | 26 | #if !defined(NO_MODTRONIX_CONFIG) |
modtronix-com |
13:328bfac0e686 | 27 | #include "modtronix_config.h" |
modtronix-com |
13:328bfac0e686 | 28 | #endif |
modtronix | 3:99cb87ee1792 | 29 | |
modtronix | 3:99cb87ee1792 | 30 | |
modtronix | 3:99cb87ee1792 | 31 | // Copy from here to custom nz32s_defines.h file ////////////////////////////// |
modtronix | 3:99cb87ee1792 | 32 | |
modtronix | 3:99cb87ee1792 | 33 | //Set to 1 to disable A13 and A14 from being used(are SWD serial program/debug ping). Must be done if |
modtronix | 3:99cb87ee1792 | 34 | //debugging is going to be used. These pins are used by ST-Link for programming debugging, but also used |
modtronix | 3:99cb87ee1792 | 35 | //for battery level monitoring, and enabling fast battery charge. Setting this define to 0 will disable these |
modtronix | 3:99cb87ee1792 | 36 | //functions, but will enable programming and debugging via SWD (ST-Link) |
modtronix | 3:99cb87ee1792 | 37 | #if !defined(DONT_USE_A13_A14) |
modtronix | 3:99cb87ee1792 | 38 | #define DONT_USE_A13_A14 1 |
modtronix | 3:99cb87ee1792 | 39 | #endif |
modtronix | 3:99cb87ee1792 | 40 | |
modtronix-com |
15:3fd3c1ce01be | 41 | //Defines is Windowed or Independent Watchdog timer should be used. Windowed Watchdog Timer, is topped during |
modtronix-com |
15:3fd3c1ce01be | 42 | //low power mode, but Independent is NOT(will reset CPU). Use WWDG if CPU will go to low power mode |
modtronix-com |
15:3fd3c1ce01be | 43 | #if !defined(NZ32S_USE_WWDG) |
modtronix-com |
15:3fd3c1ce01be | 44 | #define NZ32S_USE_WWDG 1 |
modtronix-com |
15:3fd3c1ce01be | 45 | #endif |
modtronix-com |
15:3fd3c1ce01be | 46 | |
modtronix-com |
15:3fd3c1ce01be | 47 | |
modtronix | 3:99cb87ee1792 | 48 | // End of contents to copy to custom nz32s_defines.h file ///////////////////// |
modtronix | 3:99cb87ee1792 | 49 | |
modtronix | 3:99cb87ee1792 | 50 | #endif /* MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ */ |