license: added MPL header to all source files

This commit is contained in:
A.M. Rowsell 2025-08-04 23:14:56 -04:00
commit c577c23f1f
Signed by untrusted user who does not match committer: amr
GPG key ID: E0879EDBDB0CA7B1
7 changed files with 108 additions and 100 deletions

View file

@ -1,9 +1,10 @@
/*
* File: Board.cpp
* Author: amr
*
* Created on July 30, 2025, 9:20 PM
*/
// © 2025 A.M. Rowsell <amr@frzn.dev>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
#include "Board.hpp"

View file

@ -1,9 +1,10 @@
/*
* File: Board.hpp
* Author: amr
*
* Created on July 30, 2025, 9:20 PM
*/
// © 2025 A.M. Rowsell <amr@frzn.dev>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
#ifndef BOARD_HPP
#define BOARD_HPP

View file

@ -1,9 +1,10 @@
/*
* File: NeoPixel.cpp
* Author: amr
*
* Created on July 30, 2025, 9:35 PM
*/
// © 2025 A.M. Rowsell <amr@frzn.dev>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
#include "NeoPixel.hpp"

View file

@ -1,9 +1,10 @@
/*
* File: NeoPixel.hpp
* Author: amr
*
* Created on July 30, 2025, 9:35 PM
*/
// © 2025 A.M. Rowsell <amr@frzn.dev>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
#ifndef NEOPIXEL_HPP
#define NEOPIXEL_HPP

View file

@ -1,9 +1,10 @@
/*
* File: Piece.cpp
* Author: amr
*
* Created on July 30, 2025, 9:21 PM
*/
// © 2025 A.M. Rowsell <amr@frzn.dev>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
#include "Piece.hpp"

View file

@ -1,9 +1,10 @@
/*
* File: Piece.hpp
* Author: amr
*
* Created on July 30, 2025, 9:21 PM
*/
// © 2025 A.M. Rowsell <amr@frzn.dev>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
#ifndef PIECE_HPP
#define PIECE_HPP

View file

@ -6,10 +6,9 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
// PIC32MX270F256B Configuration Bit Settings
// 'C' source line config statements
// DEVCFG3
#pragma config USERID = 0xBEEF // Enter Hexadecimal value (Enter Hexadecimal value)
#pragma config PMDL1WAY = OFF // Peripheral Module Disable Configuration (Allow multiple reconfigurations)
@ -61,6 +60,7 @@
volatile uint8_t spi_rx_buffer[8];
// dummy open to get rid of linker error
extern "C" int open(const char *buf, int flags, int mode) {
// Always return failure — no file system.
return -1;
@ -101,6 +101,7 @@ uint8_t appInfo(uint8_t *msg, uint16_t len) {
*/
#define SL_TRIS TRISAbits.TRISA0
#define SL_LAT LATAbits.LATA0
uint8_t initSystem(void) {
/* set up GPIO */
@ -197,6 +198,7 @@ extern "C" int main(void) {
}
// === Interrupt Service Routine for DMA0 (RX complete) ===
extern "C" void __ISR(_DMA0_VECTOR, IPL3SOFT) DMA0Handler(void) {
__builtin_disable_interrupts(); // stop additional ints from firing
if (DCH0INTbits.CHBCIF) {