aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/devices_lib
diff options
context:
space:
mode:
authorRocco Marco <roccomarco.guglielmi@gmail.com>2015-04-12 17:39:52 +0200
committerRocco Marco <roccomarco.guglielmi@gmail.com>2015-04-12 17:52:11 +0200
commitc845d1fd340f1ce33629dc76ce5134c5dcbf6eb5 (patch)
tree4e2fb2ad5693b7ec346a6c707b02ff98b0784031 /os/various/devices_lib
parentadfa3f75e83bd7b033077cc1b12a3a0a612ce26a (diff)
downloadChibiOS-Contrib-c845d1fd340f1ce33629dc76ce5134c5dcbf6eb5.tar.gz
ChibiOS-Contrib-c845d1fd340f1ce33629dc76ce5134c5dcbf6eb5.tar.bz2
ChibiOS-Contrib-c845d1fd340f1ce33629dc76ce5134c5dcbf6eb5.zip
Added email contact
Fixed Bug on chDbgAssert() passing 2 arguments instead of 3
Diffstat (limited to 'os/various/devices_lib')
-rw-r--r--os/various/devices_lib/l3gd20.c10
-rw-r--r--os/various/devices_lib/l3gd20.h6
-rw-r--r--os/various/devices_lib/lis3mdl.c8
-rw-r--r--os/various/devices_lib/lis3mdl.h6
-rw-r--r--os/various/devices_lib/lsm303dlhc.c10
-rw-r--r--os/various/devices_lib/lsm303dlhc.h6
-rw-r--r--os/various/devices_lib/lsm6ds0.c8
-rw-r--r--os/various/devices_lib/lsm6ds0.h6
-rw-r--r--os/various/devices_lib/max7219.c8
-rw-r--r--os/various/devices_lib/max7219.h6
-rw-r--r--os/various/devices_lib/nrf24l01.c14
-rw-r--r--os/various/devices_lib/nrf24l01.h6
12 files changed, 59 insertions, 35 deletions
diff --git a/os/various/devices_lib/l3gd20.c b/os/various/devices_lib/l3gd20.c
index 2d93ee8..13238e5 100644
--- a/os/various/devices_lib/l3gd20.c
+++ b/os/various/devices_lib/l3gd20.c
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -21,7 +21,9 @@
Special thanks to Giovanni Di Sirio for teachings, his moral support and
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
- Please refer to ChibiOS/RT license before use it.
+ Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
@@ -85,7 +87,7 @@ void l3gd20WriteRegister(SPIDriver *spip, uint8_t reg, uint8_t value) {
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "lg3d20WriteRegister(), #1", "reserved register");
+ chDbgAssert(FALSE, "lg3d20WriteRegister(), reserved register");
case L3GD20_AD_WHO_AM_I:
case L3GD20_AD_OUT_TEMP :
case L3GD20_AD_STATUS_REG:
diff --git a/os/various/devices_lib/l3gd20.h b/os/various/devices_lib/l3gd20.h
index 3fc58cb..f36fee1 100644
--- a/os/various/devices_lib/l3gd20.h
+++ b/os/various/devices_lib/l3gd20.h
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
diff --git a/os/various/devices_lib/lis3mdl.c b/os/various/devices_lib/lis3mdl.c
index dba95c3..12aba53 100644
--- a/os/various/devices_lib/lis3mdl.c
+++ b/os/various/devices_lib/lis3mdl.c
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
@@ -117,7 +119,7 @@ void lis3mdlWriteRegister(I2CDriver *i2cp, uint8_t sad, uint8_t sub,
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "lis3mdlWriteRegister(), #1", "reserved register");
+ chDbgAssert(FALSE, "lis3mdlWriteRegister(), reserved register");
case LIS3MDL_SUB_WHO_AM_I:
case LIS3MDL_SUB_STATUS_REG:
case LIS3MDL_SUB_OUT_X_L:
diff --git a/os/various/devices_lib/lis3mdl.h b/os/various/devices_lib/lis3mdl.h
index 8ef37ef..458e5b7 100644
--- a/os/various/devices_lib/lis3mdl.h
+++ b/os/various/devices_lib/lis3mdl.h
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
diff --git a/os/various/devices_lib/lsm303dlhc.c b/os/various/devices_lib/lsm303dlhc.c
index 7861255..59faa16 100644
--- a/os/various/devices_lib/lsm303dlhc.c
+++ b/os/various/devices_lib/lsm303dlhc.c
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
@@ -121,7 +123,7 @@ void lsm303dlhcWriteRegister(I2CDriver *i2cp,uint8_t sad, uint8_t sub,
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "lsm303dlhcWriteRegister(), #1", "reserved register");
+ chDbgAssert(FALSE, "lsm303dlhcWriteRegister(), reserved register");
case LSM303DLHC_SUB_ACC_STATUS_REG:
case LSM303DLHC_SUB_ACC_OUT_X_L:
case LSM303DLHC_SUB_ACC_OUT_X_H:
@@ -172,7 +174,7 @@ void lsm303dlhcWriteRegister(I2CDriver *i2cp,uint8_t sad, uint8_t sub,
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "lsm303dlhcWriteRegister(), #1", "reserved register");
+ chDbgAssert(FALSE, "lsm303dlhcWriteRegister(), reserved register");
case LSM303DLHC_SUB_COMP_OUT_X_H:
case LSM303DLHC_SUB_COMP_OUT_X_L:
case LSM303DLHC_SUB_COMP_OUT_Z_H:
diff --git a/os/various/devices_lib/lsm303dlhc.h b/os/various/devices_lib/lsm303dlhc.h
index 4ea788a..f96a890 100644
--- a/os/various/devices_lib/lsm303dlhc.h
+++ b/os/various/devices_lib/lsm303dlhc.h
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
diff --git a/os/various/devices_lib/lsm6ds0.c b/os/various/devices_lib/lsm6ds0.c
index 304b340..6d0c3ae 100644
--- a/os/various/devices_lib/lsm6ds0.c
+++ b/os/various/devices_lib/lsm6ds0.c
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
@@ -117,7 +119,7 @@ void lsm6ds0WriteRegister(I2CDriver *i2cp, uint8_t sad, uint8_t sub,
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "lsm6ds0WriteRegister(), #1", "reserved register");
+ chDbgAssert(FALSE, "lsm6ds0WriteRegister(), reserved register");
case LSM6DS0_SUB_WHO_AM_I:
case LSM6DS0_SUB_INT_GEN_SRC_G:
case LSM6DS0_SUB_OUT_TEMP_L:
diff --git a/os/various/devices_lib/lsm6ds0.h b/os/various/devices_lib/lsm6ds0.h
index 9f27e1b..c32dfcb 100644
--- a/os/various/devices_lib/lsm6ds0.h
+++ b/os/various/devices_lib/lsm6ds0.h
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
diff --git a/os/various/devices_lib/max7219.c b/os/various/devices_lib/max7219.c
index b15699e..527176e 100644
--- a/os/various/devices_lib/max7219.c
+++ b/os/various/devices_lib/max7219.c
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -21,7 +21,9 @@
Special thanks to Giovanni Di Sirio for teachings, his moral support and
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
- Please refer to ChibiOS/RT license before use it.
+ Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
diff --git a/os/various/devices_lib/max7219.h b/os/various/devices_lib/max7219.h
index 80524be..8b90260 100644
--- a/os/various/devices_lib/max7219.h
+++ b/os/various/devices_lib/max7219.h
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
diff --git a/os/various/devices_lib/nrf24l01.c b/os/various/devices_lib/nrf24l01.c
index 34d8bff..31e4513 100644
--- a/os/various/devices_lib/nrf24l01.c
+++ b/os/various/devices_lib/nrf24l01.c
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -21,7 +21,9 @@
Special thanks to Giovanni Di Sirio for teachings, his moral support and
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
- Please refer to ChibiOS/RT license before use it.
+ Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**
@@ -123,7 +125,7 @@ NRF24L01_status_t nrf24l01WriteRegister(SPIDriver *spip, uint8_t reg,
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "lg3d20WriteRegister(), #1", "reserved register");
+ chDbgAssert(FALSE, "lg3d20WriteRegister(), reserved register");
case NRF24L01_AD_OBSERVE_TX:
case NRF24L01_AD_CD:
case NRF24L01_AD_RX_ADDR_P0:
@@ -182,7 +184,7 @@ NRF24L01_status_t nrf24l01WriteAddress(SPIDriver *spip, uint8_t reg,
unsigned i;
if(addlen > NRF24L01_MAX_ADD_LENGHT) {
- chDbgAssert(FALSE, "nrf24l01WriteAddress(), #1", "wrong address length");
+ chDbgAssert(FALSE, "nrf24l01WriteAddress(), wrong address length");
return 0;
}
txbuf[0] = (NRF24L01_CMD_WRITE | reg);
@@ -197,7 +199,7 @@ NRF24L01_status_t nrf24l01WriteAddress(SPIDriver *spip, uint8_t reg,
/* Reserved register must not be written, according to the datasheet
* this could permanently damage the device.
*/
- chDbgAssert(FALSE, "nrf24l01WriteAddress(), #1", "reserved register");
+ chDbgAssert(FALSE, "nrf24l01WriteAddress(), reserved register");
case NRF24L01_AD_OBSERVE_TX:
case NRF24L01_AD_CD:
case NRF24L01_AD_CONFIG:
diff --git a/os/various/devices_lib/nrf24l01.h b/os/various/devices_lib/nrf24l01.h
index 7112b9f..c56c66f 100644
--- a/os/various/devices_lib/nrf24l01.h
+++ b/os/various/devices_lib/nrf24l01.h
@@ -1,6 +1,6 @@
/*
- Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi
-
+ Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi
+
This file is part of PLAY for ChibiOS/RT.
PLAY is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
friendship. Note that some or every piece of this file could be part of
the ChibiOS project that is intellectual property of Giovanni Di Sirio.
Please refer to ChibiOS/RT license before use this file.
+
+ For suggestion or Bug report - roccomarco.guglielmi@playembedded.org
*/
/**