mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-15 00:04:11 +02:00
Removing unnecessary “defined(STM32F4)”
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#if !defined(GLOBALS_H)
|
#if !defined(GLOBALS_H)
|
||||||
#define GLOBALS_H
|
#define GLOBALS_H
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4)
|
#if defined(STM32F4XX)
|
||||||
#include "stm32f4xx.h"
|
#include "stm32f4xx.h"
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
#include "stm32f7xx.h"
|
#include "stm32f7xx.h"
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#define ARM_MATH_CM3
|
#define ARM_MATH_CM3
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
#define ARM_MATH_CM7
|
#define ARM_MATH_CM7
|
||||||
#elif defined(STM32F4XX) || defined(STM32F4) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
#elif defined(STM32F4XX) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||||
#define ARM_MATH_CM4
|
#define ARM_MATH_CM4
|
||||||
#else
|
#else
|
||||||
#error "Unknown processor type"
|
#error "Unknown processor type"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "IO.h"
|
#include "IO.h"
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4) || defined(STM32F7XX)
|
#if defined(STM32F4XX) || defined(STM32F7XX)
|
||||||
|
|
||||||
#if defined(STM32F4_DISCOVERY)
|
#if defined(STM32F4_DISCOVERY)
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4) || defined(STM32F7XX) || defined(STM32F105xC)
|
#if defined(STM32F4XX) || defined(STM32F7XX) || defined(STM32F105xC)
|
||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA.
|
|||||||
#if !defined(RSSIRB_H)
|
#if !defined(RSSIRB_H)
|
||||||
#define RSSIRB_H
|
#define RSSIRB_H
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4)
|
#if defined(STM32F4XX)
|
||||||
#include "stm32f4xx.h"
|
#include "stm32f4xx.h"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA.
|
|||||||
#if !defined(SAMPLERB_H)
|
#if !defined(SAMPLERB_H)
|
||||||
#define SAMPLERB_H
|
#define SAMPLERB_H
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4)
|
#if defined(STM32F4XX)
|
||||||
#include "stm32f4xx.h"
|
#include "stm32f4xx.h"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA.
|
|||||||
#if !defined(SERIALRB_H)
|
#if !defined(SERIALRB_H)
|
||||||
#define SERIALRB_H
|
#define SERIALRB_H
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4)
|
#if defined(STM32F4XX)
|
||||||
#include "stm32f4xx.h"
|
#include "stm32f4xx.h"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ UART5 - TXD PC12 - RXD PD2 (Discovery, Pi and Nucleo with Morpho header)
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4) || defined(STM32F7XX)
|
#if defined(STM32F4XX) || defined(STM32F7XX)
|
||||||
|
|
||||||
#define TX_SERIAL_FIFO_SIZE 512U
|
#define TX_SERIAL_FIFO_SIZE 512U
|
||||||
#define RX_SERIAL_FIFO_SIZE 512U
|
#define RX_SERIAL_FIFO_SIZE 512U
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#if !defined(UTILS_H)
|
#if !defined(UTILS_H)
|
||||||
#define UTILS_H
|
#define UTILS_H
|
||||||
|
|
||||||
#if defined(STM32F4XX) || defined(STM32F4)
|
#if defined(STM32F4XX)
|
||||||
#include "stm32f4xx.h"
|
#include "stm32f4xx.h"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
|
|||||||
Reference in New Issue
Block a user