PebbleOS
Loading...
Searching...
No Matches
reset.h File Reference
#include <stdint.h>
#include <pbl/device.h>

Data Structures

struct  pbl_reset_controller_ops
 Reset controller driver operations, called with interrupts locked. More...
 
struct  pbl_reset_controller
 A reset controller. More...
 
struct  pbl_reset
 A reset line, as used by a consumer. More...
 

Macros

#define PBL_RESET_CONTROLLER_STATE_DEFINE(sym)   PBL_DEVICE_STATE_DEFINE(sym)
 Define the class state of reset controller sym, for the driver's define macro.
 
#define PBL_RESET_CONTROLLER_INIT(sym, _name, _init, _parent, _ops, _num_resets)
 Initializer for the struct pbl_reset_controller of controller sym.
 
#define PBL_RESET(_ctrl, _id)   {.ctrl = (_ctrl), .id = (_id)}
 Initializer for a struct pbl_reset.
 

Functions

int pbl_reset_assert (const struct pbl_reset *rst)
 Put a line in reset.
 
int pbl_reset_deassert (const struct pbl_reset *rst)
 Take a line out of reset.
 
int pbl_reset_reset (const struct pbl_reset *rst)
 Pulse a line: assert then deassert it.