Remove SD card detect code
This commit is contained in:
parent
2a0b7e31a1
commit
2a9bf62d5b
|
@ -1 +1 @@
|
||||||
544
|
545
|
||||||
|
|
|
@ -2,20 +2,13 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
RCC->APB2ENR |= RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN;
|
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
|
||||||
|
|
||||||
GPIOC->CRH = (GPIOC->CRH
|
GPIOC->CRH = (GPIOC->CRH
|
||||||
& ~(0x0f << (4 * PIN_SUPPLY - 32)))
|
& ~(0x0f << (4 * PIN_SUPPLY - 32)))
|
||||||
| (0x01 << (4 * PIN_SUPPLY - 32)) // Output, max. 10 MHz
|
| (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);
|
GPIOC->BSRR = (1 << PIN_SUPPLY);
|
||||||
|
|
||||||
Camera_Init();
|
Camera_Init();
|
||||||
|
|
Loading…
Reference in a new issue