Library for Modtronix NZ32 STM32 boards, like the NZ32-SC151, NZ32-SB072, NZ32-SE411 and others
nz32s_default_config.h
- Committer:
- modtronix
- Date:
- 2015-08-30
- Revision:
- 3:99cb87ee1792
- Child:
- 13:328bfac0e686
File content as of revision 3:99cb87ee1792:
/** * File: nz32s_default_defines.h * * Author: Modtronix Engineering - www.modtronix.com * * Description: * * Software License Agreement: * This software has been written or modified by Modtronix Engineering. The code * may be modified and can be used free of charge for commercial and non commercial * applications. If this is modified software, any license conditions from original * software also apply. Any redistribution must include reference to 'Modtronix * Engineering' and web link(www.modtronix.com) in the file header. * * THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, * IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE * COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. */ #ifndef MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ #define MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ //This file is used to configure the "modtronix_NZ32S" library. The recommended way to change the defines //in this file is to create a copy of this file in your main project folder. Name it "nz32s_config.h". //To use the defines from this new file, comment the following line. This makes it easier when //upgrading to newer version of this library, seeing that this file with modifications will be //overwritten. After upgrade, all that has to be done is to uncomment following line again. //#define USE_CUSTOM_NZ32S_CONFIG //Uncomment this line after creating "nz32s_config.h" in project #if defined(USE_CUSTOM_NZ32S_CONFIG) #include "nz32s_config.h" #endif // Copy from here to custom nz32s_defines.h file ////////////////////////////// //Set to 1 to disable A13 and A14 from being used(are SWD serial program/debug ping). Must be done if //debugging is going to be used. These pins are used by ST-Link for programming debugging, but also used //for battery level monitoring, and enabling fast battery charge. Setting this define to 0 will disable these //functions, but will enable programming and debugging via SWD (ST-Link) #if !defined(DONT_USE_A13_A14) #define DONT_USE_A13_A14 1 #endif // End of contents to copy to custom nz32s_defines.h file ///////////////////// #endif /* MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ */