Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bootmode.h File Reference

Public API for boot mode interface. More...

#include <stdint.h>
#include <stddef.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/types.h>

Go to the source code of this file.

Enumerations

enum  BOOT_MODE_TYPES { BOOT_MODE_TYPE_NORMAL = 0x00 , BOOT_MODE_TYPE_BOOTLOADER }
 

Functions

int bootmode_check (uint8_t boot_mode)
 Checks if the boot mode of the device is set to a specific value.
 
int bootmode_set (uint8_t boot_mode)
 Sets boot mode of device.
 
int bootmode_clear (void)
 Clear boot mode value (sets to 0) - which corresponds to BOOT_MODE_TYPE_NORMAL.
 

Detailed Description

Public API for boot mode interface.