Add debug LED

This commit is contained in:
fruchti 2018-08-04 17:00:41 +02:00
parent cf1ac4b7e8
commit be01d51eff

View file

@ -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);