Commit 5b38a539 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

Remove typedef of LED descriptor struct

parent b5fbbf02
......@@ -32,7 +32,7 @@
*/
void BlinkFxn(UArg arg0, UArg arg1)
{
led_descriptor_t *led_desc = (led_descriptor_t *)arg0;
struct led_descriptor *led_desc = (struct led_descriptor *)arg0;
uint32_t wait_ticks = (uint32_t)arg1;
/* GPIO driverlib API uses same bit pattern for GPIO mask and value. */
uint8_t ui8val = (uint8_t)led_desc->led;
......@@ -50,7 +50,7 @@ void BlinkFxn(UArg arg0, UArg arg1)
/*
* Setup task function
*/
int setup_Blink_Task(int prio, xdc_String name, led_descriptor_t *led_desc, uint32_t wait_ticks)
int setup_Blink_Task(int prio, xdc_String name, struct led_descriptor *led_desc, uint32_t wait_ticks)
{
Task_Params taskLedParams;
Task_Handle taskLed;
......
......@@ -33,7 +33,7 @@
int main(void)
{
uint32_t ui32SysClock;
static led_descriptor_t led_desc[2];
static struct led_descriptor led_desc[2];
/* Call board init functions. */
ui32SysClock = Board_initGeneral(120*1000*1000);
(void)ui32SysClock; // We don't really need this (yet)
......
......@@ -15,10 +15,10 @@
#include <xdc/std.h>
typedef struct {
struct led_descriptor {
uint32_t port_base;
uint8_t led;
} led_descriptor_t;
};
/*! \fn BlinkFxn
......@@ -42,6 +42,6 @@ void BlinkFxn(UArg arg0, UArg arg1);
*
* \return always zero. In case of error the system halts.
*/
int setup_Blink_Task(int prio, xdc_String name, led_descriptor_t *led_desc, uint32_t wait_ticks);
int setup_Blink_Task(int prio, xdc_String name, struct led_descriptor *led_desc, uint32_t wait_ticks);
#endif
......@@ -54,8 +54,8 @@ extern "C" {
* To enable or disable them set the respective macro to 1 or 0 respectively. */
/*i2c configuration*/
#define I2CM_7 1
#define I2CM_8 1
#define I2CM_7 0
#define I2CM_8 0
/*spi configguration*/
#define SSIM_2 1
......
Supports Markdown
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