zmodem: Move crc16.h and crc32.h from host to host/nuttx

to avoid the conflict with the 3rd party library

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-08-12 14:20:07 +08:00 committed by Petro Karashchenko
parent 29a49f366e
commit b515a00fea
11 changed files with 26 additions and 21 deletions

View File

@ -33,9 +33,9 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <crc32.h>
#include <debug.h>
#include <nuttx/crc32.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/mtd/configdata.h>
#include <nuttx/fs/ioctl.h>

View File

@ -22,7 +22,6 @@
* Included Files
****************************************************************************/
#include <crc32.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdbool.h>
@ -35,6 +34,8 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <nuttx/crc32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/system/zmodem/host/crc16.h
* apps/system/zmodem/host/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 __APPS_SYSTEM_ZMODEM_HOST_CRC16_H
#define __APPS_SYSTEM_ZMODEM_HOST_CRC16_H
#ifndef __APPS_SYSTEM_ZMODEM_HOST_NUTTX_CRC16_H
#define __APPS_SYSTEM_ZMODEM_HOST_NUTTX_CRC16_H
/****************************************************************************
* Included Files
@ -65,4 +65,4 @@ uint16_t crc16(const uint8_t *src, size_t len);
}
#endif
#endif /* __APPS_SYSTEM_ZMODEM_HOST_CRC16_H */
#endif /* __APPS_SYSTEM_ZMODEM_HOST_NUTTX_CRC16_H */

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/system/zmodem/host/crc32.h
* apps/system/zmodem/host/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 __APPS_SYSTEM_ZMODEM_HOST_CRC32_H
#define __APPS_SYSTEM_ZMODEM_HOST_CRC32_H
#ifndef __APPS_SYSTEM_ZMODEM_HOST_NUTTX_CRC32_H
#define __APPS_SYSTEM_ZMODEM_HOST_NUTTX_CRC32_H
/****************************************************************************
* Included Files
@ -65,4 +65,4 @@ uint32_t crc32(const uint8_t *src, size_t len);
}
#endif
#endif /* __APPS_SYSTEM_ZMODEM_HOST_CRC32_H */
#endif /* __APPS_SYSTEM_ZMODEM_HOST_NUTTX_CRC32_H */

View File

@ -30,8 +30,9 @@
#include <nuttx/config.h>
#include <stdio.h>
#include <crc16.h>
#include <crc32.h>
#include <nuttx/crc16.h>
#include <nuttx/crc32.h>
#include "zm.h"

View File

@ -45,11 +45,12 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <crc16.h>
#include <crc32.h>
#include <nuttx/crc16.h>
#include <nuttx/crc32.h>
#include <nuttx/ascii.h>
#include "system/zmodem.h"
#include <system/zmodem.h>
#include "zm.h"

View File

@ -47,9 +47,9 @@
#include <sched.h>
#include <assert.h>
#include <errno.h>
#include <crc16.h>
#include <crc32.h>
#include <nuttx/crc16.h>
#include <nuttx/crc32.h>
#include <nuttx/ascii.h>
#include "zm.h"

View File

@ -30,7 +30,8 @@
#include <termios.h>
#include <assert.h>
#include <errno.h>
#include <crc32.h>
#include <nuttx/crc32.h>
#include "zm.h"

View File

@ -37,10 +37,11 @@
#include <dirent.h>
#include <string.h>
#include <errno.h>
#include <crc32.h>
#include <debug.h>
#include <assert.h>
#include <nuttx/crc32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -35,9 +35,9 @@
#include <dirent.h>
#include <string.h>
#include <errno.h>
#include <crc32.h>
#include <debug.h>
#include <nuttx/crc32.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/fs/nxffs.h>

View File

@ -35,9 +35,9 @@
#include <dirent.h>
#include <string.h>
#include <errno.h>
#include <crc32.h>
#include <debug.h>
#include <nuttx/crc32.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/fs/smart.h>
#include <nuttx/fs/ioctl.h>