1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2021, Microchip 4 */ 5 #ifndef __DRIVERS_ATMEL_RSTC_H 6 #define __DRIVERS_ATMEL_RSTC_H 7 8 #include <compiler.h> 9 #include <stdbool.h> 10 11 #if defined(CFG_ATMEL_RSTC) 12 bool atmel_rstc_available(void); 13 14 void __noreturn atmel_rstc_reset(void); 15 #else atmel_rstc_available(void)16static inline bool atmel_rstc_available(void) 17 { 18 return false; 19 } 20 atmel_rstc_reset(void)21static inline void atmel_rstc_reset(void) {} 22 #endif 23 24 #endif /* __DRIVERS_ATMEL_RSTC_H */ 25