~aleteoryx/muditaos

d14e40d3781d4852630932e2a5051db6b7e075ca — Radoslaw Wicik 5 years ago 9c92272
[EGD-4831] Add license headers to c, h and sql files

Add license headers to `h`, `c` and `sql` files as this files haven't
been checked previously, script now to automatically updates current
year in existing licenses.
58 files changed, 236 insertions(+), 109 deletions(-)

M .gitignore
M config/format-config.sh
M config/license_header_check.sh
M image/user/db/alarms_001.sql
M image/user/db/alarms_002.sql
M image/user/db/calllog_001.sql
M image/user/db/calllog_002.sql
M image/user/db/contacts_001.sql
M image/user/db/contacts_002.sql
M image/user/db/contacts_003.sql
M image/user/db/notes_001.sql
M image/user/db/notes_002.sql
M image/user/db/notifications_001.sql
M image/user/db/notifications_002.sql
M image/user/db/settings_001.sql
M image/user/db/settings_v2_001.sql
M image/user/db/settings_v2_002.sql
M image/user/db/sms_001.sql
M image/user/db/sms_002.sql
M image/user/db/sms_003.sql
M module-audio/Audio/decoder/xing_header.c
M module-audio/Audio/decoder/xing_header.h
M module-bsp/board/linux/board.h
M module-bsp/board/linux/eink/ED028TC1.c
M module-bsp/board/linux/eink/ED028TC1.h
M module-bsp/board/linux/eink/fsl_edma.h
M module-bsp/board/linux/lpm/LinuxLPM.h
M module-bsp/board/rt1051/bsp/audio/qfilter.c
M module-bsp/board/rt1051/bsp/audio/qfilter.h
M module-bsp/board/rt1051/bsp/eink/ED028TC1.h
M module-bsp/board/rt1051/bsp/eink/bsp_eink.h
M module-bsp/board/rt1051/bsp/eink/eink_binarization_luts.c
M module-bsp/board/rt1051/bsp/eink/eink_binarization_luts.h
M module-bsp/board/rt1051/bsp/keyboard/TCA8418.h
M module-bsp/board/rt1051/common/dma_config.h
M module-bsp/board/rt1051/common/macros.h
M module-bsp/board/rt1051/common/pin_names.h
M module-cellular/Modem/TS0710/DLC_channel.h
M module-cellular/Modem/TS0710/TS0710.h
M module-cellular/Modem/TS0710/TS0710_CLOSE.h
M module-cellular/Modem/TS0710/TS0710_CONTROL.h
M module-cellular/Modem/TS0710/TS0710_DATA.h
M module-cellular/Modem/TS0710/TS0710_DLC_ESTABL.h
M module-cellular/Modem/TS0710/TS0710_DLC_RELEASE.h
M module-cellular/Modem/TS0710/TS0710_FLOW.h
M module-cellular/Modem/TS0710/TS0710_Frame.h
M module-cellular/Modem/TS0710/TS0710_PARNEG.h
M module-cellular/Modem/TS0710/TS0710_PORTNEG.h
M module-cellular/Modem/TS0710/TS0710_SERVNEG.h
M module-cellular/Modem/TS0710/TS0710_SLEEP.h
M module-cellular/Modem/TS0710/TS0710_START.h
M module-cellular/Modem/TS0710/TS0710_TEST.h
M module-cellular/Modem/TS0710/TS0710_WAKEUP.h
M module-cellular/Modem/TS0710/TS0710_types.h
M module-services/service-db/agents/file_indexer/file_indexer.sql
M module-services/service-db/agents/settings/settings.sql
M module-utils/test/test_log2.h
M source/config.h
M .gitignore => .gitignore +4 -0
@@ 52,3 52,7 @@ tags
.ycm_extra_conf.py

update/

# build in docker files
.ccache/
.bash_history

