mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41: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 "ads1x15")
|
||||
set (libdescription "analog to digital converter")
|
||||
set (module_src ${libname}.cxx ads1115.cxx ads1015.cxx)
|
||||
set (module_h ${libname}.h ads1115.h ads1015.h)
|
||||
set (module_hpp ${libname}.hpp ads1115.hpp ads1015.hpp)
|
||||
upm_module_init()
|
@ -21,7 +21,7 @@
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include "ads1015.h"
|
||||
#include "ads1015.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,8 +25,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ads1x15.h"
|
||||
#include "upm/iADC.h"
|
||||
#include "ads1x15.hpp"
|
||||
#include "upm/iADC.hpp"
|
||||
|
||||
#define ADS1015_VREF 2.048
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include "ads1115.h"
|
||||
#include "ads1115.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ads1x15.h"
|
||||
#include "ads1x15.hpp"
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "ads1x15.h"
|
||||
#include "ads1x15.hpp"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -3,14 +3,14 @@
|
||||
%include "typemaps.i"
|
||||
|
||||
%{
|
||||
#include "ads1x15.h"
|
||||
#include "ads1015.h"
|
||||
#include "ads1115.h"
|
||||
#include "ads1x15.hpp"
|
||||
#include "ads1015.hpp"
|
||||
#include "ads1115.hpp"
|
||||
%}
|
||||
|
||||
%include "ads1x15.h"
|
||||
%include "ads1015.h"
|
||||
%include "ads1115.h"
|
||||
%include "ads1x15.hpp"
|
||||
%include "ads1015.hpp"
|
||||
%include "ads1115.hpp"
|
||||
|
||||
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
%module jsupm_ads1x15
|
||||
%include "../upm.i"
|
||||
|
||||
%include "ads1x15.h"
|
||||
%include "ads1x15.hpp"
|
||||
%{
|
||||
#include "ads1x15.h"
|
||||
#include "ads1x15.hpp"
|
||||
%}
|
||||
|
||||
%include "ads1015.h"
|
||||
%include "ads1015.hpp"
|
||||
%{
|
||||
#include "ads1015.h"
|
||||
#include "ads1015.hpp"
|
||||
%}
|
||||
|
||||
%include "ads1115.h"
|
||||
%include "ads1115.hpp"
|
||||
%{
|
||||
#include "ads1115.h"
|
||||
#include "ads1115.hpp"
|
||||
%}
|
@ -5,17 +5,17 @@
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%include "ads1x15.h"
|
||||
%include "ads1x15.hpp"
|
||||
%{
|
||||
#include "ads1x15.h"
|
||||
#include "ads1x15.hpp"
|
||||
%}
|
||||
|
||||
%include "ads1015.h"
|
||||
%include "ads1015.hpp"
|
||||
%{
|
||||
#include "ads1015.h"
|
||||
#include "ads1015.hpp"
|
||||
%}
|
||||
|
||||
%include "ads1115.h"
|
||||
%include "ads1115.hpp"
|
||||
%{
|
||||
#include "ads1115.h"
|
||||
#include "ads1115.hpp"
|
||||
%}
|
Reference in New Issue
Block a user