Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
8d52c939
Commit
8d52c939
authored
Aug 19, 2019
by
schneider
Committed by
Rahix
Aug 19, 2019
Browse files
fix(bootloader): Init PMIC before portexpander
parent
de30bf01
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/card10/card10.c
View file @
8d52c939
...
...
@@ -41,16 +41,17 @@ void card10_init(void)
I2C_Shutdown
(
MXC_I2C1_BUS0
);
I2C_Init
(
MXC_I2C1_BUS0
,
I2C_FAST_MODE
,
NULL
);
pmic_init
();
pmic_set_led
(
0
,
0
);
pmic_set_led
(
1
,
0
);
pmic_set_led
(
2
,
0
);
portexpander_init
();
GPIO_Init
();
PB_Init
();
pmic_init
();
pmic_set_led
(
0
,
0
);
pmic_set_led
(
1
,
0
);
pmic_set_led
(
2
,
0
);
TMR_Delay
(
MXC_TMR0
,
MSEC
(
1000
),
0
);
while
(
RTC_EnableRTCE
(
MXC_RTC
)
==
E_BUSY
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment