Jovan Ivković / Mbed 2 deprecated Nucleo_bitbanging_portsD5-D7led

Dependencies:   mbed

Committer:
JovanEps
Date:
Fri Nov 11 01:48:39 2016 +0000
Revision:
5:64511b302803
Parent:
2:b60cb847489c
Child:
6:64a3bea8be86
commented 100ns wait command

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:005629fe3609 1 #include "mbed.h"
JovanEps 5:64511b302803 2 //*******************************************
JovanEps 5:64511b302803 3 //** Nucleo-144 Stm32F746 bitbanging *******
JovanEps 5:64511b302803 4 //** Jovan Ivkovic - 2016 *******
JovanEps 5:64511b302803 5 //*******************************************
screamer 0:005629fe3609 6 DigitalOut myled(LED1);
JovanEps 5:64511b302803 7 DigitalOut PD7(PF_13);
screamer 0:005629fe3609 8
screamer 0:005629fe3609 9 int main() {
JovanEps 5:64511b302803 10 myled = 1; // LED is ON - working
JovanEps 5:64511b302803 11 //NVIC_DisableIRQ(XXX); // Disable NVIC interrupt;
screamer 0:005629fe3609 12 while(1) {
JovanEps 5:64511b302803 13 PD7 = 1; // D7 go high
JovanEps 5:64511b302803 14 // wait(0.0000001); // 100ns - exclude, we need as fast as we can get
JovanEps 5:64511b302803 15 PD7 = 0; // D7 go low
JovanEps 5:64511b302803 16 // wait(0.0000001);// 100nsec - exclude, we need as fast as we can get
screamer 0:005629fe3609 17 }
screamer 0:005629fe3609 18 }