Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "board.h"
  3. #include "peripherals.h"
  4. #include "pin_mux.h"
  5. #include "clock_config.h"
  6. #include "MKL03Z4.h"
  7. #include "fsl_debug_console.h"
  8. /* TODO: insert other include files here. */
  9.  
  10. /* TODO: insert other definitions and declarations here. */
  11.  
  12. /*
  13. * @brief Application entry point.
  14. */
  15. int main(void) {
  16.  
  17. /* Init board hardware. */
  18. BOARD_InitBootPins();
  19. BOARD_InitBootClocks();
  20. BOARD_InitBootPeripherals();
  21. /* Init FSL debug console. */
  22. BOARD_InitDebugConsole();
  23.  
  24. PRINTF("Hello Worldn");
  25.  
  26. /* Force the counter to be placed into memory. */
  27. volatile static int i = 0 ;
  28. /* Enter an infinite loop, just incrementing a counter. */
  29. while(1) {
  30. i++ ;
  31. }
  32. return 0 ;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement