Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions cpu/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
# SPDX-FileCopyrightText: 2020 HAW Hamburg
# SPDX-License-Identifier: LGPL-2.1-only

# +-----------+
# | CPU_MODEL |
# +-----------+
Expand Down
7 changes: 2 additions & 5 deletions cpu/doc.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<!--
Copyright (C) 2013 Freie Universität Berlin

This file is subject to the terms and conditions of the GNU Lesser
General Public License v2.1. See the file LICENSE in the top level
directory for more details.
SPDX-FileCopyrightText: 2013 Freie Universität Berlin
SPDX-License-Identifier: LGPL-2.1-only
-->

@defgroup cpu CPU
Expand Down
8 changes: 2 additions & 6 deletions cpu/sam3/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
# SPDX-FileCopyrightText: 2020 HAW Hamburg
# SPDX-License-Identifier: LGPL-2.1-only

config CPU_FAM_SAM3
bool
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/cpu.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2014-2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down Expand Up @@ -69,7 +66,7 @@
CKGR_MOR_MOSCXTEN |
CKGR_MOR_MOSCRCEN);
/* wait for crystal to be stable */
while (!(PMC->PMC_SR & PMC_SR_MOSCXTS));

Check warning on line 69 in cpu/sam3/cpu.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure

/* select crystal to clock the main clock */
PMC->CKGR_MOR = (CKGR_MOR_KEY(MORKEY) |
Expand All @@ -78,7 +75,7 @@
CKGR_MOR_MOSCRCEN |
CKGR_MOR_MOSCSEL);
/* wait for main oscillator selection to be complete */
while (!(PMC->PMC_SR & PMC_SR_MOSCSELS));

Check warning on line 78 in cpu/sam3/cpu.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure

/* setup PLLA */
PMC->CKGR_PLLAR = (CKGR_PLLAR_ONE |
Expand All @@ -86,16 +83,16 @@
CKGR_PLLAR_MULA(CLOCK_PLL_MUL) |
CKGR_PLLAR_DIVA(CLOCK_PLL_DIV));
/* wait for PLL to lock */
while (!(PMC->PMC_SR & PMC_SR_LOCKA));

Check warning on line 86 in cpu/sam3/cpu.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure

/* before switching to PLLA, we need to switch to main clock */
PMC->PMC_MCKR = PMC_MCKR_CSS_MAIN_CLK;
while (!(PMC->PMC_SR & PMC_SR_MCKRDY));

Check warning on line 90 in cpu/sam3/cpu.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure

/* use PLLA as main clock source */
PMC->PMC_MCKR = PMC_MCKR_CSS_PLLA_CLK;
/* wait for master clock to be ready */
while (!(PMC->PMC_SR & PMC_SR_MCKRDY));

Check warning on line 95 in cpu/sam3/cpu.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure

/* setup the SCLK: switch to external oscillator if applicable */
#if CLOCK_SCLK_XTAL
Expand Down
9 changes: 3 additions & 6 deletions cpu/sam3/include/periph_cpu.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*
* Copyright (C) 2015 Freie Universität Berlin
* 2015 Hamburg University of Applied Sciences
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2015 Freie Universität Berlin
* SPDX-FileCopyrightText: 2015 Hamburg University of Applied Sciences
* SPDX-License-Identifier: LGPL-2.1-only
*/

#pragma once
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/periph/adc.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2017 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2017 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/periph/cpuid.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2015 <[email protected]>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2015 <[email protected]>
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down Expand Up @@ -37,15 +34,15 @@

