Remove SD card detect code
This commit is contained in:
parent
2a0b7e31a1
commit
2a9bf62d5b
|
@ -1 +1 @@
|
|||
544
|
||||
545
|
||||
|
|
11
src/main.c
11
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue