tuupola / avr_demo

Atmel demo code. Does not use any Arduino libraries. I want to learn this the hard way (tm).
https://appelsiini.net/
80 stars 62 forks source link

Please add a license #3

Open ctag opened 8 years ago

ctag commented 8 years ago

A license on this github project would help readers of your blog know where they stand with following and using the tutorials/demos.

DerAndere1 commented 3 years ago

@tuupola : To apply the MIT license, you have to add the license text with your own copyright statement somewhere in your repository. The convention is to put it in a file called LICENSE at the root directory of the repository and/or at the start of each file that is covered by that license.

Note that a lot of the UART code looks like it is based on the original example "Stdio demo" that is part of avr-libC. If that is the case, you should make sure that you cannot get sued for license- / copyright infringement, so you should also add the original copyright information to the relevant files (uart.c). Something like:

/** 
 * uart.c
 * Copyright 2011 Mika Tuupola
 * 
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * This software contains software derived from parts of the AVR C Runtime library avr-libC (https://www.nongnu.org/avr-libc/),
 * with various modifications by Mika Tuupola and other avr_demo authors.
 *
 * AVR C Runtime library (https://www.nongnu.org/avr-libc/)
 * Copyright 1999-2010 The avr-libC authors (see https://www.nongnu.org/avr-libc/LICENSE.txt)
 * License: Modified BSD License
 * 
 * This software contains software derived from Stdio demo 
 * (https://svn.savannah.gnu.org/viewvc/avr-libc/trunk/avr-libc/doc/examples/stdiodemo/),
 * with various modifications by Mika Tuupola and other avr_demo authors. 
 * 
 * Stdio demo (https://svn.savannah.gnu.org/viewvc/avr-libc/trunk/avr-libc/doc/examples/stdiodemo/),
 * Copyright 2010 aboyapati
 * Copyright 2005 - 2010 Joerg Wunsch <joerg@FreeBSD.ORG>
 * License: THE BEER-WARE LICENSE (Revision 42) or Modified BSD License

 * "THE BEER-WARE LICENSE" (Revision 42):
 * <joerg@FreeBSD.ORG> wrote this file.  As long as you retain this notice you can do whatever you want with this stuff. If we 
 * meet some day, and you think this stuff is worth it, you can buy me a beer in return.        Joerg Wunsch
 */

And add the original license texts to your repositorium:

Modified BSD License
The contents of avr-libc are licensed with a Modified BSD License.

All of this is supposed to be Free Software, Open Source, DFSG-free,
GPL-compatible, and OK to use in both free and proprietary applications.

See the license information in the individual source files for details.

Additions and corrections to this file are welcome.

*******************************************************************************
Portions of avr-libc are Copyright (c) 1999-2010
Keith Gudger,
Bjoern Haase,
Steinar Haugen,
Peter Jansen,
Reinhard Jessich,
Magnus Johansson,
Artur Lipowski,
Marek Michalkiewicz,
Colin O'Flynn,
Bob Paddock,
Reiner Patommel,
Michael Rickman,
Theodore A. Roth,
Juergen Schilling,
Philip Soeberg,
Anatoly Sokolov,
Nils Kristian Strom,
Michael Stumpf,
Stefan Swanepoel,
Eric B. Weddington,
Joerg Wunsch,
Dmitry Xmelkov,
The Regents of the University of California.
All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

   * Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.

   * Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in
     the documentation and/or other materials provided with the
     distribution.

   * Neither the name of the copyright holders nor the names of
     contributors may be used to endorse or promote products derived
     from this software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.

*******************************************************************************

And

"THE BEER-WARE LICENSE" (Revision 42):
<joerg@FreeBSD.ORG> wrote this file.  As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.        Joerg Wunsch