Power-and-interrupt driver¶
-
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
-
void
pic_write
(uint8_t addr, uint8_t value)¶ Write data to the power-and-interrupt controller.
Parameters
addr: Address of the peripheral to write to. value: Value to write.