aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/devices_lib/nrf24l01.c
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2015-04-13 09:29:54 +0300
committerUladzimir Pylinski <barthess@yandex.ru>2015-04-13 09:29:54 +0300
commita99ffad5c155e82ceacd66cb57b0b25aa06eb9b9 (patch)
tree4e2fb2ad5693b7ec346a6c707b02ff98b0784031 /os/various/devices_lib/nrf24l01.c
parentadfa3f75e83bd7b033077cc1b12a3a0a612ce26a (diff)
parentc845d1fd340f1ce33629dc76ce5134c5dcbf6eb5 (diff)
downloadChibiOS-Contrib-a99ffad5c155e82ceacd66cb57b0b25aa06eb9b9.tar.gz
ChibiOS-Contrib-a99ffad5c155e82ceacd66cb57b0b25aa06eb9b9.tar.bz2
ChibiOS-Contrib-a99ffad5c155e82ceacd66cb57b0b25aa06eb9b9.zip
Merge pull request #4 from RoccoMarco/master
Modified files under os/various
Diffstat (limited to 'os/various/devices_lib/nrf24l01.c')
-rw-r--r--os/various/devices_lib/nrf24l01.c14
1 files changed, 8 insertions, 6 deletions
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: