fix(hal-watchdog): Add feature guards to K64F watchdog implementation

pull/10657/head
Steve Cartmell 2018-10-30 12:04:50 +00:00 committed by Filip Jagodzinski
parent b06e30ed35
commit 7f47b0a65c
2 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,8 @@
*/
#include "reset_reason_api.h"
#if DEVICE_RESET_REASON
#include "fsl_rcm.h"
reset_reason_t hal_reset_reason_get(void)
@ -102,3 +104,5 @@ void hal_reset_reason_clear(void)
RCM_ClearStickyResetSources(RCM, kRCM_SourceAll);
#endif
}
#endif // DEVICE_RESET_REASON

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
#include "watchdog_api.h"
#if DEVICE_WATCHDOG
#include "reset_reason_api.h"
#include "fsl_wdog.h"
#include "fsl_clock.h"
@ -123,3 +126,5 @@ watchdog_features_t hal_watchdog_get_platform_features(void)
return features;
}
#endif // DEVICE_WATCHDOG