Skip to content

Commit

Permalink
Quality of life-improvements to combat the stupidity of the compiler …
Browse files Browse the repository at this point in the history
…at stm32cubeide

Signed-off-by: Øystein Solbø <[email protected]>
  • Loading branch information
oyssolbo committed Jan 12, 2021
1 parent fc28f07 commit b5aa44a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Resource/CMSIS/Include/arm_math.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* @warning Changed by Ø. Solbø on 09.01.21
* Should only be used for the acoustics using a STM32F767ZI.
* If not acoustics or another MCU used, this must be changed!
*/
#ifndef ARM_MATH_CM7
#define ARM_MATH_CM7
#endif /* ARM_MATH_CM7 */


/* ----------------------------------------------------------------------
* Copyright (C) 2010-2015 ARM Limited. All rights reserved.
*
Expand Down
12 changes: 12 additions & 0 deletions Resource/CMSIS/Include/core_cm7.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* @warning Stupid workaround to prevent the compiler from crapping itself!
* Should only be used for the acoustics using a STM32F767ZI.
* If not acoustics or another MCU used, this must be changed!
*
* Changed by Ø. Solbø on 09.01.21
*/
#ifndef __SOFTFP__
#define __SOFTFP__
#endif /* __SOFTFP__ */


/**************************************************************************//**
* @file core_cm7.h
* @brief CMSIS Cortex-M7 Core Peripheral Access Layer Header File
Expand Down
7 changes: 6 additions & 1 deletion Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
/* Private includes -----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

#include <stdint.h>
#include <time.h>

Expand All @@ -33,7 +35,10 @@

/* USER CODE END Includes */

/* USER CODE END Includes */

/* Private variables ---------------------------------------------------------*/
/* USER CODE BEGIN PV */

/* Handler for the ADC, DMA, ETH and SPI */
ADC_HandleTypeDef hadc1;
Expand Down
11 changes: 11 additions & 0 deletions Source/mainpp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "mainpp.h"
#include <ros.h>

ros::NodeHandle nh;

std_msgs::Float32 x_pos_es, y_pos_es;
std_msgs::time_t time_of_es;

ros::init("acoustics");

ros::Publisher pub("Position", &pressure);

0 comments on commit b5aa44a

Please sign in to comment.