Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: Using SYS/BIOS with the TIVA C LaunchPad

$
0
0

Akhilesh,

I've been able to get your project to compile and work. In your project properties you have, "C:\ti\TivaWare_C_Series-2.0.1.11577\driverlib" in the include path but in your code, you have a #include "driverlib/gpio.h. I had to change it to #include "gpio.h" to get it to compile. I also commented out a bunch of the SysCtl API functions. SYS/BIOS handles most of this functions such as setting the CPU clock. Also, it's not recommended to use SysCtl API functions in a SYS/BIOS project, SYS/BIOS has it's own equivalent functions that you can use.

Another thing is I see your ledToggle function is called from the idle task and calling delay() from an idle task is not recommended. A better way would be to create an ledToggle task and use Task_sleep() to delay. You could also use the SYS/BIOS timer to achieve what you want to achieve.

Moses

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 25965

Latest Images

Trending Articles



Latest Images