Changed External oscillator to 16MHz, moved defined to device.h

For NZ32-SC151 fixed External oscillator frquency to 16MHz, and, moved
defined to device.h
pull/1277/head
modtronix-com 2015-08-04 12:35:23 +10:00
parent 8ef4c2ec12
commit 25144420ab
3 changed files with 15 additions and 15 deletions

View File

@ -64,20 +64,6 @@
* @{
*/
//MODTRONIX specific, provide place for adding global define. Alternative to adding them in IDE project properties.
//Add project defines here, or add them to your toolchain compiler preprocessor
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)16000000) /*!< Value of the External oscillator in Hz */
#endif
//Defines what ports to use for default serial port.
//0 = B10/B11
//1 = A2/A3
#if !defined (MX_DEFAULT_SERIAL_PINS)
#define MX_DEFAULT_SERIAL_PINS 0 /*!< Use B10/B11 for default serial port, in stead of A2/A3 */
#endif
/* Uncomment the line below according to the target STM32L device used in your
application
*/

View File

@ -89,7 +89,7 @@
* (when HSE is used as system clock source, directly or through the PLL).
*/
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
#define HSE_VALUE ((uint32_t)16000000) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */
#if !defined (HSE_STARTUP_TIMEOUT)

View File

@ -30,6 +30,20 @@
#ifndef MBED_DEVICE_H
#define MBED_DEVICE_H
//MODTRONIX BEGIN
//Provide place for adding global define. Alternative to adding them in IDE project
//properties. Add project defines here, or add them to your toolchain compiler preprocessor
//Defines what ports to use for default serial port.
//0 = B10/B11
//1 = A2/A3
#if !defined (MX_DEFAULT_SERIAL_PINS)
#define MX_DEFAULT_SERIAL_PINS 0 // Use B10/B11 for default serial port, in stead of A2/A3
#endif
//MODTRONIX END
#define DEVICE_PORTIN 1
#define DEVICE_PORTOUT 1
#define DEVICE_PORTINOUT 1