/*! ---------------------------------------------------------------------------- * @file lcd.c * @brief EVB1000 LCD screen access functions * * @attention * * Copyright 2015 (c) Decawave Ltd, Dublin, Ireland. * * All rights reserved. * * @author Decawave */ #include #include "deca_sleep.h" #include "port.h" #include "lcd.h" #if (EVB1000_LCD_SUPPORT == 1) void writetoLCD ( uint32 bodylength, uint8 rs_enable, const uint8 *bodyBuffer ) { int i = 0; int sleep = 0; //int j = 10000; // if(rs_enable) // { // port_LCD_RS_set(); // } // else // { // if(bodylength == 1) // { // if(bodyBuffer[0] & 0x3) //if this is command = 1 or 2 - exsecution time is > 1ms // sleep = 1 ; // } // port_LCD_RS_clear(); // } // port_SPIy_clear_chip_select(); //CS low // //while(j--); //delay // for(i=0; i