mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 18:31:13 +03:00
wt5001: Initial implementation
The module implements support for the WT5001 serial mp3 player. It was tested on the Grove Serial MP3 Player. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com>
This commit is contained in:

committed by
John Van Drasek

parent
40e0595892
commit
df390358f2
25
src/wt5001/jsupm_wt5001.i
Normal file
25
src/wt5001/jsupm_wt5001.i
Normal file
@ -0,0 +1,25 @@
|
||||
%module jsupm_wt5001
|
||||
%include "../upm.i"
|
||||
%include "../carrays_uint8_t.i"
|
||||
%include "../carrays_uint16_t.i"
|
||||
|
||||
%typemap(in) uint8_t * {
|
||||
void *argp = 0 ;
|
||||
int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint8Array, 0 | 0 );
|
||||
$1 = (uint8_t *)(argp);
|
||||
}
|
||||
|
||||
%typemap(in) uint16_t * {
|
||||
void *argp = 0 ;
|
||||
int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 | 0 );
|
||||
$1 = (uint16_t *)(argp);
|
||||
}
|
||||
|
||||
|
||||
%{
|
||||
#include "wt5001.h"
|
||||
speed_t int_B9600 = B9600;
|
||||
%}
|
||||
|
||||
%include "wt5001.h"
|
||||
speed_t int_B9600 = B9600;
|
Reference in New Issue
Block a user