diff options
Diffstat (limited to 'lib/same70b/include/instance/wdt.h')
-rw-r--r-- | lib/same70b/include/instance/wdt.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/same70b/include/instance/wdt.h b/lib/same70b/include/instance/wdt.h new file mode 100644 index 00000000..b56202a7 --- /dev/null +++ b/lib/same70b/include/instance/wdt.h @@ -0,0 +1,52 @@ +/** + * \file + * + * \brief Instance description for WDT + * + * Copyright (c) 2019 Microchip Technology Inc. + * + * \license_start + * + * \page License + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * \license_stop + * + */ + +/* file generated from device description version 2019-01-18T21:19:59Z */ +#ifndef _SAME70_WDT_INSTANCE_H_ +#define _SAME70_WDT_INSTANCE_H_ + +/* ========== Register definition for WDT peripheral ========== */ +#if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) + +#define REG_WDT_CR (0x400E1850) /**< (WDT) Control Register */ +#define REG_WDT_MR (0x400E1854) /**< (WDT) Mode Register */ +#define REG_WDT_SR (0x400E1858) /**< (WDT) Status Register */ + +#else + +#define REG_WDT_CR (*(__O uint32_t*)0x400E1850U) /**< (WDT) Control Register */ +#define REG_WDT_MR (*(__IO uint32_t*)0x400E1854U) /**< (WDT) Mode Register */ +#define REG_WDT_SR (*(__I uint32_t*)0x400E1858U) /**< (WDT) Status Register */ + +#endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */ + +/* ========== Instance Parameter definitions for WDT peripheral ========== */ +#define WDT_INSTANCE_ID 4 + +#endif /* _SAME70_WDT_INSTANCE_ */ |