1
µTasker general / Re: How to use the UART to get data and send data!
« on: September 04, 2010, 03:05:51 AM »
Thanks. I initially read the defin as LPC21xxx, but its for not LCP21xx. Thanks!
-Kevin
-Kevin
Nov 2020: uTasker i.MX RT V1.4.12 is productive - with complete secure loading concept.
Follow uTasker updates at www.twitter.com/uTasker !!
Online Forum registration has now been disabled. Please send an email to an address at the bottom of the home page with your preferred user name and email address if you would like an account.
Return to uTasker main site: www.utasker.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
BMP_Length = (ptrBMP_info->biSizeImage[3] << 24); // bit map content length
BMP_Length |= (ptrBMP_info->biSizeImage[2] << 16);
BMP_Length |= (ptrBMP_info->biSizeImage[1] << 8);
BMP_Length |= (ptrBMP_info->biSizeImage[0]);
if (BMP_Length == 0) {
BMP_Length = (ptrBMP->bmLength[3] << 24); // if the content length is zero, take it from the header
BMP_Length |= (ptrBMP->bmLength[2] << 16);
BMP_Length |= (ptrBMP->bmLength[1] << 8);
BMP_Length |= (ptrBMP->bmLength[0]);
BMP_Length -= ptrBMP->bmOffBits[0];
}
BMP_Length = (BMP_Length/3) * 3; //{kevin 1} bmp file must be multiple of color bytes (3 bytes = 24bit)
#define PIXEL_CLOCK_RATE 9000000 //9Mhz
#define HORIZONTAL_BACK_PORCH 2 //2 clocks
#define HORIZONTAL_FRONT_PORCH 2 //2 clocks
#define HORIZONTAL_PULSE 41 //41 clocks
#define VERTICAL_BACK_PORCH 2 //2 lines
#define VERTICAL_FRONT_PORCH 2 //2 lines
#define VERTICAL_PULSE 10 //10 lines
#elif defined OLIMEX_LPC2478_STK
#define PIXEL_CLOCK_RATE 6400000
#define HORIZONTAL_BACK_PORCH 38
#define HORIZONTAL_FRONT_PORCH 20
#define HORIZONTAL_PULSE 30
#define VERTICAL_BACK_PORCH 15
#define VERTICAL_FRONT_PORCH 5
#define VERTICAL_PULSE 3
#endif
#define SUPPORT_TFT
#define LCD_PARTNER_TASK TASK_APPLICATION
#define GLCD_X 480 // horizontal resolution of the LCD display in pixels
#define GLCD_Y 272 // vertical resolution of the LCD display in pixels
#define LCD_PIXEL_COLOUR (COLORREF)RGB(255,255,255)
#define GLCD_COLOR // color GLCD being used
#define LCD_ON_COLOUR (COLORREF)RGB(0,0,0) // RGB colour of LCD when backlight is on
#define LCD_OFF_COLOUR (COLORREF)RGB(0,0,0) // RGB colour of LCD when backlight is off
#elif defined OLIMEX_LPC2478_STK
#define SUPPORT_TFT
#define LCD_PARTNER_TASK TASK_APPLICATION
#define GLCD_X 320 // horizontal resolution of the LCD display in pixels
#define GLCD_Y 240 // vertical resolution of the LCD display in pixels
#define LCD_PIXEL_COLOUR (COLORREF)RGB(255,255,255)
#define GLCD_COLOR // color GLCD being used
#define LCD_ON_COLOUR (COLORREF)RGB(0,0,0) // RGB colour of LCD when backlight is on
#define LCD_OFF_COLOUR (COLORREF)RGB(0,0,0) // RGB colour of LCD when backlight is off
#endif
ftp> dir
200 OK.
150 Data.
drwxr-xr-x 1 502 502 0 Jan 03 2010 dir1
drwxr-xr-x 1 502 502 0 Jul 10 2010 images
226 OK.
ftp: 84 bytes received in 0.14Seconds 0.60Kbytes/sec.
ftp> binary
200 OK.
ftp> put B4096.txt
200 OK.
150 Data.
226 OK.
ftp: 4096 bytes sent in 0.00Seconds 4096000.00Kbytes/sec.
ftp> put B8890.txt
200 OK.
150 Data.
226 OK.
ftp: 8890 bytes sent in 0.00Seconds 8890000.00Kbytes/sec.
ftp> put f430.bmp
200 OK.
150 Data.
> Netout :Connection reset by peer
Connection closed by remote host.
ftp>
ftp> dir
200 OK.
150 Data.
drwxr-xr-x 1 502 502 0 Jan 03 2010 dir1
-rw-r--r-- 1 502 502 4096 Jan 03 2010 B4096.txt
-rw-r--r-- 1 502 502 8890 Jan 03 2010 B8890.txt
drwxr-xr-x 1 502 502 0 Jul 10 2010 images
-rw-r--r-- 1 502 502 64240 Jan 03 2010 f430.bmp
226 OK.
ftp: 231 bytes received in 0.22Seconds 1.05Kbytes/sec.
ftp>