Search:

Type: Posts; User: DanielB33

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,118

    vart, I understand that this change would be...

    vart, I understand that this change would be made. But if you took that change one step farther, what code would replace (FLASH_TypeDef *)? Phantomotap, I am confused by your response. The variable ...
  2. Replies
    6
    Views
    1,118

    Advanced (I think) pointer questions.

    I am working with a STM32f1 micro. In the standard peripheral libraries, I noticed they use some very organized methods of accessing the many registers and peripherals. I do not understand a small...
  3. Thanks to everyone for the help. This has been...

    Thanks to everyone for the help. This has been very educational.
  4. Thanks a lot!!! I have been using the large...

    Thanks a lot!!! I have been using the large switch statements and enums...but as you said it can become exhausting....needing cases inside cases at times. Lastly (going back to the original question)...
  5. anduril462 you nailed it. I now understand that...

    anduril462 you nailed it. I now understand that when #define EXT alone is executed, my variables are actually defined. I still do not get why ALL my variabes are suddenly defined once I define EXT...
  6. Help understanding structuring multiple .c and .h files (intial linker process)

    I have a var.h file where I create many global variables. I have many .c files where I need to access them (duh). I include var.h in almost all .c files. In the var.h file, I assume that I can simply...
  7. Replies
    2
    Views
    591

    Damn it. What a stupid error. Thanks

    Damn it. What a stupid error. Thanks
  8. Replies
    2
    Views
    591

    Help finding bug.

    Thanks for taking a look at my code. Below is code for a motor controller. Everything looks just fine to me. It works for one cycle, and then will NOT return to the neutral state and I have no idea...
  9. It works now. Needed those parentheses in there!...

    It works now. Needed those parentheses in there! It is always those little things....
    The condition sequences should not be the same. one has a 1 included and one has a 2, for different PWM modes....
  10. Can anyone find the bug in this code? (not to much code to look though)

    User sends micro data through usb via virtual com port (so data is sent serially). when the user hits the enter key, the code below is executed ( the update_flash(chec_string()) function ). This is...
  11. Thank you all for adding to the discussion, sorry...

    Thank you all for adding to the discussion, sorry for my delayed response. I did not expect such great answers! I will use this forum more.

    I ended up using atoi() function, sending a pointer to...
  12. ....thanks lol. I could easily do that but I want...

    ....thanks lol. I could easily do that but I want to know if I am missing a function or something that could take care of this.
  13. The code is not straight forward. I have...

    The code is not straight forward. I have individual characters being sent to my micro via serial (virtual com port set up) com. Each character send is stored into a buffer. If the correct sequence if...
  14. My question is "Is there a way to convert members...

    My question is "Is there a way to convert members of an array into a single number?"
    for example,

    buffer[7] = ['S', 'T', 0, 0, 1, 0, 5]//Need code to take 1, 0, 5 out of array as a single...
  15. Converting multiple individual array members into one number?

    I have an array,members 5-7 are numbers 1, 0, and 5. (or any other three numbers of your choosing). These three numbers need to be changed into a single number 105 and stored into a variable. The...
Results 1 to 15 of 15