M config/format-config.sh => config/format-config.sh +32 -13
@@ 14,25 14,44 @@ VERBOSE=1
# ignore_paths for formatter - these are regex matched with filenames to be formated
# if you don't wish to format i.e one file - just pass whole path to this file from git root directory
declare ignore_paths=(
    './module-os/'
    './.*/catch.hpp'
    './.*/lib/'
    './board/'
    './module-bsp/bsp/'
    './module-bsp/board/rt1051/common/fsl_drivers/'
    './build'
    './host-tools/littlefs-fuse/lfsfuse/'
    './module-audio/Audio/decoder/dr_flac.h'
    './module-bluetooth/Bluetooth/btstack_config.h'
    './module-bluetooth/Bluetooth/glucode/bluetooth_init_cc2564C_1.0.c'
    './module-bluetooth/Bluetooth/glucode/btstack_uart_block_rt1051.h'
    './module-bluetooth/Bluetooth/glucode/hal_time_ms.c'
    './module-bluetooth/lib/btstack/'
    './module-bsp/board/rt1051/bsp/eMMC/'
    './module-bsp/board/rt1051/bsp/pwr/'
    './module-bsp/board/rt1051/common/board.cpp'
    './module-vfs/board/cross/freeRTOS_FAT/'
    './module-db/[Dd]atabase/sqlite3.h'
    './module-bsp/board/rt1051/common/board.h'
    './module-bsp/board/rt1051/common/clock_config.h'
    './module-bsp/board/rt1051/common/cmsis/'
    './module-bsp/board/rt1051/common/fsl_drivers/'
    './module-bsp/board/rt1051/common/pin_mux.h'
    './module-bsp/board/rt1051/common/pin_mux.c'
    './module-bsp/board/rt1051/common/system_MIMXRT1051.c'
    './module-bsp/board/rt1051/common/system_MIMXRT1051.h'
    './module-bsp/bsp/'
    './module-db/[Dd]atabase/config.h'
    './module-db/[Dd]atabase/sqlite3.c'
    './module-db/[Dd]atabase/sqlite3.h'
    './module-db/[Dd]atabase/sqlite3ext.h'
    './module-db/[Dd]atabase/config.h'
    './module-bluetooth/lib/btstack/'
    './module-lwip/includes/arch/cc.h'
    './module-lwip/includes/lwipopts.h'
    './module-lwip/lib/lwip/'
    './module-utils/tinyfsm/'
    './module-utils/microtar/'
    './module-os/'
    './module-utils/json/'
    './module-utils/microtar/'
    './module-utils/segger/log/'
    './module-utils/segger/systemview/'
    './build'
    './.*/lib/'
    './.*/catch.hpp'

    './module-utils/tinyfsm/'
    './module-vfs/board/cross/freeRTOS_FAT/'
    './module-vfs/board/free_rtos_custom/include/FreeRTOSFATConfig.h'
    './module-vfs/drivers/include/thirdparty/fatfs/ffconf.h'
    './module-vfs/thirdparty/*'
)

M config/license_header_check.sh => config/license_header_check.sh +39 -11
@@ 1,8 1,9 @@
#!/bin/bash
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. 
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md


#time update doesn't work below
SCRIPT=$(readlink -f $0)
SCRIPT_DIR="$(dirname ${SCRIPT})"
REPO_ROOT="${SCRIPT_DIR%/*}"


@@ 17,7 18,11 @@ REPO_ROOT="${SCRIPT_DIR%/*}"

pushd ${REPO_ROOT} >> /dev/null

LICENSE1="Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved."
CURRENT_YEAR=$(date "+%Y")

LICENSE_CHEK="\(.*\)\(Copyright (c) 2017-\)\(.*\)\(, Mudita Sp. z.o.o. All rights reserved.\).*"
LICENSE_CHEK_BASH_RE="(.*)(Copyright \(c\) 2017-)(.*)(, Mudita Sp. z.o.o. All rights reserved.)"
LICENSE1="Copyright (c) 2017-${CURRENT_YEAR}, Mudita Sp. z.o.o. All rights reserved."
LICENSE2="For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md"

CHECK_ONLY="false"


@@ 25,10 30,13 @@ EXIT_CODE=0

