Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stm32f10x.h"
- GPIOA->CRL &= ~(GPIO_CRL_MODE6 | GPIO_CRL_CNF6); //Очищаем регистры MODE и CNF
- GPIOA->CRL |= GPIO_CRL_MODE6_1; //выход, 2MHz, push-pull
- GPIOA->CRL &= ~(GPIO_CRL_MODE7 | GPIO_CRL_CNF7); //Очищаем регистры MODE и CNF
- GPIOA->CRL |= GPIO_CRL_MODE7_1; //выход, 2MHz, push-pull
- GPIOA->BSRR |= GPIO_BSRR_BS7;
- GPIOA->BSRR |= GPIO_BSRR_BS6;
- //GPIOA->BSRR |= GPIO_BSRR_BR7;
- //GPIOA->BSRR |= GPIO_BSRR_BR6;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement