lpc17xx_lcd.c 246 B

12345678910111213
  1. #include <rtthread.h>
  2. #include "LPC177x_8x.h"
  3. #include "lpc177x_8x_pinsel.h"
  4. /* LCD BL P5_4 */
  5. void rt_hw_lcd_init(void)
  6. {
  7. PINSEL_ConfigPin(5, 4, 0);
  8. LPC_GPIO5->DIR |= 1<<4;
  9. LPC_GPIO5->CLR = 1<<4;
  10. LPC_GPIO5->SET = 1<<4;
  11. }