libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx
to avoid the conflict with the 3rd party library Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b3795daa53
commit
2b37909c9e
@ -40,8 +40,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include <crc32.h>
|
||||
#include <nuttx/crc32.h>
|
||||
|
||||
#include "stm32_bbsram.h"
|
||||
#include "chip.h"
|
||||
|
@ -40,8 +40,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include <crc32.h>
|
||||
#include <nuttx/crc32.h>
|
||||
|
||||
#include "stm32_bbsram.h"
|
||||
#include "chip.h"
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <nuttx/net/mii.h>
|
||||
#include <nuttx/net/arp.h>
|
||||
#include <nuttx/net/netdev.h>
|
||||
#include <crc64.h>
|
||||
#include <nuttx/crc64.h>
|
||||
|
||||
#if defined(CONFIG_NET_PKT)
|
||||
# include <nuttx/net/pkt.h>
|
||||
|
@ -39,8 +39,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include <crc32.h>
|
||||
#include <nuttx/crc32.h>
|
||||
|
||||
#include "stm32_bbsram.h"
|
||||
#include "chip.h"
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <nuttx/net/mii.h>
|
||||
#include <nuttx/net/arp.h>
|
||||
#include <nuttx/net/netdev.h>
|
||||
#include <crc64.h>
|
||||
#include <nuttx/crc64.h>
|
||||
|
||||
#if defined(CONFIG_NET_PKT)
|
||||
# include <nuttx/net/pkt.h>
|
||||
|
@ -40,8 +40,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include <crc32.h>
|
||||
#include <nuttx/crc32.h>
|
||||
|
||||
#include "rx65n_sbram.h"
|
||||
#include "chip.h"
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <crc64.h>
|
||||
#include <nuttx/crc64.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <nuttx/nuttx.h>
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#include <crc8.h>
|
||||
#include <nuttx/crc8.h>
|
||||
#include <nuttx/wdog.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
@ -30,9 +30,9 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <crc64.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <nuttx/crc64.h>
|
||||
#include <nuttx/nuttx.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/irq.h>
|
||||
|
@ -37,12 +37,11 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <crc8.h>
|
||||
#include <crc16.h>
|
||||
#include <crc32.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/crc8.h>
|
||||
#include <nuttx/crc16.h>
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
@ -33,10 +33,10 @@
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
#include <crc32.h>
|
||||
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <crc8.h>
|
||||
#include <nuttx/crc8.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/signal.h>
|
||||
#include <nuttx/i2c/i2c_master.h>
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include <nuttx/random.h>
|
||||
|
||||
#ifdef CONFIG_MLX90614_CRC
|
||||
#include <crc8.h>
|
||||
#include <nuttx/crc8.h>
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MLX90614)
|
||||
|
@ -27,8 +27,8 @@
|
||||
#include <string.h>
|
||||
#include <debug.h>
|
||||
#include <errno.h>
|
||||
#include <crc32.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
@ -26,11 +26,11 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <crc32.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
||||
|
@ -28,11 +28,11 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
#include <crc32.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
@ -28,9 +28,9 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <crc32.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
||||
#include "nxffs.h"
|
||||
|
@ -27,11 +27,11 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <crc32.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
||||
|
@ -27,11 +27,11 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <crc32.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
||||
|
@ -22,12 +22,12 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <crc32.h>
|
||||
#include <ctype.h>
|
||||
#include <debug.h>
|
||||
#include <endian.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
||||
#include "partition.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* include/crc16.h
|
||||
* include/nuttx/crc16.h
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,8 +18,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_CRC16_H
|
||||
#define __INCLUDE_CRC16_H
|
||||
#ifndef __INCLUDE_NUTTX_CRC16_H
|
||||
#define __INCLUDE_NUTTX_CRC16_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@ -65,4 +65,4 @@ uint16_t crc16(FAR const uint8_t *src, size_t len);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_CRC16_H */
|
||||
#endif /* __INCLUDE_NUTTX_CRC16_H */
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* include/crc32.h
|
||||
* include/nuttx/crc32.h
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,8 +18,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_CRC32_H
|
||||
#define __INCLUDE_CRC32_H
|
||||
#ifndef __INCLUDE_NUTTX_CRC32_H
|
||||
#define __INCLUDE_NUTTX_CRC32_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@ -65,4 +65,4 @@ uint32_t crc32(FAR const uint8_t *src, size_t len);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_CRC32_H */
|
||||
#endif /* __INCLUDE_NUTTX_CRC32_H */
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* include/crc64.h
|
||||
* include/nuttx/crc64.h
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,8 +18,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_CRC64_H
|
||||
#define __INCLUDE_CRC64_H
|
||||
#ifndef __INCLUDE_NUTTX_CRC64_H
|
||||
#define __INCLUDE_NUTTX_CRC64_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@ -91,4 +91,4 @@ uint64_t crc64(FAR const uint8_t *src, size_t len);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_HAVE_LONG_LONG */
|
||||
#endif /* __INCLUDE_CRC64_H */
|
||||
#endif /* __INCLUDE_NUTTX_CRC64_H */
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* include/crc8.h
|
||||
* include/nuttx/crc8.h
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,8 +18,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_CRC8_H
|
||||
#define __INCLUDE_CRC8_H
|
||||
#ifndef __INCLUDE_NUTTX_CRC8_H
|
||||
#define __INCLUDE_NUTTX_CRC8_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@ -101,4 +101,4 @@ uint8_t crc8ccittpart(FAR const uint8_t *src, size_t len, uint8_t crc8val);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_CRC8_H */
|
||||
#endif /* __INCLUDE_NUTTX_CRC8_H */
|
@ -29,8 +29,8 @@
|
||||
"cfsetspeed","termios.h","defined(CONFIG_SERIAL_TERMIOS)","int","FAR struct termios *","speed_t"
|
||||
"chdir","unistd.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char *"
|
||||
"clock","time.h","","clock_t"
|
||||
"crc32","crc32.h","","uint32_t","FAR const uint8_t *","size_t"
|
||||
"crc32part","crc32.h","","uint32_t","FAR const uint8_t *","size_t","uint32_t"
|
||||
"crc32","nuttx/crc32.h","","uint32_t","FAR const uint8_t *","size_t"
|
||||
"crc32part","nuttx/crc32.h","","uint32_t","FAR const uint8_t *","size_t","uint32_t"
|
||||
"ctime","time.h","","char *","const time_t *"
|
||||
"dirname","libgen.h","","FAR char *","FAR char *"
|
||||
"dlclose","dlfcn.h","defined(CONFIG_LIBC_DLFCN)","int","FAR void *"
|
||||
|
Can't render this file because it has a wrong number of fields in line 2.
|
@ -38,7 +38,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <crc16.h>
|
||||
|
||||
#include <nuttx/crc16.h>
|
||||
|
||||
/************************************************************************************************
|
||||
* Private Data
|
||||
|
@ -45,7 +45,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <crc32.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
|
||||
/************************************************************************************************
|
||||
* Private Data
|
||||
|
@ -26,7 +26,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <crc64.h>
|
||||
|
||||
#include <nuttx/crc64.h>
|
||||
|
||||
#ifdef CONFIG_HAVE_LONG_LONG
|
||||
|
||||
|
@ -24,7 +24,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <crc8.h>
|
||||
|
||||
#include <nuttx/crc8.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
|
@ -26,7 +26,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <crc8.h>
|
||||
|
||||
#include <nuttx/crc8.h>
|
||||
|
||||
/***************************************************************************
|
||||
* Private Data
|
||||
|
@ -24,7 +24,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <crc8.h>
|
||||
|
||||
#include <nuttx/crc8.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
|
Loading…
Reference in New Issue
Block a user