Commit f373b9fc authored by Mikaël BRIDAY's avatar Mikaël BRIDAY

maj lab3

parent 9142da4f
......@@ -13,11 +13,13 @@ void setup() {
// PB0 output
GPIOB->MODER &= ~GPIO_MODER_MODER0_Msk;
GPIOB->MODER |= GPIO_MODER_MODER0_0;
GPIOB->BSRR = GPIO_BSRR_BR_0;
}
/* main function */
int main(void) {
setup();
for(int i=0;i<1000;i++);
/* Infinite loop */
while (1) {
/* Add application code here */
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment