summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/background.h7
-rw-r--r--include/cli.h12
-rw-r--r--include/cli_readline.h3
-rw-r--r--include/cmd_mem.h7
-rw-r--r--include/command.h16
-rw-r--r--include/common.h8
-rw-r--r--include/con-utils.h14
-rw-r--r--include/config.h6
-rw-r--r--include/crc.h9
-rw-r--r--include/debug.h14
-rw-r--r--include/env.h9
-rw-r--r--include/ffconf.h1
-rw-r--r--include/getopt-min.h7
-rw-r--r--include/gpio.h7
-rw-r--r--include/i2c.h2
-rw-r--r--include/print-utils.h6
-rw-r--r--include/ring.h7
-rw-r--r--include/rtc.h5
-rw-r--r--include/serial.h6
-rw-r--r--include/spi.h5
-rw-r--r--include/timer.h9
-rw-r--r--include/z180-serv.h6
-rw-r--r--include/z80-if.h5
23 files changed, 143 insertions, 28 deletions
diff --git a/include/background.h b/include/background.h
index 8a430b3..87e95e5 100644
--- a/include/background.h
+++ b/include/background.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef BACKGROUND_H
#define BACKGROUND_H
@@ -9,4 +15,3 @@ int bg_getstat(int handle);
void bg_shed(void);
#endif /* BACKGROUND_H */
-
diff --git a/include/cli.h b/include/cli.h
index 67ff63b..f6fb2ab 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -1,4 +1,13 @@
-#ifndef CLI_H
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * (C) Copyright 2014 Google, Inc
+ * Simon Glass <sjg@chromium.org>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef CLI_H
#define CLI_H
/**
@@ -61,4 +70,3 @@ int run_command_list(const char *cmd, int len);
#endif /* CLI_H */
-
diff --git a/include/cli_readline.h b/include/cli_readline.h
index 5b25762..b7dc938 100644
--- a/include/cli_readline.h
+++ b/include/cli_readline.h
@@ -1,4 +1,6 @@
/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
* (C) Copyright 2014 Google, Inc
* Simon Glass <sjg@chromium.org>
*
@@ -47,4 +49,3 @@ int cli_readline(const FLASH char *const prompt);
#endif /* CLI_READLINE_H */
-
diff --git a/include/cmd_mem.h b/include/cmd_mem.h
index 1802338..05227cc 100644
--- a/include/cmd_mem.h
+++ b/include/cmd_mem.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef CMD_MEM_H
#define CMD_MEM_H
@@ -25,4 +31,3 @@ extern command_ret_t do_mem_mwc(cmd_tbl_t *, int, int, char * const []);
#endif /* CONFIG_MX_CYCLIC */
#endif /* CMD_MEM_H */
-
diff --git a/include/command.h b/include/command.h
index d0933a0..5582fa5 100644
--- a/include/command.h
+++ b/include/command.h
@@ -1,3 +1,11 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
/*
* Definitions for Command Processor
@@ -37,11 +45,11 @@ typedef enum {
struct cmd_tbl_s {
const FLASH char *name; /* Command Name */
- int maxargs; /* maximum number of arguments */
- int repeatable; /* autorepeat allowed? */
- /* Implementation function */
+ int maxargs; /* maximum number of arguments */
+ int repeatable; /* autorepeat allowed? */
+ /* Implementation function */
command_ret_t (*cmd)(const FLASH struct cmd_tbl_s *, int, int, char * const []);
- const FLASH char *usage; /* Usage message (short) */
+ const FLASH char *usage; /* Usage message (short) */
#ifdef CONFIG_SYS_LONGHELP
const FLASH char *help; /* Help message (long) */
#endif
diff --git a/include/common.h b/include/common.h
index b0dd038..cfbbae5 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef COMMON_H
#define COMMON_H
@@ -53,7 +59,7 @@ struct bits {
extern volatile uint_least8_t Stat;
#endif /* __AVR__ */
-#define S_10MS_TO (1<<0)
+#define S_10MS_TO (1<<0)
#define S_MSG_PENDING (1<<1)
#define S_CON_PENDING (1<<2)
diff --git a/include/con-utils.h b/include/con-utils.h
index 15a3ce8..86c0df0 100644
--- a/include/con-utils.h
+++ b/include/con-utils.h
@@ -1,4 +1,14 @@
-#ifndef CON_UTILS_H
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+/*
+ * Console utilities
+ */
+
+#ifndef CON_UTILS_H
#define CON_UTILS_H
uint_fast8_t tstc(void);
@@ -18,5 +28,3 @@ uint_fast8_t had_ctrlc (void);
void clear_ctrlc(void);
#endif /* CON_UTILS_H */
-
-
diff --git a/include/config.h b/include/config.h
index d0749b3..f51ebe9 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef CONFIG_H
#define CONFIG_H
diff --git a/include/crc.h b/include/crc.h
index 927b5ff..89cde1f 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -1,14 +1,21 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef CRC_H
#define CRC_H
#ifdef __AVR__
#include <util/crc16.h>
static inline
-uint16_t crc16(uint16_t crc, uint8_t data)
+uint16_t crc16(uint16_t crc, uint8_t data)
{
return _crc_ccitt_update(crc, data);
}
#else /* !__AVR__ */
+ /* TODO */
#endif /* __AVR__ */
#endif /* CRC_H */
diff --git a/include/debug.h b/include/debug.h
index da8e9a0..39c15b0 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -1,3 +1,12 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef DEBUG_H_
#define DEBUG_H_
@@ -10,6 +19,11 @@
#define _DEBUG 0
#endif
+/*
+ * Output a debug text when condition "cond" is met. The "cond" should be
+ * computed by a preprocessor in the best case, allowing for the best
+ * optimization.
+ */
#define debug_cond(cond, fmt, args...) \
do { \
if (cond) \
diff --git a/include/env.h b/include/env.h
index 7c4fee9..da38c54 100644
--- a/include/env.h
+++ b/include/env.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef ENV_H
#define ENV_H
@@ -8,9 +14,8 @@ unsigned long getenv_ulong(const MEMX char *name, int base, unsigned long defaul
int setenv_ulong(const MEMX char *varname, unsigned long value);
int setenv_hex(const MEMX char *varname, unsigned long value);
-#if defined(CONFIG_AUTO_COMPLETE)
+#if defined(CONFIG_AUTO_COMPLETE)
int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);
#endif
#endif /* ENV_H */
-
diff --git a/include/ffconf.h b/include/ffconf.h
index 1399dc2..9841d5b 100644
--- a/include/ffconf.h
+++ b/include/ffconf.h
@@ -1,4 +1,5 @@
#ifdef __AVR__
#include "avr/ffconf.h"
#else
+ /* TODO */
#endif
diff --git a/include/getopt-min.h b/include/getopt-min.h
index 9f7729e..6495ebf 100644
--- a/include/getopt-min.h
+++ b/include/getopt-min.h
@@ -1,12 +1,11 @@
#ifndef GETOPT_MIN_H
#define GETOPT_MIN_H
-int getopt( /* returns letter, '?', EOF */
- int argc, /* argument count from main */
- char *const argv[], /* argument vector from main */
+int getopt( /* returns letter, '?', EOF */
+ int argc, /* argument count from main */
+ char *const argv[], /* argument vector from main */
const FLASH char * optstring ); /* allowed args, e.g. "ab:c" */
extern int optind;
#endif /* GETOPT_MIN_H */
-
diff --git a/include/gpio.h b/include/gpio.h
index ac48045..1e0346d 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef GPIO_H
#define GPIO_H
@@ -14,4 +20,3 @@ int gpio_clockdiv_set(int pin, unsigned long divider);
long gpio_clockdiv_get(int pin);
#endif /* GPIO_H */
-
diff --git a/include/i2c.h b/include/i2c.h
index 50b1fd0..f39fa1d 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -1,4 +1,6 @@
/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
* Copyright (C) 2009 Sergey Kubushyn <ksi@koi8.net>
* Copyright (C) 2009 - 2013 Heiko Schocher <hs@denx.de>
* Changes for multibus/multiadapter I2C support.
diff --git a/include/print-utils.h b/include/print-utils.h
index 5604d3b..8acf975 100644
--- a/include/print-utils.h
+++ b/include/print-utils.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef PRINT_UTILS_H
#define PRINT_UTILS_H
diff --git a/include/ring.h b/include/ring.h
index d57f9aa..b64f462 100644
--- a/include/ring.h
+++ b/include/ring.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef RING_H
#define RING_H
@@ -71,4 +77,3 @@ int_fast8_t ring_is_empty(struct ring *ring)
}
#endif /* RING_H */
-
diff --git a/include/rtc.h b/include/rtc.h
index 6946660..ca4c068 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -1,6 +1,9 @@
/*
- * Generic RTC interface.
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
*/
+
#ifndef _RTC_H_
#define _RTC_H_
diff --git a/include/serial.h b/include/serial.h
index 40ac815..54c7211 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef SERIAL_H
#define SERIAL_H
diff --git a/include/spi.h b/include/spi.h
index 6358f62..1052569 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -1,8 +1,7 @@
/*
- * spi.h
+ * (C) Copyright 2009,2014 Leo C. <erbl259-lmu@yahoo.de>
*
- * Created on: 17.04.2009
- * Author: leo
+ * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef SPI_H_
diff --git a/include/timer.h b/include/timer.h
index bed3eb0..c6d6053 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -1,7 +1,12 @@
-#ifndef TIMER_H
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef TIMER_H
#define TIMER_H
uint32_t get_timer(uint32_t);
#endif /* TIMER_H */
-
diff --git a/include/z180-serv.h b/include/z180-serv.h
index af4b1c0..424318f 100644
--- a/include/z180-serv.h
+++ b/include/z180-serv.h
@@ -1,3 +1,9 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef Z180_SERV_H
#define Z180_SERV_H
diff --git a/include/z80-if.h b/include/z80-if.h
index d4ee57b..58790bd 100644
--- a/include/z80-if.h
+++ b/include/z80-if.h
@@ -1,3 +1,8 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
#define ZST_ACQUIRED 0x01
#define ZST_RUNNING 0x02