Search found 52 matches

by Lele
Wed Dec 13, 2017 7:10 pm
Forum: Getting started
Topic: Multichannel USB Audio Class 2.0 linux Driver
Replies: 1
Views: 4038

Multichannel USB Audio Class 2.0 linux Driver

Hello, I should start developing a multichannel audio to usb board and I think that the "xCORE-200 Multichannel Audio Platform" (XK-AUDIO-216-MC-AB; https://www.xmos.com/support/boards?product=18334 ) is the reference for my project. I am worried about driver availability for linux (e.g. d...
by Lele
Sat Jun 04, 2016 9:07 pm
Forum: Development Tools and Programming
Topic: "extern" keyword for multiple return value function
Replies: 2
Views: 4531

"extern" keyword for multiple return value function

I use to put "extern" keyword for function protoype in header files. Not a big issue but it seems not to be accepted for xc functions returning multiple values. example .xc file: int SimpleFunction(void) { return 1; } { int, int, int} MultipleReturnValueFunction(void) { return { 1, 2, 3 };...
by Lele
Thu Mar 05, 2015 12:35 pm
Forum: Projects
Topic: Modbus RTU client
Replies: 2
Views: 3737

Re: Modbus RTU client

Tested with Modscan and Radzio.
Please downolad latest version because I fixed a bug in the uart timing.
 
by Lele
Sun Mar 01, 2015 9:37 am
Forum: Projects
Topic: Modbus RTU client
Replies: 2
Views: 3737

Modbus RTU client

<t>Version: 2<br/> Status: Complete<br/> License: BSD<br/> Download: /files/project_builds/app_ModbusRtuClient.zip<br/> <br/> Here it is an implementation of modbus rtu slave protocol.<br/> All basic functions implemented:<br/> 1) read coils; 2) read input; 3) read holding register; 4) read input re...
by Lele
Wed Apr 02, 2014 6:31 am
Forum: Latest news
Topic: WINNER ANNOUNCED : Win a New xCORE Analog SliceKIT!
Replies: 143
Views: 212103

Re: COMPETITION TIME : Win a New xCORE Analog SliceKIT!

Maximum power point tracking for photovoltaic panel orientation and inverter
by Lele
Sun Feb 09, 2014 12:11 pm
Forum: Development Tools and Programming
Topic: Efficient YUV422 to RGB565 on L16
Replies: 2
Views: 4693

Re: Efficient YUV422 to RGB565 on L16

Don't know if -O3 optimization is smart enough to recognize that you are evaluating 298 * C(Y) three times and D(U), E(V) twice. May be using a variable for those partial result saves some clock...
by Lele
Wed Feb 05, 2014 2:10 pm
Forum: Projects
Topic: NeoPixel LEDs on startKIT
Replies: 8
Views: 13052

Re: NeoPixel LEDs on startKIT

Hi i'm a fan of those RGB leds with embedded rgb dimmer (WS2812). A logarithmic look up table is necessary to have a correct brightness sensation. That is the test code I used. It makes a nice wave effect. #include <platform.h> #include <xs1.h> #include <stdio.h> #include <print.h> #include <math.h>...
by Lele
Sun Nov 03, 2013 10:09 am
Forum: Introductions!
Topic: Hi from Rome!
Replies: 2
Views: 4316

Re: Hi from Rome!

Ciao Simone,
I'm big fan of Xmos from Perugia.
Welcome.
Raffaele
by Lele
Tue Oct 22, 2013 6:56 am
Forum: Off Topic
Topic: Coroutines: a "must know" for programmers (according to me)
Replies: 4
Views: 33092

Re: Coroutines: a "must know" for programmers (according to

Segher is right: the first set of macro is not for reentrant/recursive functions.
But there is also a set which stores local variables
by Lele
Sun Oct 20, 2013 7:59 am
Forum: Off Topic
Topic: Coroutines: a "must know" for programmers (according to me)
Replies: 4
Views: 33092

Coroutines: a "must know" for programmers (according to me)

Some years ago I found a document by Simon Tatham with a coroutine.h source conaining a set C macros to make cooperative routines. http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html I became a fan of those macros that let you make a sort of multi tasking. No need to waste precious real time...