L'avr-libC c'est la base de la programmation pour les micro-controleurs de marque Atmel.
C'est une bibliothèque mise gracieusement, et sans limitation, à la disposition des utilisateurs de micro Atmel par la société Atmel.
Les bibliothèques Arduino sont basées dessus, tout simplement parce qu'il n'est pas possible de faire autrement.
Chaque fabricant de micro-controleur (Pic, Texas, Philips etc....) possède son équivalent sous un nom qui lui est propre.
Les bibliothèques Arduino sont distribuée selon la licence GPL .
Exemple pris au hasard:
/*
HardwareSerial.cpp - Hardware serial library for Wiring
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified 23 November 2006 by David A. Mellis
Modified 28 September 2010 by Mark Sproul
*/
Il existe des traductions (non officielles mais correctes) de cette licence GPL V2.1.
Exemple :
http://www.fsffrance.org/gpl/multitudes-gpl.fr.html
A toi de voir si tu veux garder ton code secret ou non.
Si le code reste secret pas question d'utiliser des fonctions comme pinmode() ou Serial.begin().
Pour être libre de toute contrainte logicielle il faudra réinventer la roue en écrivant directement dans les registres du micro.
Mais il restera les contraintes matérielles : garantie, obligation de réparation, respect des normes européennes etc.....