123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- #ifndef ZEPHYR_INCLUDE_DRIVERS_HWINFO_H_
- #define ZEPHYR_INCLUDE_DRIVERS_HWINFO_H_
- #include <zephyr/types.h>
- #include <sys/types.h>
- #include <stddef.h>
- #include <errno.h>
- #include <kernel.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define RESET_PIN BIT(0)
- #define RESET_SOFTWARE BIT(1)
- #define RESET_BROWNOUT BIT(2)
- #define RESET_POR BIT(3)
- #define RESET_WATCHDOG BIT(4)
- #define RESET_DEBUG BIT(5)
- #define RESET_SECURITY BIT(6)
- #define RESET_LOW_POWER_WAKE BIT(7)
- #define RESET_CPU_LOCKUP BIT(8)
- #define RESET_PARITY BIT(9)
- #define RESET_PLL BIT(10)
- #define RESET_CLOCK BIT(11)
- __syscall ssize_t hwinfo_get_device_id(uint8_t *buffer, size_t length);
- ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length);
- __syscall int hwinfo_get_reset_cause(uint32_t *cause);
- int z_impl_hwinfo_get_reset_cause(uint32_t *cause);
- __syscall int hwinfo_clear_reset_cause(void);
- int z_impl_hwinfo_clear_reset_cause(void);
- __syscall int hwinfo_get_supported_reset_cause(uint32_t *supported);
- int z_impl_hwinfo_get_supported_reset_cause(uint32_t *supported);
- #ifdef __cplusplus
- }
- #endif
- #include <syscalls/hwinfo.h>
- #endif
|