atsam3 port: add all Atmel register definitions and scrap our custom made and incomplete
[bertos.git] / bertos / cpu / cortex-m3 / io / sam3_sysctl.h
diff --git a/bertos/cpu/cortex-m3/io/sam3_sysctl.h b/bertos/cpu/cortex-m3/io/sam3_sysctl.h
deleted file mode 100644 (file)
index 4be5129..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
- * \file
- * <!--
- * This file is part of BeRTOS.
- *
- * Bertos 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 2 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, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- *
- * As a special exception, you may use this file as part of a free software
- * library without restriction.  Specifically, if other files instantiate
- * templates or use macros or inline functions from this file, or you compile
- * this file and link it with other files to produce an executable, this
- * file does not by itself cause the resulting executable to be covered by
- * the GNU General Public License.  This exception does not however
- * invalidate any other reasons why the executable file might be covered by
- * the GNU General Public License.
- *
- * Copyright 2010 Develer S.r.l. (http://www.develer.com/)
- *
- * -->
- *
- * \brief ATSAM3 system controller registers.
- */
-
-#ifndef SAM3_SYSCTL_H
-#define SAM3_SYSCTL_H
-
-/**
- * Supply controller registers.
- */
-/*\{*/
-#define SUPC_CR_R   (*((reg32_t *)0x400E1410))   ///< Supply Controller Control
-#define SUPC_SMMR_R (*((reg32_t *)0x400E1414))   ///< Supply Controller Supply Monitor Mode
-#define SUPC_MR_R   (*((reg32_t *)0x400E1418))   ///< Supply Controller Mode
-#define SUPC_WUMR_R (*((reg32_t *)0x400E141C))   ///< Supply Controller Wake Up Mode
-#define SUPC_WUIR_R (*((reg32_t *)0x400E1420))   ///< Supply Controller Wake Up Inputs
-#define SUPC_SR_R   (*((reg32_t *)0x400E1424))   ///< Supply Controller Status
-/*\}*/
-
-/**
- * Supply controller addresses.
- */
-/*\{*/
-#define SUPC_CR   0x400E1410   ///< Supply Controller Control
-#define SUPC_SMMR 0x400E1414   ///< Supply Controller Supply Monitor Mode
-#define SUPC_MR   0x400E1418   ///< Supply Controller Mode
-#define SUPC_WUMR 0x400E141C   ///< Supply Controller Wake Up Mode
-#define SUPC_WUIR 0x400E1420   ///< Supply Controller Wake Up Inputs #define SUPC_SR   0x400E1424   ///< Supply Controller Status
-/*\}*/
-
-/**
- * Defines for bit fields in SUPC_CR register.
- */
-/*\{*/
-#define SUPC_CR_VROFF       BV(2)                     ///< Voltage Regulator Off
-#define SUPC_CR_XTALSEL     BV(3)                     ///< Crystal Oscillator Select
-#define SUPC_CR_KEY_P       24
-#define SUPC_CR_KEY_M       (0xff << SUPC_CR_KEY_P)   ///< SUPC_CR key
-#define SUPC_CR_KEY(value)  (SUPC_CR_KEY_M & ((value) << SUPC_CR_KEY_P))
-/*\}*/
-
-/**
- * Defines for bit fields in SUPC_SR register.
- */
-/*\{*/
-#define SUPC_SR_WKUPS     BV(1)   ///< WKUP Wake Up Status
-#define SUPC_SR_SMWS      BV(2)   ///< Supply Monitor Detection Wake Up Status
-#define SUPC_SR_BODRSTS   BV(3)   ///< Brownout Detector Reset Status
-#define SUPC_SR_SMRSTS    BV(4)   ///< Supply Monitor Reset Status
-#define SUPC_SR_SMS       BV(5)   ///< Supply Monitor Status
-#define SUPC_SR_SMOS      BV(6)   ///< Supply Monitor Output Status
-#define SUPC_SR_OSCSEL    BV(7)   ///< 32-kHz Oscillator Selection Status
-#define SUPC_SR_WKUPIS0   BV(16)  ///< WKUP Input Status 0
-#define SUPC_SR_WKUPIS1   BV(17)  ///< WKUP Input Status 1
-#define SUPC_SR_WKUPIS2   BV(18)  ///< WKUP Input Status 2
-#define SUPC_SR_WKUPIS3   BV(19)  ///< WKUP Input Status 3
-#define SUPC_SR_WKUPIS4   BV(20)  ///< WKUP Input Status 4
-#define SUPC_SR_WKUPIS5   BV(21)  ///< WKUP Input Status 5
-#define SUPC_SR_WKUPIS6   BV(22)  ///< WKUP Input Status 6
-#define SUPC_SR_WKUPIS7   BV(23)  ///< WKUP Input Status 7
-#define SUPC_SR_WKUPIS8   BV(24)  ///< WKUP Input Status 8
-#define SUPC_SR_WKUPIS9   BV(25)  ///< WKUP Input Status 9
-#define SUPC_SR_WKUPIS10  BV(26)  ///< WKUP Input Status 10
-#define SUPC_SR_WKUPIS11  BV(27)  ///< WKUP Input Status 11
-#define SUPC_SR_WKUPIS12  BV(28)  ///< WKUP Input Status 12
-#define SUPC_SR_WKUPIS13  BV(29)  ///< WKUP Input Status 13
-#define SUPC_SR_WKUPIS14  BV(30)  ///< WKUP Input Status 14
-#define SUPC_SR_WKUPIS15  BV(31)  ///< WKUP Input Status 15
-/*\}*/
-
-#endif /* SAM3_SYSCTL_H */