VS1005 Firmware

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
vinayslone
Senior User
Posts: 38
Joined: Tue 2020-11-10 12:34

VS1005 Firmware

Post by vinayslone » Mon 2020-12-07 12:43

hello vlsi team,

I am using VS1005 developer board for my application,
1.) Can you please share something how to use timers and counter in the firmware ?

I am using GPIO's for button press, so i want to give proper delay !

2.) Or the default delay function provided is enough ?

And if in the Kernel solution if add my customized solution like playing a audio file, will it work or it can only be done using sys folder ?

Thankyou !

User avatar
Panu
VLSI Staff
Posts: 2780
Joined: Tue 2010-06-22 13:43

Re: VS1005 Firmware

Post by Panu » Tue 2020-12-08 13:02

vinayslone wrote:
Mon 2020-12-07 12:43
I am using VS1005 developer board for my application,
1.) Can you please share something how to use timers and counter in the firmware ?
I am using GPIO's for button press, so i want to give proper delay !
Easiest is to call ReadTimeCount() from your application. It will give you the amount of milliseconds passed since booting the kernel.
vinayslone wrote:
Mon 2020-12-07 12:43
2.) Or the default delay function provided is enough ?
The Delay() function will stop your thread's execution for the amount of milliseconds you give in the parameter.
vinayslone wrote:
Mon 2020-12-07 12:43
And if in the Kernel solution if add my customized solution like playing a audio file, will it work or it can only be done using sys folder ?
You cannot play audio directly from the kernel. You need to boot the kernel, load necessary audio output drivers and mass storage drivers, then load your application that plays the audio.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply