/***************************************************************************//** * \file cyhal_wdt_impl.h * * \brief * CAT1 specific implementation for WDT API. * ******************************************************************************** * \copyright * Copyright 2019-2021 Cypress Semiconductor Corporation (an Infineon company) or * an affiliate of Cypress Semiconductor Corporation * * 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. *******************************************************************************/ #pragma once /** * \addtogroup group_hal_impl_wdt WDT (Watchdog Timer) * \ingroup group_hal_impl * \{ * The CAT1 WDT is only capable of supporting certain timeout ranges below its maximum timeout. * As a result, any unsupported timeouts given to the HAL WDT are rounded up to the nearest supported value. * The following table describes the unsupported ranges and the timeout values they are rounded to. * *
| Range (ms) | Rounded Timeout (ms) |
|---|---|
| 3001 - 3999 | *4000 | *
| 1501 - 1999 | *2000 | *
| 751 - 999 | *1000 | *
| 376 - 499 | *500 | *
| 188 - 249 | *250 | *
| 94 - 124 | *125 | *
| 47 - 62 | *63 | *
| 24 - 31 | *32 | *
| 12 - 15 | *16 | *
| 6 - 7 | *8 | *
| 3 - 3 | *4 | *