FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2007 Threads] Trying to create a simple serial driverPosted by jhuber on November 12, 2007 I have been trying to create a simple serial driver for the ARM9_STR912. It is supposed to take a single char from serial input and send it back. I can not seem to get it to work, can anybody tell me what I am doing wrong? the code is below.
xTaskCreate( prvRunSerial, "SER", configMINIMAL_STACK_SIZE, NULL, mainMSG_TASK_PRIORITY, NULL );
static void prvRunSerial(void) { xComPortHandle portHandle; signed portCHAR inputChar; portCHAR testString[1];
portHandle = xSerialPortInitMinimal(9600, 1200); for( ;; ){ if(xSerialGetChar(portHandle, &inputChar, 300)){ testString[0] = inputChar; vSerialPutString(portHandle, &testString, 1); } vTaskDelay( mainLCD_DELAY ); } }
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|