Library for Modtronix NZ32 STM32 boards, like the NZ32-SC151, NZ32-SB072, NZ32-SE411 and others

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers nz32s_default_config.h Source File

nz32s_default_config.h

00001 /**
00002  * File:      nz32s_default_config.h
00003  *
00004  * Author:    Modtronix Engineering - www.modtronix.com
00005  *
00006  * Description:
00007  *
00008  * Software License Agreement:
00009  * This software has been written or modified by Modtronix Engineering. The code
00010  * may be modified and can be used free of charge for commercial and non commercial
00011  * applications. If this is modified software, any license conditions from original
00012  * software also apply. Any redistribution must include reference to 'Modtronix
00013  * Engineering' and web link(www.modtronix.com) in the file header.
00014  *
00015  * THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS,
00016  * IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
00017  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE
00018  * COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
00019  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
00020  */
00021 #ifndef MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_
00022 #define MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_
00023 
00024 //This file requires a file called "modtronix_config.h" to exist in the project!
00025 //Use this file to override any of the default defines below. Do NOT edit this file!
00026 #if !defined(NO_MODTRONIX_CONFIG)
00027     #include "modtronix_config.h"
00028 #endif
00029 
00030 
00031 // Copy from here to custom nz32s_defines.h file //////////////////////////////
00032 
00033 //Set to 0 to disable A13 and A14 from being used(are SWD serial program/debug ping). Must be done if
00034 //debugging is going to be used. These pins are used by ST-Link for programming debugging, but also used
00035 //for battery level monitoring, and enabling fast battery charge. Setting this define to 0 will disable these
00036 //functions, but will enable programming and debugging via SWD (ST-Link)
00037 #if !defined(NZ32S_USE_A13_A14)
00038 #define     NZ32S_USE_A13_A14    0
00039 #endif
00040 
00041 //Defines is Windowed or Independent Watchdog timer should be used. Windowed Watchdog Timer, is topped during
00042 //low power mode, but Independent is NOT(will reset CPU). Use WWDG if CPU will go to low power mode
00043 #if !defined(NZ32S_USE_WWDG)
00044 #define     NZ32S_USE_WWDG    1
00045 #endif
00046 
00047 
00048 // End of contents to copy to custom nz32s_defines.h file /////////////////////
00049 
00050 #endif /* MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ */