• Function return value if () are missing
    As I am sure most of us have at some time, I have ocasionally missed the () off the end when calling a function. e.g myFunction; instead of myFunction(); When I do this the code compiles and...
  • Returning multiple values from a function??
    I want a function to return multiple values after doing data processing i.e. void test(int a, int b int c) whereas a, b and c have values set and control is returned to the caller with the values sent...
  • ADC DMA wrong values
    Hi, I'm facing some problem with ADC and DMA of STM32f103 uC. I have a stm32f103 board and I had configured it to use ADC with DMA. Both configurations are taken from examples codes. I connected...
  • Caller Function Did Not Keep R3
    Hi, I have a "test_fun1()" function call to a inline ASM "test_fun2()". I found that the caller, "test_fun1()" did not keep the R3 before jump to "test_fun2()", which cause the result of the "test_fun1...
  • Caller Function Did Not Keep R3
    Hi, I have a "test_fun1()" function call to a inline ASM "test_fun2()". I found that the caller, "test_fun1()" did not keep the R3 before jump to "test_fun2()", which cause the result of the "test_fun1...