Fixed license header

This commit is contained in:
Silvano Seva 2021-11-27 08:23:59 +01:00
parent 5d63c0fe63
commit 6aece95e98
3 changed files with 23 additions and 54 deletions

View File

@ -14,16 +14,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * * GNU General Public License for more details. *
* * * *
* As a special exception, if other files instantiate templates or use *
* macros or inline functions from this file, or you compile this file *
* and link it with other works to produce a work based on this file, *
* this file does not by itself cause the resulting work to be covered *
* by the GNU General Public License. However the source code for this *
* file must still be made available in accordance with the GNU General *
* Public License. This exception does not invalidate any other reasons *
* why a work based on this file might be covered by the GNU General *
* Public License. *
* *
* You should have received a copy of the GNU General Public License * * You should have received a copy of the GNU General Public License *
* along with this program; if not, see <http://www.gnu.org/licenses/> * * along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/ ***************************************************************************/
@ -39,8 +29,8 @@ void audio_init()
gpio_setMode(MIC_MUTE, OUTPUT); gpio_setMode(MIC_MUTE, OUTPUT);
gpio_setMode(MIC_GAIN, OUTPUT); gpio_setMode(MIC_GAIN, OUTPUT);
gpio_setPin(SPK_MUTE); //Off = logic high gpio_setPin(SPK_MUTE); // Off = logic high
gpio_clearPin(MIC_MUTE); //Off = logic low gpio_clearPin(MIC_MUTE); // Off = logic low
gpio_setPin(MIC_GAIN); // gain = 40 dB gpio_setPin(MIC_GAIN); // gain = 40 dB
} }

View File

@ -14,16 +14,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * * GNU General Public License for more details. *
* * * *
* As a special exception, if other files instantiate templates or use *
* macros or inline functions from this file, or you compile this file *
* and link it with other works to produce a work based on this file, *
* this file does not by itself cause the resulting work to be covered *
* by the GNU General Public License. However the source code for this *
* file must still be made available in accordance with the GNU General *
* Public License. This exception does not invalidate any other reasons *
* why a work based on this file might be covered by the GNU General *
* Public License. *
* *
* You should have received a copy of the GNU General Public License * * You should have received a copy of the GNU General Public License *
* along with this program; if not, see <http://www.gnu.org/licenses/> * * along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/ ***************************************************************************/
@ -81,8 +71,7 @@ void radio_disableRtx()
void radio_updateConfiguration() void radio_updateConfiguration()
{ {
if(radioStatus == RX) radio_enableRx();
if(radioStatus == TX) radio_enableTx();
} }
float radio_getRssi() float radio_getRssi()

View File

@ -15,16 +15,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * * GNU General Public License for more details. *
* * * *
* As a special exception, if other files instantiate templates or use *
* macros or inline functions from this file, or you compile this file *
* and link it with other works to produce a work based on this file, *
* this file does not by itself cause the resulting work to be covered *
* by the GNU General Public License. However the source code for this *
* file must still be made available in accordance with the GNU General *
* Public License. This exception does not invalidate any other reasons *
* why a work based on this file might be covered by the GNU General *
* Public License. *
* *
* You should have received a copy of the GNU General Public License * * You should have received a copy of the GNU General Public License *
* along with this program; if not, see <http://www.gnu.org/licenses/> * * along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/ ***************************************************************************/
@ -60,10 +50,10 @@
#define LCD_RST GPIOC,7 #define LCD_RST GPIOC,7
#define LCD_RS GPIOC,6 #define LCD_RS GPIOC,6
#define LCD_CS GPIOB,14 #define LCD_CS GPIOB,14
//#define LCD_BKLIGHT GPIOE,15
#define SPI2_CLK GPIOB,13 #define SPI2_CLK GPIOB,13
#define SPI2_SDO GPIOB,9 //UNUSED #define SPI2_SDO GPIOB,9 // UNUSED
#define SPI2_SDI GPIOB,15 #define SPI2_SDI GPIOB,15
//#define LCD_BKLIGHT GPIOE,15
/* Keyboard */ /* Keyboard */
#define ESC_SW GPIOB,8 #define ESC_SW GPIOB,8