Search:

Type: Posts; User: wolfrose

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    286

    Yes, that's my post in that forum. As the...

    Yes, that's my post in that forum.

    As the thread got really long and there's only one member who is helping me and the member helped me a lot so far and I still have issues in the code, but I...
  2. Replies
    2
    Views
    286

    Not consistent coroutines code results

    Hi,

    I was learning about coroutines and I like it beside I did a similar code using void pointers which contain a lot of casting, so I for now like the coroutines more.

    I did a small example on...
  3. OK, I want to get the timer counting mode not...

    OK, I want to get the timer counting mode not time elapse mode as with the timeout.

    I want the timer to run in the background and start running, counting from 0 to overflow and start again, not...
  4. I'm working on this one: #include...

    I'm working on this one:


    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <stdint.h>
    #include <stdbool.h>
    #include <inttypes.h>
  5. OK, got this code to work. ...

    OK, got this code to work.



    /* Title: library manager
    Date: Mon, 11 Jun 2021
    */
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
  6. Thank you so much for the links ! I tried the...

    Thank you so much for the links ! I tried the snippet and it worked, I got the timeout action.

    But I want a simpler one, so I tried the "SetTimer" in this link:

    SetTimer function (winuser.h) -...
  7. How to implement software timers for C GNU code ?

    Hi,

    I searched and tried to compile some snippets and example codes from online but faced some problems.

    Last one, this:

    Timer framework in C - Code Review Stack Exchange

    But got this...
  8. I'm writing a small threading manager for...

    I'm writing a small threading manager for microcontrollers and having problems in referencing pointers to void :)
  9. malloc different types of data and a pointer to array

    Hi,

    I want to get a pointer to a list of data that should be a list of arguments.

    These are header stuff:
    ...
  10. I liked the "toys" description :biggrin: Yes...

    I liked the "toys" description :biggrin:

    Yes of course without OS, one has to read the datasheet and write the device drivers for that chip.

    Arduino; for example, is doing this by installing...
  11. Yes, I got you, you mean that the hardware is...

    Yes, I got you, you mean that the hardware is something done which is the CPU and how it handles tasks, that's the hardware part.

    But for the software part, it is the way how the core main...
  12. OK, so my understanding for the desktop running...

    OK, so my understanding for the desktop running concept is that windows is built over a kernel written in C.

    So the kernel of the CPU is the one that do the algorithms, logic and arithmetic...
  13. How a CPU with multi-core architecture run kernel with one main function ?

    Hi,

    I hope it's the right forum to ask this question, I was doing a simple microcontroller session and one asked me this question which I didn't expect actually ;)

    He asked me why in a C...
  14. So is recursion a good programming practice or I...

    So is recursion a good programming practice or I better use function pointers and callbacks from a manager function ?
  15. It means like "hopefully" in the Arabic language,...

    It means like "hopefully" in the Arabic language, also; like, for sake of God, for the love of God ... etc. Arabs also have religious phrases like any other regions in the world :) I hope it's not a...
  16. I found this link which talks about the goals I...

    I found this link which talks about the goals I want to reach for God's will.

    Arduino Linked List Menu for LCD | Arduino | C++ Programming | Freelancer

    Yes, I want a code that manage the writes...
  17. I checked the optimizations in codeblocks, there...

    I checked the optimizations in codeblocks, there are 11. Which one to use ?

    Also, went to the gcc website, this link, there are a lot of stuff here:

    Optimize Options (Using the GNU Compiler...
  18. OK, so unless I optimize the compiler, it would...

    OK, so unless I optimize the compiler, it would be like free machine. Basically a compiler like the GCC is doing anything freely without optimizations. The programmer has to do them.

    Are there any...
  19. It's ok, I'm not insisting on this method, II...

    It's ok, I'm not insisting on this method, II just tried it and thought why it crashes every time.

    My alternative solution is to run a normal timer; like:


    uint32_t millis(void){
    ...
  20. I'm searching now for software timers. I want...

    I'm searching now for software timers.

    I want a timer to run the background, I want to do some multitasking and learn a little bit of threading.
  21. But the same method is known in C programming....

    But the same method is known in C programming. Check this link:

    C - Recursion - Tutorialspoint
  22. Yes, I think the recursive calls are causing the...

    Yes, I think the recursive calls are causing the problem. A normal while loop works perfectly.

    Yes, the way I'm calling the function from itself is wrong I guess, I should call another problem.
  23. I want to run a counter until overflow but counting stops at 43178

    Hello,

    I'm trying to emulate Arduino
    millis() function which is used for functions timing, ... etc.

    I tried this function which is working until it hits 43178 and stops every time I run this...
  24. Replies
    16
    Views
    1,583

    It's OK I solved it partially.

    It's OK I solved it partially.
  25. Replies
    16
    Views
    1,583

    Hello, I have another question regarding...

    Hello,

    I have another question regarding accessing struct in multiple source files. Should I post it here or open a new thread ?
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4