You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
485 B

  1. #include <stdbool.h>
  2. #include "hal.h"
  3. // typedef struct {
  4. // volatile uint32_t state;
  5. // } My_Mem;
  6. // #define MY_MEM ((My_Mem*)(0xF0030000))
  7. int main(void)
  8. {
  9. printf("HELLO WORLD\n");
  10. uint32_t state = 10000;
  11. // uint32_t state_return;
  12. while (1)
  13. {
  14. printf("State in : %i\n", state);
  15. // MY_MEM->state = state;
  16. // state_return = MY_MEM->state;
  17. state = state + 1;
  18. printf("State out: %i\n", state);
  19. }
  20. return 0;
  21. }