Update repo

This commit is contained in:
hangpersonal committed 2026-09-05 09:19:49 -07:00
1 parent ce1a3b44ad
commit 1d67fc7d54
5 files changed
+6 -18

No files matched your search

+3 -17
View File
@@ -1,17 +1,3 @@
//#############################################################################
//
// For running the application open the COM port with the following settings
// using a terminal:
// - Find correct COM port
// - Bits per second = 9600
// - Data Bits = 8
// - Parity = None
// - Stop Bits = 1
// - Hardware Control = None
// The program will print out the test results on COM port
//
//#############################################################################
// Standard includes
#include <stdio.h>
#include <stdlib.h>
@@ -66,7 +52,6 @@ uint8_t ucHeap[configTOTAL_HEAP_SIZE];
#endif
// UART stdout redirection configuration related functions
int uart_count;
void UartSetup(void);
void UartPutChar(uint16_t charToWrite);
@@ -171,7 +156,7 @@ void main(void)
// Create tasks dynamically
if(xTaskCreate(LED_TaskRed,
(const char *) "Red LED Task",
128,
256,
NULL,
tskIDLE_PRIORITY + 2,
NULL) != pdPASS) {
@@ -180,7 +165,7 @@ void main(void)
if(xTaskCreate(LED_TaskBlue,
(const char *) "Blue LED Task",
128,
256,
NULL,
tskIDLE_PRIORITY + 1,
NULL) != pdPASS) {
@@ -200,6 +185,7 @@ void main(void)
// the Red LED task will unblock and toggle the LED exactly every 100 ms.
// It is created with a higher priority of tskIDLE_PRIORITY + 2.
void LED_TaskRed(void * pvParameters) {
int uart_count = 0;
while(1) {
if(xSemaphoreTake(xSemaphore, portMAX_DELAY) == pdTRUE) {
// Toggle red LED