main.c 670 B

1234567891011121314151617181920212223242526
  1. /* Hello World Example
  2. This example code is in the Public Domain (or CC0 licensed, at your option.)
  3. Unless required by applicable law or agreed to in writing, this
  4. software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  5. CONDITIONS OF ANY KIND, either express or implied.
  6. */
  7. #include <stdio.h>
  8. #include "sdkconfig.h"
  9. #include "freertos/FreeRTOS.h"
  10. #include "freertos/task.h"
  11. // Extra check to ensure our custom chip driver file is correctly linked
  12. #if !CONFIG_SPI_FLASH_OVERRIDE_CHIP_DRIVER_LIST
  13. #error Custom flash chip driver not used!
  14. #endif
  15. void app_main(void)
  16. {
  17. printf("Hello world!\n");
  18. while(1) {
  19. vTaskDelay(1);
  20. }
  21. }