main.c 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /******************************************************************************
  2. * File Name: main.c
  3. *
  4. * Description: This is the source code for the Empty PSoC6 Application
  5. * for ModusToolbox.
  6. *
  7. * Related Document: See Readme.md
  8. *
  9. *
  10. *******************************************************************************
  11. * (c) 2019, Cypress Semiconductor Corporation. All rights reserved.
  12. *******************************************************************************
  13. * This software, including source code, documentation and related materials
  14. * ("Software"), is owned by Cypress Semiconductor Corporation or one of its
  15. * subsidiaries ("Cypress") and is protected by and subject to worldwide patent
  16. * protection (United States and foreign), United States copyright laws and
  17. * international treaty provisions. Therefore, you may use this Software only
  18. * as provided in the license agreement accompanying the software package from
  19. * which you obtained this Software ("EULA").
  20. *
  21. * If no EULA applies, Cypress hereby grants you a personal, non-exclusive,
  22. * non-transferable license to copy, modify, and compile the Software source
  23. * code solely for use in connection with Cypress's integrated circuit products.
  24. * Any reproduction, modification, translation, compilation, or representation
  25. * of this Software except as specified above is prohibited without the express
  26. * written permission of Cypress.
  27. *
  28. * Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND,
  29. * EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED
  30. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress
  31. * reserves the right to make changes to the Software without notice. Cypress
  32. * does not assume any liability arising out of the application or use of the
  33. * Software or any product or circuit described in the Software. Cypress does
  34. * not authorize its products for use in any products where a malfunction or
  35. * failure of the Cypress product may reasonably be expected to result in
  36. * significant property damage, injury or death ("High Risk Product"). By
  37. * including Cypress's product in a High Risk Product, the manufacturer of such
  38. * system or application assumes all risk of such use and in doing so agrees to
  39. * indemnify Cypress against all liability.
  40. *******************************************************************************/
  41. #include "cy_pdl.h"
  42. #include "cycfg.h"
  43. #include "cy_device_headers.h"
  44. #include "cycfg_peripherals.h"
  45. #include <rtthread.h>
  46. #include "board.h"
  47. #include "cybsp.h"
  48. #ifdef RT_USING_FINSH
  49. #include <finsh.h>
  50. #include <shell.h>
  51. #endif
  52. int main(void)
  53. {
  54. for(;;)
  55. {
  56. rt_kprintf("hello rt-thread\n");
  57. rt_thread_mdelay(1000);
  58. }
  59. }
  60. /* [] END OF FILE */