Posted on September 16, 2011 at 14:43 Hi everybody, i want to define an pin of my STM32F103ZE as input with an pull-down. I read in the documentation that i have to set in the CRH register CNF1 = 1, CNF0 = 0, Mode1 = Mode0 = 0 and the PxODR ...
Posted on September 15, 2011 at 11:21 Hi everybody, i have here an MCBSTM32E and i want to upgrade its Firmware via USB. So i found the DFU example from ST and tried to load it to the board, it worked. But i have some trouble with switching b...
Posted on September 15, 2011 at 15:40Uh well ok i will remember it for the next time. But i am still not sure about my generaly questions, thats why i posted here, too. I havent written that i fixed the button problem because i had no time so far. W...
Posted on May 17, 2011 at 14:10Working with Threads i think is to much now ^^ I solved it now that i send my board the command that i wait for data and then i allways called ReadFile till i got some data. Thank you verry much for your great help!
Posted on May 17, 2011 at 14:10Ok, i have now this code: BOOLEAN HID_ReadAsync(HANDLE hFile, HANDLE hEvent, BYTE *in_buffer, DWORD Length, DWORD *dwRead, DWORD *dwError){ BOOLEAN stat; DWORD Error; OVERLAPPED Overlapp...
Posted on May 17, 2011 at 14:10Hi, thanks for the advice! Is it better to write async? Writing async works already, but i am still not sure about reading. Do i wait with an while loop till GetOverlappedResult returns something and call then ReadFile...