drv_spi_lcd.c 526 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-27 zylx first version
  9. */
  10. #include <board.h>
  11. #include <drv_spi.h>
  12. #include <rtdevice.h>
  13. #include <rthw.h>
  14. #include <finsh.h>
  15. #ifdef BSP_USING_SPI_LCD
  16. static int rt_hw_spi_lcd_init(void)
  17. {
  18. rt_hw_spi_device_attach("spi1", "spi10", GPIOA, GPIO_PIN_4);
  19. return RT_EOK;
  20. }
  21. INIT_PREV_EXPORT(rt_hw_spi_lcd_init);
  22. #endif/* BSP_USING_SPI_LCD */