Search found 362 matches

by Hannu
Wed 2022-05-04 12:51
Forum: VS1010 Forum
Topic: Is RTOS available?
Replies: 16
Views: 291

Re: Is RTOS available?

Yes. init(char *params), main(char *params) and fini() are special. I once got bad linking experience (Debug a day why program works totally stupid way) in some corner case and after that I've remembered: Don't write any function which starts "in" "fi" or "ma" "In&...
by Hannu
Mon 2022-05-02 9:16
Forum: VS1010 Forum
Topic: Is RTOS available?
Replies: 16
Views: 291

Re: Is RTOS available?

The documentation is in datasheet. Interesting chapters are Interrupt controller and interruptable general purpose IO ports 0-2. If you look at vs1010c.h you can see INTF_GPIO2 and INTF1_PWM for example. interrupt flags with 1 belong to INT_ORIGIN1. The both registers work same way. Inside hardware ...
by Hannu
Thu 2022-04-28 15:50
Forum: VS1010 Forum
Topic: mini demo board
Replies: 12
Views: 1006

Re: mini demo board

In theory and even in practice it is possible. Just a small detour. Here is some kind of idea of config.txt. [?] detector [A] echo hello umshs D: echo 17 [C] echo 19 And the essence of the detector. if (battery) { shellcmd("reboot", "19"); } if (usb) { shellcmd("reboot"...
by Hannu
Thu 2022-04-28 9:44
Forum: VS1010 Forum
Topic: High Volume Shutdown Issue
Replies: 2
Views: 77

Re: High Volume Shutdown Issue

Hi, You should have the blue circle circuit also on left,right and cbuf as shown in here: http://www.vsdsp-forum.com/phpbb/viewtopic.php?f=9&t=69 I would also connect shutdown pins to GPIO0_0 (PWM/DECLICK). That way starting the playback also would enable the amplifier. But this depends totally ...
by Hannu
Tue 2022-04-26 9:57
Forum: VS1010 Forum
Topic: Is RTOS available?
Replies: 16
Views: 291

Re: Is RTOS available?

I think I have an idea. My previous message had almost answer for it. So I'll write more totally untested code. Common header: struct context { void (*fnct) (void *); }; Your worker library: struct context *pCtx = NULL; void MyFunc(void *) { printf("Hello!\n"); } /* If NULL is given, this ...
by Hannu
Mon 2022-04-25 11:01
Forum: VS1010 Forum
Topic: Is RTOS available?
Replies: 16
Views: 291

Re: Is RTOS available?

In what case you want you your funtion to be executed? There can be already something useful. Problem with user hooks are that there are so few of them. I have this code for user hook: // State machine In own DLX s_int16 RunStateMachine(s_int16 mediaState) { ... } void init(char *params) { ... SetJm...
by Hannu
Mon 2022-04-25 8:29
Forum: VS1010 Forum
Topic: Is RTOS available?
Replies: 16
Views: 291

Re: Is RTOS available?

With the limited resources of the VS1010, there is no RTOS available. So everything is traditional single threaded.
by Hannu
Fri 2022-04-22 8:35
Forum: VS1005 and VSOS Software
Topic: AUXI2SM.DL3, AUII2SM.DL3 Don't support 32 bit?
Replies: 5
Views: 147

Re: AUXI2SM.DL3, AUII2SM.DL3 Don't support 32 bit?

That is also correct. auoutput doesn't control input drivers by definition.

Auxi2sm has both directions so it is enough to set one of them. I2S is after all symmetric between input and output. auii2sm doesn't have output so you have to control the input side.
by Hannu
Thu 2022-04-21 15:36
Forum: VS1005 and VSOS Software
Topic: AUXI2SM.DL3, AUII2SM.DL3 Don't support 32 bit?
Replies: 5
Views: 147

Re: AUXI2SM.DL3, AUII2SM.DL3 Don't support 32 bit?

Code: Select all

driver +AUXI2SM s
auoutput -r48000 -b32
auinput -v
auoutput -v
by Hannu
Wed 2022-04-20 9:32
Forum: VS1005 and VSOS Software
Topic: AUXI2SM.DL3, AUII2SM.DL3 Don't support 32 bit?
Replies: 5
Views: 147

Re: AUXI2SM.DL3, AUII2SM.DL3 Don't support 32 bit?

Last time I used them, they work just fine in 32-bit mode.

Could you be more specific how they don't support 32-bit? And only 48 and 96 kHz are supported on sampling rate side.