Commit 06e2e18c authored by Matthias Wenzl's avatar Matthias Wenzl
Browse files

minor adaptions - comments/parameter/variable cleanup

parent ce0b80f8
/* /*
* ======== Blink_Task.c ======== * ======== Blink_Task.c ========
* Author: Michael Kramer / Matthias Wenzl
*/ */
#include <stdbool.h> #include <stdbool.h>
#include <inc/hw_memmap.h> #include <inc/hw_memmap.h>
...@@ -57,7 +58,6 @@ int setup_Blink_Task(led_descriptor_t *led_desc, uint32_t wait_ticks) ...@@ -57,7 +58,6 @@ int setup_Blink_Task(led_descriptor_t *led_desc, uint32_t wait_ticks)
{ {
Task_Params taskLedParams; Task_Params taskLedParams;
Task_Handle taskLed; Task_Handle taskLed;
uint32_t ui32Strength, ui32PinType;
Error_Block eb; Error_Block eb;
/*configure gpio port_base according to led*/ /*configure gpio port_base according to led*/
......
/* /*
* CCSv6 project using TI-RTOS and a custom network driver * CCSv6 project using TI-RTOS
* providing an ndk-less base environment
* *
*/ */
...@@ -26,8 +25,6 @@ ...@@ -26,8 +25,6 @@
/* TI-RTOS Header files */ /* TI-RTOS Header files */
#include <ti/drivers/UART.h> #include <ti/drivers/UART.h>
/* Drivers Header files*/
//#include <ti/drivers/GPIO.h>
/*Board Header files */ /*Board Header files */
#include <Board.h> #include <Board.h>
...@@ -51,13 +48,6 @@ int main(void) ...@@ -51,13 +48,6 @@ int main(void)
/* Call board init functions. */ /* Call board init functions. */
ui32SysClock = Board_initGeneral(120*1000*1000); ui32SysClock = Board_initGeneral(120*1000*1000);
//
// Initialize the UART for console I/O.
//
// UARTStdioConfig(0, 115200, ui32SysClock);
led_desc[0].port_base = GPIO_PORTN_BASE; led_desc[0].port_base = GPIO_PORTN_BASE;
led_desc[0].led = GPIO_PIN_1; led_desc[0].led = GPIO_PIN_1;
/*Initialize+start Blink Task*/ /*Initialize+start Blink Task*/
...@@ -71,7 +61,7 @@ int main(void) ...@@ -71,7 +61,7 @@ int main(void)
System_printf("Created Blink Task2\n"); System_printf("Created Blink Task2\n");
/*Initialize+start UART Task*/ /*Initialize+start UART Task*/
(void) setup_UART_Task(0,0); (void) setup_UART_Task();
System_printf("Created UART Task\n"); System_printf("Created UART Task\n");
/* SysMin will only print to the console upon calling flush or exit */ /* SysMin will only print to the console upon calling flush or exit */
......
...@@ -78,11 +78,10 @@ void UARTFxn(UArg arg0, UArg arg1) ...@@ -78,11 +78,10 @@ void UARTFxn(UArg arg0, UArg arg1)
/* /*
* setup task function * setup task function
*/ */
int setup_UART_Task(led_descriptor_t *led_desc, uint32_t wait_ticks) int setup_UART_Task(void)
{ {
Task_Params taskUARTParams; Task_Params taskUARTParams;
Task_Handle taskUART; Task_Handle taskUART;
uint32_t ui32Strength, ui32PinType;
Error_Block eb; Error_Block eb;
......
...@@ -40,7 +40,7 @@ void UARTFxn(UArg arg0, UArg arg1); ...@@ -40,7 +40,7 @@ void UARTFxn(UArg arg0, UArg arg1);
* *
* \return always zero. In case of error the system halts. * \return always zero. In case of error the system halts.
*/ */
int setup_UART_Task(); int setup_UART_Task(void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment