This is an automated email from the ASF dual-hosted git repository. gnutt pushed a commit to branch SocketCAN in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f2fbb0599e7a938d54ef7b3edf9f8d9e90ba3fb3 Author: Peter van der Perk <peter.vanderp...@nxp.com> AuthorDate: Wed Mar 18 09:13:34 2020 +0100 Made can/error.h nxstyle compliant --- include/nuttx/can/error.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/include/nuttx/can/error.h b/include/nuttx/can/error.h index d9c2396..cf5fec6 100644 --- a/include/nuttx/can/error.h +++ b/include/nuttx/can/error.h @@ -1,8 +1,10 @@ /* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */ -/* + +/************************************************************************************ * linux/can/error.h * - * Definitions of the CAN error messages to be filtered and passed to the user. + * Definitions of the CAN error messages to be filtered and passed to the + * user. * * Author: Oliver Hartkopp <oliver.hartk...@volkswagen.de> * Copyright (c) 2002-2007 Volkswagen Group Electronic Research @@ -40,7 +42,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. - */ + ************************************************************************************/ #ifndef _UAPI_CAN_ERROR_H #define _UAPI_CAN_ERROR_H @@ -94,18 +96,18 @@ #define CAN_ERR_PROT_LOC_SRTR 0x04 /* substitute RTR (SFF: RTR) */ #define CAN_ERR_PROT_LOC_IDE 0x05 /* identifier extension */ #define CAN_ERR_PROT_LOC_ID17_13 0x07 /* ID bits 17-13 */ -#define CAN_ERR_PROT_LOC_ID12_05 0x0F /* ID bits 12-5 */ -#define CAN_ERR_PROT_LOC_ID04_00 0x0E /* ID bits 4-0 */ -#define CAN_ERR_PROT_LOC_RTR 0x0C /* RTR */ -#define CAN_ERR_PROT_LOC_RES1 0x0D /* reserved bit 1 */ +#define CAN_ERR_PROT_LOC_ID12_05 0x0f /* ID bits 12-5 */ +#define CAN_ERR_PROT_LOC_ID04_00 0x0e /* ID bits 4-0 */ +#define CAN_ERR_PROT_LOC_RTR 0x0c /* RTR */ +#define CAN_ERR_PROT_LOC_RES1 0x0d /* reserved bit 1 */ #define CAN_ERR_PROT_LOC_RES0 0x09 /* reserved bit 0 */ -#define CAN_ERR_PROT_LOC_DLC 0x0B /* data length code */ -#define CAN_ERR_PROT_LOC_DATA 0x0A /* data section */ +#define CAN_ERR_PROT_LOC_DLC 0x0b /* data length code */ +#define CAN_ERR_PROT_LOC_DATA 0x0a /* data section */ #define CAN_ERR_PROT_LOC_CRC_SEQ 0x08 /* CRC sequence */ #define CAN_ERR_PROT_LOC_CRC_DEL 0x18 /* CRC delimiter */ #define CAN_ERR_PROT_LOC_ACK 0x19 /* ACK slot */ -#define CAN_ERR_PROT_LOC_ACK_DEL 0x1B /* ACK delimiter */ -#define CAN_ERR_PROT_LOC_EOF 0x1A /* end of frame */ +#define CAN_ERR_PROT_LOC_ACK_DEL 0x1b /* ACK delimiter */ +#define CAN_ERR_PROT_LOC_EOF 0x1a /* end of frame */ #define CAN_ERR_PROT_LOC_INTERM 0x12 /* intermission */ /* error status of CAN-transceiver / data[4] */