diff --git a/build-number.txt b/build-number.txt index 4970e69..fc3dff1 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -544 +545 diff --git a/src/main.c b/src/main.c index 8b772a0..e8aae27 100644 --- a/src/main.c +++ b/src/main.c @@ -2,25 +2,18 @@ int main(void) { - RCC->APB2ENR |= RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; + RCC->APB2ENR |= RCC_APB2ENR_IOPCEN; GPIOC->CRH = (GPIOC->CRH & ~(0x0f << (4 * PIN_SUPPLY - 32))) | (0x01 << (4 * PIN_SUPPLY - 32)) // Output, max. 10 MHz ; - GPIOB->CRL = (GPIOB->CRL - & ~(0x0f << (4 * PIN_SD_CARD_DETECT))) - | (0x08 << (4 * PIN_SD_CARD_DETECT)) // Input with pull-up/-down - ; - // Use pull-up - GPIOB->BSRR = (1 << PIN_SD_CARD_DETECT); - GPIOC->BSRR = (1 << PIN_SUPPLY); Camera_Init(); LTP1245_Init(); - + LTP1245_FeedPaper(100); LTP1245_FeedPaper(10);