/*
Reading SAM3 Unique Identifier process (P 19.3.3.8):
- Send the Start Read unique Identifier command (STUI) by writing the Flash Command Register with the

Check warning on line 37 in cpu/sam3/periph/cpuid.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
STUI command.
- When the Unique Identifier is ready to be read, the FRDY bit in the Flash Programming Status Register

Check warning on line 39 in cpu/sam3/periph/cpuid.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
(EEFC_FSR) falls
- The Unique Identifier is located in the first 128 bits of the Flash memory mapping. So, at the address

Check warning on line 41 in cpu/sam3/periph/cpuid.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
0x400000-0x40008F.
- To stop the Unique Identifier mode, the user needs to send the Stop Read unique Identifier command (SPUI)

Check warning on line 43 in cpu/sam3/periph/cpuid.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
by writing the Flash Command Register with the SPUI command.
- When the Stop read Unique Identifier command (SPUI) has been performed, the FRDY bit in the Flash

Check warning on line 45 in cpu/sam3/periph/cpuid.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
Programming Status Register (EEFC_FSR) rises. If an interrupt was enabled by setting the FRDY bit in
EEFC_FMR, the interrupt line of the NVIC is activated.
*/
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/periph/dac.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2017 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2017 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/periph/hwrng.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2014-2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
9 changes: 3 additions & 6 deletions cpu/sam3/periph/pwm.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*
* Copyright (C) 2015 Hamburg University of Applied Sciences
* 2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2015 Hamburg University of Applied Sciences
* SPDX-FileCopyrightText: 2016 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/periph/rtt.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2017,2020 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2017, 2020 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
11 changes: 4 additions & 7 deletions cpu/sam3/periph/spi.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
* Copyright (C) 2014 Hamburg University of Applied Sciences
* 2016-2017 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
* SPDX-FileCopyrightText: 2014 Hamburg University of Applied Sciences
* SPDX-FileCopyrightText: 2016-2017 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
* @ingroup cpu_sam3
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam3/vectors.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2014-2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014-2015 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
8 changes: 2 additions & 6 deletions cpu/sam4s/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Copyright (c) 2025 Mesotic SAS
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
# SPDX-FileCopyrightText: 2025 Mesotic SAS
# SPDX-License-Identifier: LGPL-2.1-only

config CPU_FAM_SAM4S
bool
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam4s/cpu.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2025 Mesotic SAS
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2025 Mesotic SAS
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam4s/include/periph_cpu.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2025 Mesotic SAS
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2025 Mesotic SAS
* SPDX-License-Identifier: LGPL-2.1-only
*/

#pragma once
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam4s/vectors.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2025 Mesotic SAS
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2025 Mesotic SAS
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam_common/include/cpu_conf.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2017 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2017 HAW Hamburg
* SPDX-License-Identifier: LGPL-2.1-only
*/

#pragma once
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam_common/include/periph_cpu_common.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2025 Mesotic SAS
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2025 Mesotic SAS
* SPDX-License-Identifier: LGPL-2.1-only
*/

#pragma once
Expand Down
11 changes: 4 additions & 7 deletions cpu/sam_common/periph/gpio.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
* Copyright (C) 2014 Hauke Petersen <[email protected]>
* 2015 Hamburg University of Applied Sciences
* 2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014 Hauke Petersen <[email protected]>
* SPDX-FileCopyrightText: 2015 Hamburg University of Applied Sciences
* SPDX-FileCopyrightText: 2015 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam_common/periph/timer.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2014-2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/sam_common/periph/uart.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2014-2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014-2015 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
8 changes: 2 additions & 6 deletions cpu/samd21/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
# SPDX-FileCopyrightText: 2020 HAW Hamburg
# SPDX-License-Identifier: LGPL-2.1-only

config CPU_COMMON_SAMD21
bool
Expand Down
7 changes: 2 additions & 5 deletions cpu/samd21/cpu.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2015 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/samd21/include/periph_cpu.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2015-2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2015-2016 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

#pragma once
Expand Down
11 changes: 4 additions & 7 deletions cpu/samd21/periph/pm.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
* Copyright (C) 2016 Kaspar Schleiser <[email protected]>
* Copyright (C) 2014 Freie Universität Berlin
* Copyright (C) 2015 Saurabh Singh
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2016 Kaspar Schleiser <[email protected]>
* SPDX-FileCopyrightText: 2014 Freie Universität Berlin
* SPDX-FileCopyrightText: 2015 Saurabh Singh
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/samd21/vectors/vectors_samd1x.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2020 ML!PA Consulting GmbH
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2020 ML!PA Consulting GmbH
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/samd21/vectors/vectors_samd2x.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2014-2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2014-2015 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
8 changes: 2 additions & 6 deletions cpu/samd5x/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
# SPDX-FileCopyrightText: 2020 HAW Hamburg
# SPDX-License-Identifier: LGPL-2.1-only

config CPU_COMMON_SAMD5X
bool
Expand Down
7 changes: 2 additions & 5 deletions cpu/samd5x/cpu.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2019 ML!PA Consulting GmbH
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2019 ML!PA Consulting GmbH
* SPDX-License-Identifier: LGPL-2.1-only
*/

/**
Expand Down
7 changes: 2 additions & 5 deletions cpu/samd5x/include/can_params.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright (C) 2024 ML!PA Consulting GmbH
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
* SPDX-FileCopyrightText: 2024 ML!PA Consulting GmbH
* SPDX-License-Identifier: LGPL-2.1-only
*/

#pragma once
Expand Down
Loading
Loading