Detailed Description

Files

file  pic.h
 Implementations of the power-and-interrupt controller.
 

Functions

void pic_init (void)
 Initialize the power-and-interrupt controller. More...
 
void pic_write (uint8_t addr, uint8_t value)
 Write data to the power-and-interrupt controller. More...
 

Function Documentation

◆ pic_init()

void pic_init ( void  )

Initialize the power-and-interrupt controller.

The following values must be defined:

  • PIC_INT_WAKE_PIN
  • PIC_I2C
  • PIC_I2C_ADDR

◆ pic_write()

void pic_write ( uint8_t  addr,
uint8_t  value 
)

Write data to the power-and-interrupt controller.

Parameters
[in]addrAddress of the peripheral to write to.
[in]valueValue to write.