Skip to content

Commit 0592a1e

Browse files
committed
Dailyish Build - ESP Hosted 0.0.22
1 parent 3dfba4a commit 0592a1e

File tree

78 files changed

+7504
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+7504
-202
lines changed

esp32p4/bin/bootloader_qio_80m.elf

0 Bytes
Binary file not shown.

esp32p4/dependencies.lock

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
dependencies:
2+
chmorgan/esp-libhelix-mp3:
3+
component_hash: cbb76089dc2c5749f7b470e2e70aedc44c9da519e04eb9a67d4c7ec275229e53
4+
dependencies:
5+
- name: idf
6+
require: private
7+
version: '>=4.1.0'
8+
source:
9+
registry_url: https://components.espressif.com/
10+
type: service
11+
version: 1.0.3
212
espressif/eppp_link:
313
component_hash: c2fd9c57ac14a68a62c9d9cdeec39a2b265abc16779196ce2c9f5000c9a4dd8b
414
dependencies:
@@ -10,7 +20,7 @@ dependencies:
1020
require: private
1121
version: '>=5.2'
1222
source:
13-
registry_url: https://components.espressif.com/
23+
registry_url: https://components.espressif.com
1424
type: service
1525
version: 0.2.0
1626
espressif/esp-dsp:
@@ -23,6 +33,16 @@ dependencies:
2333
registry_url: https://components.espressif.com/
2434
type: service
2535
version: 1.5.2
36+
espressif/esp-modbus:
37+
component_hash: 2168e6b4cbda4d0281a2a2d1a40a3848e231473b2690d73217e3600fd2c98c12
38+
dependencies:
39+
- name: idf
40+
require: private
41+
version: '>=4.3'
42+
source:
43+
registry_url: https://components.espressif.com/
44+
type: service
45+
version: 1.0.16
2646
espressif/esp_codec_dev:
2747
component_hash: c6f0436538a956cc3f9c418df50829192dbb7f1f6b3012d23c7a4312d0ea18c7
2848
dependencies:
@@ -34,15 +54,25 @@ dependencies:
3454
type: service
3555
version: 1.3.1
3656
espressif/esp_hosted:
37-
component_hash: 524817a13ee670e2ce84c0ef2cac2b39c85c86afeda8a8cf1641cd24cb167383
57+
component_hash: 73aba88e56b50efe19f9a357a275bc62516d4ae2c44ddd456b34a4027c31bbd9
3858
dependencies:
3959
- name: idf
4060
require: private
4161
version: '>=5.3'
4262
source:
4363
registry_url: https://components.espressif.com/
4464
type: service
45-
version: 0.0.6
65+
version: 0.0.22
66+
espressif/esp_modem:
67+
component_hash: e48da33fee082dd9d9a97a354a228057e07a14ac108766b40ad84e018205410a
68+
dependencies:
69+
- name: idf
70+
require: private
71+
version: '>=4.1'
72+
source:
73+
registry_url: https://components.espressif.com/
74+
type: service
75+
version: 1.1.0
4676
espressif/esp_serial_slave_link:
4777
component_hash: 8c534b7d4986ca0e4c41db71f559492b795ab862f1d15359d7993034696b7bcc
4878
dependencies:
@@ -54,23 +84,25 @@ dependencies:
5484
type: service
5585
version: 1.1.0
5686
espressif/esp_wifi_remote:
57-
component_hash: dd44abf72eab81106bb33f95728cd8cfd2fa0647dcaec0c99ecbb47f929d8a2e
87+
component_hash: 8ba87759d57ad61882c5db0d2e4055c8e28711ceac535c45dc166dcb0a6d397d
5888
dependencies:
5989
- name: espressif/eppp_link
60-
registry_url: https://components.espressif.com/
90+
registry_url: https://components.espressif.com
6191
require: private
6292
version: '>=0.1'
6393
- name: espressif/esp_hosted
64-
registry_url: https://components.espressif.com/
94+
registry_url: https://components.espressif.com
6595
require: private
96+
rules:
97+
- if: target in [esp32h2, esp32p4]
6698
version: '>=0.0.6'
6799
- name: idf
68100
require: private
69101
version: '>=5.3'
70102
source:
71103
registry_url: https://components.espressif.com/
72104
type: service
73-
version: 0.3.0
105+
version: 0.4.1
74106
espressif/libsodium:
75107
component_hash: f6e982479a2389cb6868e8fb761cf23aba6c355a8090b3e906299807775f58a3
76108
dependencies:
@@ -116,15 +148,18 @@ dependencies:
116148
type: service
117149
version: 1.14.8
118150
direct_dependencies:
151+
- chmorgan/esp-libhelix-mp3
119152
- espressif/esp-dsp
153+
- espressif/esp-modbus
120154
- espressif/esp_codec_dev
121155
- espressif/esp_hosted
156+
- espressif/esp_modem
122157
- espressif/esp_wifi_remote
123158
- espressif/libsodium
124159
- espressif/mdns
125160
- espressif/network_provisioning
126161
- idf
127162
- joltwallet/littlefs
128-
manifest_hash: 14a2ea72dbf35f862eddc717fc1519d5931d98fd6502219ac7ba9b256993ee30
163+
manifest_hash: 2a196587f893993af1b25180531c0a139949b6d29ffa54e9437dbcb97ce613d5
129164
target: esp32p4
130165
version: 2.0.0