#file extension; comment;checker/replacer function
declare -A FileTypes=( 
            ["c_header"]="h;cppChecker;"
            ["c_source"]="c;cppChecker;"
            ["header"]="hpp;cppChecker;"
            ["source"]="cpp;cppChecker;"
            ["python"]="py;pythonChecker;"
            ["shell"]="sh;bashChecker;"
            ["sqlite"]="sql;sqlChecker;"
        )
declare -a paths_to_ignore



@@ 40,13 48,19 @@ function addEmptyLine() {
    fi
}

function updateYear() {
    if [[ ${CHECK_LICENSE} =~ ${LICENSE_CHEK_BASH_RE} ]]; then
        sed -i "1,5s|${LICENSE_CHEK}|\1\2${CURRENT_YEAR}\4|g" ${FILE}
        echo -e "${YELLOW}Updated\e[0m"
    else 
        echo -e "${OK}"
    fi
}


function cppChecker(){
    FILE=$1
    LICENSE_LINE1="// ${LICENSE1}"
    LICENSE_LINE2="// ${LICENSE2}"

    CHECK_LICENSE=$(head -n5 ${FILE} | grep "${LICENSE1}")
function codeChecker(){
    CHECK_LICENSE=$(head -n5 ${FILE} | grep "${LICENSE_CHEK}")
    if [[ -z ${CHECK_LICENSE} ]]; then
        if [[ ${CHECK_ONLY} == "true" ]]; then
            echo -e "${ERROR}"


@@ 58,12 72,26 @@ function cppChecker(){
            echo -e "${FIXED}"
        fi
    else 
        echo -e "${OK}"
        updateYear
    fi
}

function cppChecker() {
    FILE=$1
    LICENSE_LINE1="// ${LICENSE1}"
    LICENSE_LINE2="// ${LICENSE2}"
    codeChecker
}

function sqlChecker() {
    FILE=$1
    LICENSE_LINE1="-- ${LICENSE1}"
    LICENSE_LINE2="-- ${LICENSE2}"
    codeChecker
}

function scriptChecker(){
    CHECK_LICENSE=$( head -n5 ${FILE} | grep "${LICENSE1}")
    CHECK_LICENSE=$( head -n5 ${FILE} | grep "${LICENSE_CHEK}")
    if [[ -z ${CHECK_LICENSE} ]]; then
        if [[ ${CHECK_ONLY} == "true" ]]; then
            echo -e "${ERROR}"


@@ 82,7 110,7 @@ function scriptChecker(){
            echo -e "${FIXED}"
        fi
    else 
        echo -e "${OK}"
        updateYear
    fi

}


@@ 236,7 264,7 @@ function parseArgs() {
                CHECK_ONLY=true
                ;;
            "--hook")
                GET_FILES_CMD="git diff --cached --name-only --diff-filter=A -z ${against:-HEAD}"
                GET_FILES_CMD="git diff --cached --name-only --diff-filter=AM -z ${against:-HEAD}"
                shift
                hookMain $@
                ;;

M image/user/db/alarms_001.sql => image/user/db/alarms_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

CREATE TABLE IF NOT EXISTS alarms(
                  _id INTEGER PRIMARY KEY,
                  time DATETIME,

M image/user/db/alarms_002.sql => image/user/db/alarms_002.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

INSERT or IGNORE INTO alarmStatuses (_id, name) VALUES (1, 'Off');
INSERT or IGNORE INTO alarmStatuses (_id, name) VALUES (2, 'On');
INSERT or IGNORE INTO alarmStatuses (_id, name) VALUES (3, 'FirstSnooze');

M image/user/db/calllog_001.sql => image/user/db/calllog_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

CREATE TABLE IF NOT EXISTS calls(
    _id INTEGER PRIMARY KEY,
    number TEXT DEFAULT '',

M image/user/db/calllog_002.sql => image/user/db/calllog_002.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

BEGIN TRANSACTION;
INSERT OR REPLACE INTO calls ("_id","number","e164number","presentation","date","duration","type","name","contactId","isRead") VALUES (1,'500466048','+48500466048',1,'2020-09-14 11:21:02',0,1,'alek',4,1);
COMMIT;

M image/user/db/contacts_001.sql => image/user/db/contacts_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

CREATE TABLE IF NOT EXISTS contacts
(
    _id        INTEGER PRIMARY KEY,

M image/user/db/contacts_002.sql => image/user/db/contacts_002.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

INSERT OR REPLACE INTO contact_group_protected
    (_id, group_id)
VALUES (1, 1),

M image/user/db/contacts_003.sql => image/user/db/contacts_003.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

BEGIN;
INSERT OR REPLACE INTO  contacts (_id,name_id,numbers_id,ring_id,address_id,speeddial) VALUES (1,1,'1',1,1,1);
INSERT OR REPLACE INTO  contacts (_id,name_id,numbers_id,ring_id,address_id,speeddial) VALUES (2,2,'2',2,2,2);

M image/user/db/notes_001.sql => image/user/db/notes_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

CREATE TABLE IF NOT EXISTS notes(
    _id INTEGER PRIMARY KEY,
    date INTEGER,

M image/user/db/notes_002.sql => image/user/db/notes_002.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

BEGIN;
INSERT OR IGNORE INTO notes ("_id","date","snippet") VALUES (1,1565586181,'snippet 1');
INSERT OR IGNORE INTO notes ("_id","date","snippet") VALUES (2,1565586381,'snippet 2

M image/user/db/notifications_001.sql => image/user/db/notifications_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

CREATE TABLE IF NOT EXISTS notifications(
    _id INTEGER PRIMARY KEY,
    key INTEGER UNIQUE DEFAULT 0,

M image/user/db/notifications_002.sql => image/user/db/notifications_002.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

INSERT OR IGNORE INTO notifications (key, value) VALUES
    ('1', '0'),
    ('2', '0');

M image/user/db/settings_001.sql => image/user/db/settings_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

INSERT OR REPLACE INTO settings_tab (path, value) VALUES
    ('timeFormat12', '0'),
    ('timeDateFormat', '1'),

M image/user/db/settings_v2_001.sql => image/user/db/settings_v2_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

--
-- Main settings table, for string application persistent data
--

M image/user/db/settings_v2_002.sql => image/user/db/settings_v2_002.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

-- ----------- insert default values ----------------------
INSERT OR REPLACE INTO dictionary_tab (path, value) VALUES
    ('system/phone_mode', 'online'),

M image/user/db/sms_001.sql => image/user/db/sms_001.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

CREATE TABLE IF NOT EXISTS sms
(
    _id        INTEGER PRIMARY KEY,

M image/user/db/sms_002.sql => image/user/db/sms_002.sql +3 -0
@@ 1,1 1,4 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

INSERT OR IGNORE INTO threads_count ( _id, count ) VALUES (1,0);

M image/user/db/sms_003.sql => image/user/db/sms_003.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

BEGIN TRANSACTION;
INSERT OR REPLACE INTO "sms" ("_id","thread_id","contact_id","date","date_send","error_code","body","type") VALUES (1,1,1,1547465101,1,1,'najstarsze odb fsjdklafjskldjf',4);
INSERT OR REPLACE  INTO "sms" ("_id","thread_id","contact_id","date","date_send","error_code","body","type") VALUES (2,1,1,1547468701,2,2,'wys',8);

M module-audio/Audio/decoder/xing_header.c => module-audio/Audio/decoder/xing_header.c +2 -8
@@ 1,11 1,5 @@
/*
 *  @file xing_header.c
 *  @author Mateusz Piesta (mateusz.piesta@mudita.com)
 *  @date 22 mar 2018
 *  @brief
 *  @copyright Copyright (C) 2018 mudita.com
 *  @details
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "xing_header.h"
#include <string.h>

M module-audio/Audio/decoder/xing_header.h => module-audio/Audio/decoder/xing_header.h +2 -8
@@ 1,11 1,5 @@
/*
 *  @file xing_header.h
 *  @author Mateusz Piesta (mateusz.piesta@mudita.com)
 *  @date 22 mar 2018
 *  @brief
 *  @copyright Copyright (C) 2018 mudita.com
 *  @details
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once


M module-bsp/board/linux/board.h => module-bsp/board/linux/board.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _BOARD_H_
#define _BOARD_H_


M module-bsp/board/linux/eink/ED028TC1.c => module-bsp/board/linux/eink/ED028TC1.c +3 -4
@@ 1,9 1,8 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * @file ED028TC1.c
 * @author Lukasz Skrzypczak (l.skrzypczak@mudita.com)
 * @date Sep 6, 2017
 * @brief EInk ED028TC1 electronic paper display driver
 * @copyright Copyright (C) 2017 mudita.com.
 * @details This is hardware specific electronic paper display ED028TC1 driver.
 *
 * @note All the commands implemented in here are based on the datasheets:

M module-bsp/board/linux/eink/ED028TC1.h => module-bsp/board/linux/eink/ED028TC1.h +3 -4
@@ 1,9 1,8 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * @file ED028TC1.h
 * @author Lukasz Skrzypczak (l.skrzypczak@mudita.com)
 * @date Sep 6, 2017
 * @brief Header for EInk ED028TC1 electronic paper display driver
 * @copyright Copyright (C) 2017 mudita.com.
 * @details This is hardware specific electronic paper display ED028TC1 driver.
 */


M module-bsp/board/linux/eink/fsl_edma.h => module-bsp/board/linux/eink/fsl_edma.h +3 -8
@@ 1,11 1,6 @@
/*
 * @file fsl_edma.h
 * @author Robert Borzecki (robert.borzecki@mudita.com)
 * @date 29 maj 2019
 * @brief
 * @copyright Copyright (C) 2019 mudita.com
 * @details
 */
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef MODULE_BSP_BOARD_LINUX_FSL_DRIVERS_FSL_EDMA_H_
#define MODULE_BSP_BOARD_LINUX_FSL_DRIVERS_FSL_EDMA_H_


M module-bsp/board/linux/lpm/LinuxLPM.h => module-bsp/board/linux/lpm/LinuxLPM.h +2 -3
@@ 1,6 1,5 @@
//
// Created by mati on 09.09.2019.
//
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef PUREPHONE_LINUXLPM_H
#define PUREPHONE_LINUXLPM_H

M module-bsp/board/rt1051/bsp/audio/qfilter.c => module-bsp/board/rt1051/bsp/audio/qfilter.c +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "qfilter.h"

#include <stdint.h>

M module-bsp/board/rt1051/bsp/audio/qfilter.h => module-bsp/board/rt1051/bsp/audio/qfilter.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#ifdef __cplusplus

M module-bsp/board/rt1051/bsp/eink/ED028TC1.h => module-bsp/board/rt1051/bsp/eink/ED028TC1.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * @file ED028TC1.h
 * @author Lukasz Skrzypczak (l.skrzypczak@mudita.com)

M module-bsp/board/rt1051/bsp/eink/bsp_eink.h => module-bsp/board/rt1051/bsp/eink/bsp_eink.h +2 -8
@@ 1,11 1,5 @@
/*
 *  @file bsp_eink.h
 *  @author Mateusz Piesta (mateusz.piesta@mudita.com)
 *  @date 7 sie 2018
 *  @brief
 *  @copyright Copyright (C) 2018 mudita.com
 *  @details
 */
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef EINK_BSP_EINK_H_
#define EINK_BSP_EINK_H_

M module-bsp/board/rt1051/bsp/eink/eink_binarization_luts.c => module-bsp/board/rt1051/bsp/eink/eink_binarization_luts.c +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <stdint-gcc.h>

const uint8_t einkBinarizationLUT_2bpp[256] = {

M module-bsp/board/rt1051/bsp/eink/eink_binarization_luts.h => module-bsp/board/rt1051/bsp/eink/eink_binarization_luts.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <stdint-gcc.h>

extern const uint8_t einkBinarizationLUT_2bpp[256];

M module-bsp/board/rt1051/bsp/keyboard/TCA8418.h => module-bsp/board/rt1051/bsp/keyboard/TCA8418.h +3 -4
@@ 1,10 1,9 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * @file TCA8418.h
 * @author Lukasz Skrzypczak (lukasz.skrypczak@mudita.com)
 * @date 29 aug 2018
 * @brief Basic IO driver for TCA8418 keyboard controller
 * @copyright Copyright (C) 2018 mudita.com.
 * @details
 */

#ifndef INCLUDE_TCA8418_H_

M module-bsp/board/rt1051/common/dma_config.h => module-bsp/board/rt1051/common/dma_config.h +3 -8
@@ 1,11 1,6 @@
/*
 * @file dma_config.h
 * @author Robert Borzecki (robert.borzecki@mudita.com)
 * @date 24 maj 2019
 * @brief
 * @copyright Copyright (C) 2019 mudita.com
 * @details
 */
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef MODULE_BSP_BOARD_RT1051_EINK_DMA_CONFIG_H_
#define MODULE_BSP_BOARD_RT1051_EINK_DMA_CONFIG_H_


M module-bsp/board/rt1051/common/macros.h => module-bsp/board/rt1051/common/macros.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "MIMXRT1051.h"

M module-bsp/board/rt1051/common/pin_names.h => module-bsp/board/rt1051/common/pin_names.h +3 -5
@@ 1,10 1,8 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/*
 * @file pin_names.h
 * @author Lukasz Skrzypczak (lukasz.skrzypczak@mudita.com)
 * @date Oct 3, 2018
 * @brief Insert brief information about this file purpose.
 * @copyright Copyright (C) 2018 mudita.com.
 * @details More detailed information related to this code.
 */

#ifndef BSP_BOARD_PIN_NAMES_H_

M module-cellular/Modem/TS0710/DLC_channel.h => module-cellular/Modem/TS0710/DLC_channel.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 */

M module-cellular/Modem/TS0710/TS0710.h => module-cellular/Modem/TS0710/TS0710.h +2 -3
@@ 1,6 1,5 @@
/**
 * Project Untitled
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_H
#define _TS0710_H

M module-cellular/Modem/TS0710/TS0710_CLOSE.h => module-cellular/Modem/TS0710/TS0710_CLOSE.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief When the request primitive is passed to the TS 0710 layer of the transmitting device close down of the

M module-cellular/Modem/TS0710/TS0710_CONTROL.h => module-cellular/Modem/TS0710/TS0710_CONTROL.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The request primitive is used to convey control information to the remote port. The indication is sent to

M module-cellular/Modem/TS0710/TS0710_DATA.h => module-cellular/Modem/TS0710/TS0710_DATA.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The transmitting unit initiates transmission of data using the frame type specified for the chosen DLCI by

M module-cellular/Modem/TS0710/TS0710_DLC_ESTABL.h => module-cellular/Modem/TS0710/TS0710_DLC_ESTABL.h +3 -4
@@ 1,6 1,5 @@
/**
 * Project Untitled
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_DLC_ESTABL_H
#define _TS0710_DLC_ESTABL_H


@@ 75,4 74,4 @@ class TS0710_DLC_ESTABL
    bool confirm(DLCI_t DLCI, DLC_ESTABL_SystemParameters_t system_parameters);
};

#endif //_TS0710_DLC_ESTABL_H
\ No newline at end of file
#endif //_TS0710_DLC_ESTABL_H

M module-cellular/Modem/TS0710/TS0710_DLC_RELEASE.h => module-cellular/Modem/TS0710/TS0710_DLC_RELEASE.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The request primitive is used by the upper layer in the transmitting device to initiate close down of the

M module-cellular/Modem/TS0710/TS0710_FLOW.h => module-cellular/Modem/TS0710/TS0710_FLOW.h +3 -4
@@ 1,6 1,5 @@
/**
 * Project Untitled
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_FLOW_H
#define _TS0710_FLOW_H


@@ 36,4 35,4 @@ class TS0710_FLOW
    void indication(DLCI_t DLCI, State_e State);
};

#endif //_TS0710_FLOW_H
\ No newline at end of file
#endif //_TS0710_FLOW_H

M module-cellular/Modem/TS0710/TS0710_Frame.h => module-cellular/Modem/TS0710/TS0710_Frame.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_FRAME_H
#define _TS0710_FRAME_H


M module-cellular/Modem/TS0710/TS0710_PARNEG.h => module-cellular/Modem/TS0710/TS0710_PARNEG.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The request primitive is used to request that the remote 07.10 entity changes a specific DLC connection

M module-cellular/Modem/TS0710/TS0710_PORTNEG.h => module-cellular/Modem/TS0710/TS0710_PORTNEG.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The request primitive is used to request that the remote port changes its parameters. The indication is sent

M module-cellular/Modem/TS0710/TS0710_SERVNEG.h => module-cellular/Modem/TS0710/TS0710_SERVNEG.h +3 -4
@@ 1,6 1,5 @@
/**
 * Project Untitled
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_SERVNEG_H
#define _TS0710_SERVNEG_H


@@ 67,4 66,4 @@ class TS0710_SERVNEG
    void confirm(DLCI_t DLC, ServiceParameters_t Service_parameters, bool accept);
};

#endif //_TS0710_SERVNEG_H
\ No newline at end of file
#endif //_TS0710_SERVNEG_H

M module-cellular/Modem/TS0710/TS0710_SLEEP.h => module-cellular/Modem/TS0710/TS0710_SLEEP.h +4 -2
@@ 1,5 1,7 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The request primitive is used to advice the receiving device that the transmitter wishes to enter a low
 * power state. The TS 0710 layer of the receiving unit sends an indication primitive to the upper layer in order to
 * inform that the transmitting unit has entered the power saving state. The TS 0710 layer will automatically transmit


@@ 28,4 30,4 @@ class TS0710_SLEEP
    void confirm();
};

#endif //_TS0710_SLEEP_H
\ No newline at end of file
#endif //_TS0710_SLEEP_H

M module-cellular/Modem/TS0710/TS0710_START.h => module-cellular/Modem/TS0710/TS0710_START.h +3 -4
@@ 1,6 1,5 @@
/**
 * Project Untitled
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_START_H
#define _TS0710_START_H


@@ 93,4 92,4 @@ class TS0710_START
    }
};

#endif //_TS0710_START_H
\ No newline at end of file
#endif //_TS0710_START_H

M module-cellular/Modem/TS0710/TS0710_TEST.h => module-cellular/Modem/TS0710/TS0710_TEST.h +3 -4
@@ 1,6 1,5 @@
/**
 * Project Untitled
 */
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_TEST_H
#define _TS0710_TEST_H


@@ 29,4 28,4 @@ class TS0710_TEST
    void confirm(std::vector<uint8_t> TestData);
};

#endif //_TS0710_TEST_H
\ No newline at end of file
#endif //_TS0710_TEST_H

M module-cellular/Modem/TS0710/TS0710_WAKEUP.h => module-cellular/Modem/TS0710/TS0710_WAKEUP.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/**
 * Project Untitled
 * @brief The indication primitive is sent to the upper layer when the TS 0710 layer of the receiving unit receives a

M module-cellular/Modem/TS0710/TS0710_types.h => module-cellular/Modem/TS0710/TS0710_types.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef _TS0710_TYPES_H
#define _TS0710_TYPES_H


M module-services/service-db/agents/file_indexer/file_indexer.sql => module-services/service-db/agents/file_indexer/file_indexer.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

R"dbInitStr(

/* Create File indexer  tables */

M module-services/service-db/agents/settings/settings.sql => module-services/service-db/agents/settings/settings.sql +3 -0
@@ 1,3 1,6 @@
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

--x, R"dbInitStr( 
/*
 * Create Settings tables

M module-utils/test/test_log2.h => module-utils/test/test_log2.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/*
 * unittest2_log.h
 *

M source/config.h => source/config.h +3 -0
@@ 1,3 1,6 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#if defined(TARGET_Linux) && not defined(SERIAL_PORT)