Library for Modtronix NZ32 STM32 boards, like the NZ32-SC151, NZ32-SB072, NZ32-SE411 and others
nz32s_default_config.h@3:99cb87ee1792, 2015-08-30 (annotated)
- Committer:
- modtronix
- Date:
- Sun Aug 30 09:23:05 2015 +1000
- Revision:
- 3:99cb87ee1792
- Child:
- 13:328bfac0e686
Updated, added new files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
modtronix | 3:99cb87ee1792 | 1 | /** |
modtronix | 3:99cb87ee1792 | 2 | * File: nz32s_default_defines.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 | 3:99cb87ee1792 | 24 | //This file is used to configure the "modtronix_NZ32S" library. The recommended way to change the defines |
modtronix | 3:99cb87ee1792 | 25 | //in this file is to create a copy of this file in your main project folder. Name it "nz32s_config.h". |
modtronix | 3:99cb87ee1792 | 26 | //To use the defines from this new file, comment the following line. This makes it easier when |
modtronix | 3:99cb87ee1792 | 27 | //upgrading to newer version of this library, seeing that this file with modifications will be |
modtronix | 3:99cb87ee1792 | 28 | //overwritten. After upgrade, all that has to be done is to uncomment following line again. |
modtronix | 3:99cb87ee1792 | 29 | //#define USE_CUSTOM_NZ32S_CONFIG //Uncomment this line after creating "nz32s_config.h" in project |
modtronix | 3:99cb87ee1792 | 30 | |
modtronix | 3:99cb87ee1792 | 31 | #if defined(USE_CUSTOM_NZ32S_CONFIG) |
modtronix | 3:99cb87ee1792 | 32 | #include "nz32s_config.h" |
modtronix | 3:99cb87ee1792 | 33 | #endif |
modtronix | 3:99cb87ee1792 | 34 | |
modtronix | 3:99cb87ee1792 | 35 | // Copy from here to custom nz32s_defines.h file ////////////////////////////// |
modtronix | 3:99cb87ee1792 | 36 | |
modtronix | 3:99cb87ee1792 | 37 | //Set to 1 to disable A13 and A14 from being used(are SWD serial program/debug ping). Must be done if |
modtronix | 3:99cb87ee1792 | 38 | //debugging is going to be used. These pins are used by ST-Link for programming debugging, but also used |
modtronix | 3:99cb87ee1792 | 39 | //for battery level monitoring, and enabling fast battery charge. Setting this define to 0 will disable these |
modtronix | 3:99cb87ee1792 | 40 | //functions, but will enable programming and debugging via SWD (ST-Link) |
modtronix | 3:99cb87ee1792 | 41 | #if !defined(DONT_USE_A13_A14) |
modtronix | 3:99cb87ee1792 | 42 | #define DONT_USE_A13_A14 1 |
modtronix | 3:99cb87ee1792 | 43 | #endif |
modtronix | 3:99cb87ee1792 | 44 | |
modtronix | 3:99cb87ee1792 | 45 | // End of contents to copy to custom nz32s_defines.h file ///////////////////// |
modtronix | 3:99cb87ee1792 | 46 | |
modtronix | 3:99cb87ee1792 | 47 | #endif /* MODTRONIX_NZ32S_NZ32S_DEFAULT_CONFIG_H_ */ |