mirror of https://github.com/ARMmbed/mbed-os.git
fix(hal-watchdog): Add feature guards to K64F watchdog implementation
parent
b06e30ed35
commit
7f47b0a65c
|
@ -15,6 +15,8 @@
|
||||||
*/
|
*/
|
||||||
#include "reset_reason_api.h"
|
#include "reset_reason_api.h"
|
||||||
|
|
||||||
|
#if DEVICE_RESET_REASON
|
||||||
|
|
||||||
#include "fsl_rcm.h"
|
#include "fsl_rcm.h"
|
||||||
|
|
||||||
reset_reason_t hal_reset_reason_get(void)
|
reset_reason_t hal_reset_reason_get(void)
|
||||||
|
@ -102,3 +104,5 @@ void hal_reset_reason_clear(void)
|
||||||
RCM_ClearStickyResetSources(RCM, kRCM_SourceAll);
|
RCM_ClearStickyResetSources(RCM, kRCM_SourceAll);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // DEVICE_RESET_REASON
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "watchdog_api.h"
|
#include "watchdog_api.h"
|
||||||
|
|
||||||
|
#if DEVICE_WATCHDOG
|
||||||
|
|
||||||
#include "reset_reason_api.h"
|
#include "reset_reason_api.h"
|
||||||
#include "fsl_wdog.h"
|
#include "fsl_wdog.h"
|
||||||
#include "fsl_clock.h"
|
#include "fsl_clock.h"
|
||||||
|
@ -123,3 +126,5 @@ watchdog_features_t hal_watchdog_get_platform_features(void)
|
||||||
|
|
||||||
return features;
|
return features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // DEVICE_WATCHDOG
|
||||||
|
|
Loading…
Reference in New Issue