• LED with button

    SuleimanTheMagnificent
    SuleimanTheMagnificent

    I am using the STM32 G031K8 ARM CORTEX-M0 + development board.

    I am writing my code in Assembly language.

    I want the LED to light up when I add an external button and press this button. I have adjusted the Clock settings and GPIOx settings. I set the…

    • 1 month ago
    • Processors
    • Cortex-M / M-Profile forum
  • Return Values

    SuleimanTheMagnificent
    SuleimanTheMagnificent

    How does the returned value from a function is handled in Assembly?

    Please give an simple example.

    (e.g. int func ( int a ) { ... return x ; } ) ( Example for C)

    Thank you!

    • 1 month ago
    • Processors
    • Cortex-M / M-Profile forum
  • View related content throughout Processors
  • More
  • Cancel