Add debug LED
This commit is contained in:
parent
cf1ac4b7e8
commit
be01d51eff
|
@ -5,6 +5,12 @@ int main(void)
|
|||
LTP1245_Init();
|
||||
|
||||
// LTP1245_FeedPaper(10);
|
||||
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
|
||||
|
||||
GPIOC->CRH = (GPIOC->CRH
|
||||
& ~(0x0f << (4 * PIN_LED - 32)))
|
||||
| (0x01 << (4 * PIN_LED - 32)) // Output, max. 10 MHz
|
||||
;
|
||||
|
||||
char buff[30];
|
||||
itoa(BUILD_NUMBER, buff, 10);
|
||||
|
|
Loading…
Reference in a new issue