diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-09-08 09:12:01 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-12 02:23:35 +0000 |
commit | 26be06904f383fd0a323713e0c3c9dbaec146b81 (patch) | |
tree | f53e6b3a8b18e4cb12ebb38cef116a9d23aae91e /op-flasher/pflash/ccan/endian/_info | |
parent | 275524eec56272169700ebe55ef62c0b363e8462 (diff) | |
download | blackbird-skeleton-26be06904f383fd0a323713e0c3c9dbaec146b81.tar.gz blackbird-skeleton-26be06904f383fd0a323713e0c3c9dbaec146b81.zip |
op-flasher: Remove pflash tree
No longer needed with the move to the shared object.
Change-Id: I36f7d7ba8b3df5ebae67a93ae18f1fa2d5c4d29a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'op-flasher/pflash/ccan/endian/_info')
-rw-r--r-- | op-flasher/pflash/ccan/endian/_info | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/op-flasher/pflash/ccan/endian/_info b/op-flasher/pflash/ccan/endian/_info deleted file mode 100644 index 753afa7..0000000 --- a/op-flasher/pflash/ccan/endian/_info +++ /dev/null @@ -1,53 +0,0 @@ -#include <stdio.h> -#include <string.h> -#include "config.h" - -/** - * endian - endian conversion macros for simple types - * - * Portable protocols (such as on-disk formats, or network protocols) - * are often defined to be a particular endian: little-endian (least - * significant bytes first) or big-endian (most significant bytes - * first). - * - * Similarly, some CPUs lay out values in memory in little-endian - * order (most commonly, Intel's 8086 and derivatives), or big-endian - * order (almost everyone else). - * - * This module provides conversion routines, inspired by the linux kernel. - * - * Example: - * #include <stdio.h> - * #include <err.h> - * #include <ccan/endian/endian.h> - * - * // - * int main(int argc, char *argv[]) - * { - * uint32_t value; - * - * if (argc != 2) - * errx(1, "Usage: %s <value>", argv[0]); - * - * value = atoi(argv[1]); - * printf("native: %08x\n", value); - * printf("little-endian: %08x\n", cpu_to_le32(value)); - * printf("big-endian: %08x\n", cpu_to_be32(value)); - * printf("byte-reversed: %08x\n", bswap_32(value)); - * exit(0); - * } - * - * License: License: CC0 (Public domain) - * Author: Rusty Russell <rusty@rustcorp.com.au> - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) - /* Nothing */ - return 0; - - return 1; -} |