mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 11:21:12 +03:00
cpp_headers: Renamed C++ headers from .h -> .hpp
To make room for UPM C and C++ sensor code to coexist, all UPM C++ headers have been renamed from h -> hpp. This commit contains updates to documentation, includes, cmake collateral, examples, and swig interface files. * Renamed all cxx/cpp header files which contain the string 'copyright intel' from .h -> .hpp (if not already hpp). * Replaced all references to .h with .hpp in documentation, source files, cmake collateral, example code, and swig interface files. * Replaced cmake variable module_h with module_hpp. * Intentionally left upm.h since this file currently does not contain code (documentation only). Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
set (libname "mpu9150")
|
||||
set (libdescription "gyro, acceleromter and magnometer sensor based on mpu9150")
|
||||
set (module_src ${libname}.cxx ak8975.cxx mpu60x0.cxx mpu9250.cxx)
|
||||
set (module_h ${libname}.h ak8975.h mpu60x0.h mpu9250.h)
|
||||
set (module_hpp ${libname}.hpp ak8975.hpp mpu60x0.hpp mpu9250.hpp)
|
||||
upm_module_init()
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "ak8975.h"
|
||||
#include "ak8975.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
@ -7,8 +7,8 @@
|
||||
%apply int {mraa::Edge};
|
||||
|
||||
%{
|
||||
#include "mpu60x0.h"
|
||||
#include "mpu9150.h"
|
||||
#include "mpu60x0.hpp"
|
||||
#include "mpu9150.hpp"
|
||||
%}
|
||||
|
||||
|
||||
@ -30,8 +30,8 @@
|
||||
%ignore getGyroscope(float *, float *, float *);
|
||||
%ignore getMagnetometer(float *, float *, float *);
|
||||
|
||||
%include "mpu60x0.h"
|
||||
%include "mpu9150.h"
|
||||
%include "mpu60x0.hpp"
|
||||
%include "mpu9150.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
|
@ -5,26 +5,26 @@
|
||||
%pointer_functions(float, floatp);
|
||||
|
||||
%{
|
||||
#include "mpu9150.h"
|
||||
#include "mpu9150.hpp"
|
||||
%}
|
||||
|
||||
%include "ak8975.h"
|
||||
%include "ak8975.hpp"
|
||||
%{
|
||||
#include "ak8975.h"
|
||||
#include "ak8975.hpp"
|
||||
%}
|
||||
|
||||
%include "mpu60x0.h"
|
||||
%include "mpu60x0.hpp"
|
||||
%{
|
||||
#include "mpu60x0.h"
|
||||
#include "mpu60x0.hpp"
|
||||
%}
|
||||
|
||||
%include "mpu9150.h"
|
||||
%include "mpu9150.hpp"
|
||||
%{
|
||||
#include "mpu9150.h"
|
||||
#include "mpu9150.hpp"
|
||||
%}
|
||||
|
||||
%include "mpu9250.h"
|
||||
%include "mpu9250.hpp"
|
||||
%{
|
||||
#include "mpu9250.h"
|
||||
#include "mpu9250.hpp"
|
||||
%}
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpu60x0.h"
|
||||
#include "mpu60x0.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mpu9150.h"
|
||||
#include "mpu9150.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
@ -24,8 +24,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mpu60x0.h"
|
||||
#include "ak8975.h"
|
||||
#include "mpu60x0.hpp"
|
||||
#include "ak8975.hpp"
|
||||
|
||||
#define MPU9150_I2C_BUS 0
|
||||
#define MPU9150_DEFAULT_I2C_ADDR MPU60X0_DEFAULT_I2C_ADDR
|
@ -26,7 +26,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mpu9250.h"
|
||||
#include "mpu9250.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mpu9150.h"
|
||||
#include "mpu9150.hpp"
|
||||
|
||||
#define MPU9250_I2C_BUS 0
|
||||
#define MPU9250_DEFAULT_I2C_ADDR MPU9150_DEFAULT_I2C_ADDR
|
@ -10,23 +10,23 @@
|
||||
|
||||
%pointer_functions(float, floatp);
|
||||
|
||||
%include "ak8975.h"
|
||||
%include "ak8975.hpp"
|
||||
%{
|
||||
#include "ak8975.h"
|
||||
#include "ak8975.hpp"
|
||||
%}
|
||||
|
||||
%include "mpu60x0.h"
|
||||
%include "mpu60x0.hpp"
|
||||
%{
|
||||
#include "mpu60x0.h"
|
||||
#include "mpu60x0.hpp"
|
||||
%}
|
||||
|
||||
%include "mpu9150.h"
|
||||
%include "mpu9150.hpp"
|
||||
%{
|
||||
#include "mpu9150.h"
|
||||
#include "mpu9150.hpp"
|
||||
%}
|
||||
|
||||
%include "mpu9250.h"
|
||||
%include "mpu9250.hpp"
|
||||
%{
|
||||
#include "mpu9250.h"
|
||||
#include "mpu9250.hpp"
|
||||
%}
|
||||
|
||||
|
Reference in New Issue
Block a user