Fix usage of SMBus channel E

This commit is contained in:
Jeremy Soller
2020-01-10 12:35:28 -07:00
parent 991da81117
commit 5914b174a2
2 changed files with 4 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ struct Gpio __code BKL_EN = GPIO(H, 2);
void gpio_init() {
// Enable LPC reset on GPD2
GCR = 0x04;
// Enable SMBus channel 4
GCR15 = (1 << 4);
// Set GPIO data
GPDRA = 0;