-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All my (= Davide Bettio) code contributions were mostly LGPL v2.1 (or any later version). This change will dual license them as "Apache-2.0 OR LGPL-2.1-or-later". All changes made by other contributors (Fred Dushin, Riccardo Binetti, etc...) were already dual licensed. Apache-2.0 will be used as default license, so you can use this software under Apache-2.0 license terms. However we don't mind if anyone still wants to apply LGPL-2.1-or-later license terms as an option. We hope this change to Apache-2.0 will make AtomVM easier to adopt in any project. Thanks to everyone who has contributed to this project so far.
- Loading branch information
Showing
131 changed files
with
2,651 additions
and
2,810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
These changes are made under the terms of the LGPL v2.1 (or any later version) | ||
and Apache 2.0 licenses. | ||
These changes are made under both the "Apache 2.0" and the "GNU Lesser General | ||
Public License 2.1 or later" license terms (dual license). | ||
|
||
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2019 by Fred Dushin <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2019 Fred Dushin <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
%%----------------------------------------------------------------------------- | ||
%% @doc AtomVM-specific APIs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2018 by Fred Dushin <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2018 Fred Dushin <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
%%----------------------------------------------------------------------------- | ||
%% @doc This modules supports output of string data to the console. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2019 by Fred Dushin <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2019 Fred Dushin <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
%%----------------------------------------------------------------------------- | ||
%% @doc ESP32-specific APIs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2019 by Davide Bettio <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2019 Davide Bettio <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
-module(gpio). | ||
|
||
-export([open/0, read/2, set_direction/3, set_level/3, set_int/3, remove_int/2]). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2019 by Davide Bettio <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2019 Davide Bettio <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
-module(http_server). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2019 by Davide Bettio <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2019 Davide Bettio <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
-module(json_encoder). | ||
-export([encode/1]). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2020 by Fred Dushin <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2020 Fred Dushin <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
%%----------------------------------------------------------------------------- | ||
%% @doc LED Controller low-level APIs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Copyright 2019 by Fred Dushin <[email protected]> % | ||
% % | ||
% This program 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 of the % | ||
% License, or (at your option) any later version. % | ||
% % | ||
% This program 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 General Public License for more details. % | ||
% % | ||
% You should have received a copy of the GNU General Public License % | ||
% along with this program; if not, write to the % | ||
% Free Software Foundation, Inc., % | ||
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% This file is part of AtomVM. | ||
% | ||
% Copyright 2019 Fred Dushin <[email protected]> | ||
% | ||
% Licensed under the Apache License, Version 2.0 (the "License"); | ||
% you may not use this file except in compliance with the License. | ||
% You may obtain a copy of the License at | ||
% | ||
% http://www.apache.org/licenses/LICENSE-2.0 | ||
% | ||
% Unless required by applicable law or agreed to in writing, software | ||
% distributed under the License is distributed on an "AS IS" BASIS, | ||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
% See the License for the specific language governing permissions and | ||
% limitations under the License. | ||
% | ||
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | ||
% | ||
|
||
%%----------------------------------------------------------------------------- | ||
%% @doc A simple logging module. | ||
|
Oops, something went wrong.