esp32p4/flags/includes

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

esp32p4/flags/ld_libs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/* ***** BEGIN LICENSE BLOCK *****
2+
* Version: RCSL 1.0/RPSL 1.0
3+
*
4+
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
5+
*
6+
* The contents of this file, and the files included with this file, are
7+
* subject to the current version of the RealNetworks Public Source License
8+
* Version 1.0 (the "RPSL") available at
9+
* http://www.helixcommunity.org/content/rpsl unless you have licensed
10+
* the file under the RealNetworks Community Source License Version 1.0
11+
* (the "RCSL") available at http://www.helixcommunity.org/content/rcsl,
12+
* in which case the RCSL will apply. You may also obtain the license terms
13+
* directly from RealNetworks. You may not use this file except in
14+
* compliance with the RPSL or, if you have a valid RCSL with RealNetworks
15+
* applicable to this file, the RCSL. Please see the applicable RPSL or
16+
* RCSL for the rights, obligations and limitations governing use of the
17+
* contents of the file.
18+
*
19+
* This file is part of the Helix DNA Technology. RealNetworks is the
20+
* developer of the Original Code and owns the copyrights in the portions
21+
* it created.
22+
*
23+
* This file, and the files included with this file, is distributed and made
24+
* available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
25+
* EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES,
26+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
27+
* FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
28+
*
29+
* Technology Compatibility Kit Test Suite(s) Location:
30+
* http://www.helixcommunity.org/content/tck
31+
*
32+
* Contributor(s):
33+
*
34+
* ***** END LICENSE BLOCK ***** */
35+
36+
/**************************************************************************************
37+
* Fixed-point MP3 decoder
38+
* Jon Recker ([email protected]), Ken Cooke ([email protected])
39+
* June 2003
40+
*
41+
* mp3common.h - implementation-independent API's, datatypes, and definitions
42+
**************************************************************************************/
43+
44+
#ifndef _MP3COMMON_H
45+
#define _MP3COMMON_H
46+
47+
#include "mp3dec.h"
48+
#include "statname.h" /* do name-mangling for static linking */
49+
50+
#define MAX_SCFBD 4 /* max scalefactor bands per channel */
51+
#define NGRANS_MPEG1 2
52+
#define NGRANS_MPEG2 1
53+
54+
/* 11-bit syncword if MPEG 2.5 extensions are enabled */
55+
/*
56+
#define SYNCWORDH 0xff
57+
#define SYNCWORDL 0xe0
58+
*/
59+
60+
/* 12-bit syncword if MPEG 1,2 only are supported */
61+
#define SYNCWORDH 0xff
62+
#define SYNCWORDL 0xf0
63+
64+
typedef struct _MP3DecInfo {
65+
/* pointers to platform-specific data structures */
66+
void *FrameHeaderPS;
67+
void *SideInfoPS;
68+
void *ScaleFactorInfoPS;
69+
void *HuffmanInfoPS;
70+
void *DequantInfoPS;
71+
void *IMDCTInfoPS;
72+
void *SubbandInfoPS;
73+
74+
/* buffer which must be large enough to hold largest possible main_data section */
75+
unsigned char mainBuf[MAINBUF_SIZE];
76+
77+
/* special info for "free" bitrate files */
78+
int freeBitrateFlag;
79+
int freeBitrateSlots;
80+
81+
/* user-accessible info */
82+
int bitrate;
83+
int nChans;
84+
int samprate;
85+
int nGrans; /* granules per frame */
86+
int nGranSamps; /* samples per granule */
87+
int nSlots;
88+
int layer;
89+
MPEGVersion version;
90+
91+
int mainDataBegin;
92+
int mainDataBytes;
93+
94+
int part23Length[MAX_NGRAN][MAX_NCHAN];
95+
96+
} MP3DecInfo;
97+
98+
typedef struct _SFBandTable {
99+
short l[23];
100+
short s[14];
101+
} SFBandTable;
102+
103+
/* decoder functions which must be implemented for each platform */
104+
MP3DecInfo *AllocateBuffers(void);
105+
void FreeBuffers(MP3DecInfo *mp3DecInfo);
106+
int CheckPadBit(MP3DecInfo *mp3DecInfo);
107+
int UnpackFrameHeader(MP3DecInfo *mp3DecInfo, unsigned char *buf);
108+
int UnpackSideInfo(MP3DecInfo *mp3DecInfo, unsigned char *buf);
109+
int DecodeHuffman(MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int huffBlockBits, int gr, int ch);
110+
int Dequantize(MP3DecInfo *mp3DecInfo, int gr);
111+
int IMDCT(MP3DecInfo *mp3DecInfo, int gr, int ch);
112+
int UnpackScaleFactors(MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int bitsAvail, int gr, int ch);
113+
int Subband(MP3DecInfo *mp3DecInfo, short *pcmBuf);
114+
115+
/* mp3tabs.c - global ROM tables */
116+
extern const int samplerateTab[3][3];
117+
extern const short bitrateTab[3][3][15];
118+
extern const short samplesPerFrameTab[3][3];
119+
extern const short bitsPerSlotTab[3];
120+
extern const short sideBytesTab[3][2];
121+
extern const short slotTab[3][3][15];
122+
extern const SFBandTable sfBandTable[3][3];
123+
124+
#endif /* _MP3COMMON_H */
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
/* ***** BEGIN LICENSE BLOCK *****
2+
* Version: RCSL 1.0/RPSL 1.0
3+
*
4+
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
5+
*
6+
* The contents of this file, and the files included with this file, are
7+
* subject to the current version of the RealNetworks Public Source License
8+
* Version 1.0 (the "RPSL") available at
9+
* http://www.helixcommunity.org/content/rpsl unless you have licensed
10+
* the file under the RealNetworks Community Source License Version 1.0
11+
* (the "RCSL") available at http://www.helixcommunity.org/content/rcsl,
12+
* in which case the RCSL will apply. You may also obtain the license terms
13+
* directly from RealNetworks. You may not use this file except in
14+
* compliance with the RPSL or, if you have a valid RCSL with RealNetworks
15+
* applicable to this file, the RCSL. Please see the applicable RPSL or
16+
* RCSL for the rights, obligations and limitations governing use of the
17+
* contents of the file.
18+
*
19+
* This file is part of the Helix DNA Technology. RealNetworks is the
20+
* developer of the Original Code and owns the copyrights in the portions
21+
* it created.
22+
*
23+
* This file, and the files included with this file, is distributed and made
24+
* available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
25+
* EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES,
26+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
27+
* FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
28+
*
29+
* Technology Compatibility Kit Test Suite(s) Location:
30+
* http://www.helixcommunity.org/content/tck
31+
*
32+
* Contributor(s):
33+
*
34+
* ***** END LICENSE BLOCK ***** */
35+
36+
/**************************************************************************************
37+
* Fixed-point MP3 decoder
38+
* Jon Recker ([email protected]), Ken Cooke ([email protected])
39+
* June 2003
40+
*
41+
* mp3dec.h - public C API for MP3 decoder
42+
**************************************************************************************/
43+
44+
#ifndef _MP3DEC_H
45+
#define _MP3DEC_H
46+
47+
#if defined(_WIN32) && !defined(_WIN32_WCE)
48+
#
49+
#elif defined(_WIN32) && defined(_WIN32_WCE) && defined(ARM)
50+
#
51+
#elif defined(_WIN32) && defined(WINCE_EMULATOR)
52+
#
53+
#elif defined(ARM_ADS)
54+
#
55+
#elif defined(_SYMBIAN) && defined(__WINS__) /* Symbian emulator for Ix86 */
56+
#
57+
#elif defined(__GNUC__) && defined(ARM)
58+
#
59+
#elif defined(__GNUC__) && defined(__i386__)
60+
#
61+
#elif defined(_OPENWAVE_SIMULATOR) || defined(_OPENWAVE_ARMULATOR)
62+
#
63+
#else
64+
//#error No platform defined. See valid options in mp3dec.h
65+
#endif
66+
67+
#ifdef __cplusplus
68+
extern "C" {
69+
#endif
70+
71+
/* determining MAINBUF_SIZE:
72+
* max mainDataBegin = (2^9 - 1) bytes (since 9-bit offset) = 511
73+
* max nSlots (concatenated with mainDataBegin bytes from before) = 1440 - 9 - 4 + 1 = 1428
74+
* 511 + 1428 = 1939, round up to 1940 (4-byte align)
75+
*/
76+
#define MAINBUF_SIZE 1940
77+
78+
#define MAX_NGRAN 2 /* max granules */
79+
#define MAX_NCHAN 2 /* max channels */
80+
#define MAX_NSAMP 576 /* max samples per channel, per granule */
81+
82+
/* map to 0,1,2 to make table indexing easier */
83+
typedef enum {
84+
MPEG1 = 0,
85+
MPEG2 = 1,
86+
MPEG25 = 2
87+
} MPEGVersion;
88+
89+
typedef void *HMP3Decoder;
90+
91+
enum {
92+
ERR_MP3_NONE = 0,
93+
ERR_MP3_INDATA_UNDERFLOW = -1,
94+
ERR_MP3_MAINDATA_UNDERFLOW = -2,
95+
ERR_MP3_FREE_BITRATE_SYNC = -3,
96+
ERR_MP3_OUT_OF_MEMORY = -4,
97+
ERR_MP3_NULL_POINTER = -5,
98+
ERR_MP3_INVALID_FRAMEHEADER = -6,
99+
ERR_MP3_INVALID_SIDEINFO = -7,
100+
ERR_MP3_INVALID_SCALEFACT = -8,
101+
ERR_MP3_INVALID_HUFFCODES = -9,
102+
ERR_MP3_INVALID_DEQUANTIZE = -10,
103+
ERR_MP3_INVALID_IMDCT = -11,
104+
ERR_MP3_INVALID_SUBBAND = -12,
105+
106+
ERR_UNKNOWN = -9999
107+
};
108+
109+
typedef struct _MP3FrameInfo {
110+
int bitrate;
111+
int nChans;
112+
int samprate;
113+
int bitsPerSample;
114+
int outputSamps;
115+
int layer;
116+
int version;
117+
} MP3FrameInfo;
118+
119+
/* public API */
120+
HMP3Decoder MP3InitDecoder(void);
121+
void MP3FreeDecoder(HMP3Decoder hMP3Decoder);
122+
int MP3Decode(HMP3Decoder hMP3Decoder, unsigned char **inbuf, int *bytesLeft, short *outbuf, int useSize);
123+
124+
void MP3GetLastFrameInfo(HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo);
125+
int MP3GetNextFrameInfo(HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo, unsigned char *buf);
126+
int MP3FindSyncWord(unsigned char *buf, int nBytes);
127+
128+
#ifdef __cplusplus
129+
}
130+
#endif
131+
132+
#endif /* _MP3DEC_H */

0 commit comments

Comments
 (0)