mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Update copyright headers to use SPDX id's
This commit is contained in:
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Shared cross-cutting AVC-LAN definitions used by two or more layers
|
// Shared cross-cutting AVC-LAN definitions used by two or more layers
|
||||||
// (phy / frame / protocol / cdchanger). This is a leaf header: it must not
|
// (phy / frame / protocol / cdchanger). This is a leaf header: it must not
|
||||||
|
|||||||
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,22 +1,9 @@
|
|||||||
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
|
// copyright (C) 2007 Louis Frigon
|
||||||
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AVCLAN-Mockingboard
|
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
AVC LAN Frame Format
|
AVC LAN Frame Format
|
||||||
│ Bits │ Description
|
│ Bits │ Description
|
||||||
────────────────────────────────────────
|
────────────────────────────────────────
|
||||||
@@ -40,8 +27,6 @@
|
|||||||
*repeat `n` times*
|
*repeat `n` times*
|
||||||
|
|
||||||
No acknowledge bits are sent for broadcast frames.
|
No acknowledge bits are sent for broadcast frames.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef AVCLAN_FRAME_H
|
#ifndef AVCLAN_FRAME_H
|
||||||
|
|||||||
+4
-21
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef AVCLAN_PHY_H
|
#ifndef AVCLAN_PHY_H
|
||||||
#define AVCLAN_PHY_H
|
#define AVCLAN_PHY_H
|
||||||
|
|||||||
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -263,8 +246,8 @@ response_t AVCLAN_handleframe(const AVCLAN_frame_t *in, AVCLAN_frame_t *out) {
|
|||||||
}
|
}
|
||||||
AVCLAN_generateStatus(out, true, dev_CMD_SW);
|
AVCLAN_generateStatus(out, true, dev_CMD_SW);
|
||||||
AVCLAN_mediaFunction(MEDIA_SKIP_FORWARD);
|
AVCLAN_mediaFunction(MEDIA_SKIP_FORWARD);
|
||||||
statustimer_reset(); // Skipped to a whole/round sec; ensure next tick is
|
statustimer_reset(); // Skipped to a whole/round sec; ensure next tick
|
||||||
// ~1 sec from now
|
// is ~1 sec from now
|
||||||
respond = r_Handled;
|
respond = r_Handled;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -283,8 +266,8 @@ response_t AVCLAN_handleframe(const AVCLAN_frame_t *in, AVCLAN_frame_t *out) {
|
|||||||
cd_status.secs -= 15;
|
cd_status.secs -= 15;
|
||||||
AVCLAN_generateStatus(out, true, dev_CMD_SW);
|
AVCLAN_generateStatus(out, true, dev_CMD_SW);
|
||||||
AVCLAN_mediaFunction(MEDIA_SKIP_BACKWARD);
|
AVCLAN_mediaFunction(MEDIA_SKIP_BACKWARD);
|
||||||
statustimer_reset(); // Skipped to a whole/round sec; ensure next tick is
|
statustimer_reset(); // Skipped to a whole/round sec; ensure next tick
|
||||||
// ~1 sec from now
|
// is ~1 sec from now
|
||||||
respond = r_Handled;
|
respond = r_Handled;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,5 @@
|
|||||||
/*
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
AVCLAN-Mockingboard
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// AVC-LAN message dispatcher and response state machine. Currently mixes
|
// AVC-LAN message dispatcher and response state machine. Currently mixes
|
||||||
// generic peripheral-level handling with CD-changer device-specific handling;
|
// generic peripheral-level handling with CD-changer device-specific handling;
|
||||||
|
|||||||
+4
-17
@@ -1,20 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Umbrella header for the avclan library. Consumers (e.g. the app in
|
// Umbrella header for the avclan library. Consumers (e.g. the app in
|
||||||
// src/sniffer.c) include this single header to pull in the whole AVC-LAN stack.
|
// src/sniffer.c) include this single header to pull in the whole AVC-LAN stack.
|
||||||
|
|||||||
+4
-21
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
+4
-17
@@ -1,20 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Emulated CD-changer device (AVC-LAN device 0x63): playback state, BCD time,
|
// Emulated CD-changer device (AVC-LAN device 0x63): playback state, BCD time,
|
||||||
// status-frame generation, and the play/stop mode FSM. This is pure-ish device
|
// status-frame generation, and the play/stop mode FSM. This is pure-ish device
|
||||||
|
|||||||
@@ -1,20 +1,5 @@
|
|||||||
/*
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
AVCLAN-Mockingboard
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Media-control: route/handle head-unit button presses to the audio source.
|
// Media-control: route/handle head-unit button presses to the audio source.
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,5 @@
|
|||||||
/*
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
AVCLAN-Mockingboard
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// ~1 Hz status-update tick interface. The app
|
// ~1 Hz status-update tick interface. The app
|
||||||
// polls statustimer_tickPending() and clears the tick with
|
// polls statustimer_tickPending() and clears the tick with
|
||||||
|
|||||||
@@ -1,20 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// ATtiny3216 board bring-up: main-clock prescaler + GPIO config for pins not
|
// ATtiny3216 board bring-up: main-clock prescaler + GPIO config for pins not
|
||||||
// owned by a peripheral's own init.
|
// owned by a peripheral's own init.
|
||||||
|
|||||||
@@ -1,20 +1,5 @@
|
|||||||
/*
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
AVCLAN-Mockingboard
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
|||||||
@@ -1,20 +1,5 @@
|
|||||||
/*
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
AVCLAN-Mockingboard
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// AVR-internal media-driver hooks, shared between media_avr.c and the bus
|
// AVR-internal media-driver hooks, shared between media_avr.c and the bus
|
||||||
// transaction guard (phy_avr.c's AVCLAN_stopEvent). Not part of the public
|
// transaction guard (phy_avr.c's AVCLAN_stopEvent). Not part of the public
|
||||||
|
|||||||
@@ -1,26 +1,9 @@
|
|||||||
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
|
// copyright (C) 2007 Louis Frigon
|
||||||
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
/*
|
/*
|
||||||
AVCLAN-Mockingboard
|
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
AVC LAN Theory
|
AVC LAN Theory
|
||||||
|
|
||||||
The AVC LAN bus is an implementation of the IEBus (mode 1) which is a
|
The AVC LAN bus is an implementation of the IEBus (mode 1) which is a
|
||||||
@@ -60,8 +43,6 @@
|
|||||||
- For acknowledge bits, the receiver extends the logical '0' of the sync
|
- For acknowledge bits, the receiver extends the logical '0' of the sync
|
||||||
period to the length of a normal bit `0`. Hence, a NAK (bit `1`) is
|
period to the length of a normal bit `0`. Hence, a NAK (bit `1`) is
|
||||||
literally the absence of an ACK.
|
literally the absence of an ACK.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
|
|||||||
@@ -1,20 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#ifndef TIMING_AVR_H
|
#ifndef TIMING_AVR_H
|
||||||
#define TIMING_AVR_H
|
#define TIMING_AVR_H
|
||||||
|
|
||||||
// AVR ATtiny3216 timing parameters. Derives F_CPU (needed by avr-libc, e.g.
|
// AVR ATtiny3216 timing parameters. Derives F_CPU (needed by avr-libc, e.g.
|
||||||
// util/delay.h) and the bus-timer (TCB) tick period from the CMake-provided
|
// util/delay.h) and the bus-timer (TCB) tick period from the CMake-provided
|
||||||
// FREQSEL / CLK_PRESCALE / TCB_CLKSEL, then hands the generic timing.h a TICK_US
|
// FREQSEL / CLK_PRESCALE / TCB_CLKSEL, then hands the generic timing.h a
|
||||||
// (microseconds per TCB tick) so the physical bit-phase durations resolve to
|
// TICK_US (microseconds per TCB tick) so the physical bit-phase durations
|
||||||
// TCB-tick counts. TICK_US == TCB_TICK / 1000, so every derived constant is
|
// resolve to TCB-tick counts. TICK_US == TCB_TICK / 1000, so every derived
|
||||||
// numerically identical to the previous F_CPU/TCB_CLKSEL formulation.
|
// constant is numerically identical to the previous F_CPU/TCB_CLKSEL
|
||||||
|
// formulation.
|
||||||
|
|
||||||
#define __CLKCTRL_PDIV_2X_gc 2
|
#define __CLKCTRL_PDIV_2X_gc 2
|
||||||
#define __CLKCTRL_PDIV_4X_gc 4
|
#define __CLKCTRL_PDIV_4X_gc 4
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#ifndef _TIMING_HPP_
|
#ifndef _TIMING_HPP_
|
||||||
#define _TIMING_HPP_
|
#define _TIMING_HPP_
|
||||||
|
|
||||||
|
|||||||
+2
-21
@@ -1,24 +1,5 @@
|
|||||||
/*
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
AVCLAN-Mockingboard
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Board / MCU bring-up interface (the BSP seam). Implemented per-target (the AVR
|
|
||||||
// implementation is target/avr-attiny3216/board_avr.c). Keeps the app
|
|
||||||
// (sniffer.c) free of clock/pin/interrupt register access.
|
|
||||||
|
|
||||||
#ifndef BOARD_H
|
#ifndef BOARD_H
|
||||||
#define BOARD_H
|
#define BOARD_H
|
||||||
|
|||||||
+4
-21
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
|||||||
+4
-21
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __COM232_H
|
#ifndef __COM232_H
|
||||||
#define __COM232_H
|
#define __COM232_H
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "avclandrv.h"
|
#include "avclandrv.h"
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Copyright (C) 2026 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
+4
-21
@@ -1,24 +1,7 @@
|
|||||||
/*
|
// copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
||||||
AVCLAN-Mockingboard
|
// copyright (C) 2007 Louis Frigon
|
||||||
Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
// Copyright (C) 2015 Allen Hill <allenofthehills@gmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
Portions of the following source code are based on code that is
|
|
||||||
copyright (C) 2006 Marcin Slonicki <marcin@softservice.com.pl>
|
|
||||||
copyright (C) 2007 Louis Frigon
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user