Skip to content

Commit 7853c52

Browse files
authored
Merge pull request #422 from dexter93/sn32_new_chips
Extend full Sonix SN32F2xx family support
2 parents 7777831 + 6e05ff2 commit 7853c52

File tree

139 files changed

+11677
-14857
lines changed

Some content is hidden

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

139 files changed

+11677
-14857
lines changed

os/common/ext/SONiX/SN32F2xx/SN32F200_Def.h

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
11
#ifndef __SN32F200_DEF_H
22
#define __SN32F200_DEF_H
33

4-
/*_____ I N C L U D E S ____________________________________________________*/
5-
6-
/*_____ D E F I N I T I O N S ______________________________________________*/
7-
8-
//Ture or False
9-
// #define TRUE 0x1
10-
// #define FALSE 0x0
11-
12-
//Enable or Disable
13-
#define ENABLE 0x1
14-
#define DISABLE 0x0
15-
16-
//Error Status
17-
#define OK 0x0
18-
#define FAIL 0x1
19-
20-
//Null
21-
// #define NULL 0
22-
23-
//Interrupt Flag Parsing Method
24-
#define POLLING_METHOD 0x0
25-
#define INTERRUPT_METHOD 0x1
26-
274
//;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
285
//SN32F230_PKG
296
#define SN32F239 0
@@ -45,13 +22,29 @@
4522
#define SN32F246B 2
4623
#define SN32F2451B 3
4724

25+
//SN32F240C_PKG
26+
#define SN32F248C 0
27+
#define SN32F247C 1
28+
#define SN32F246C 2
29+
#define SN32F2451C 3
30+
4831
//SN32F260_PKG
4932
#define SN32F268 0
5033
#define SN32F267 1
5134
#define SN32F265 2
5235
#define SN32F2641 3
5336
#define SN32F264 4
5437
#define SN32F263 5
38+
39+
//SN32F280_PKG
40+
#define SN32F289 0
41+
#define SN32F288 1
42+
#define SN32F287 2
43+
44+
//SN32F290_PKG
45+
#define SN32F299 0
46+
#define SN32F298 1
47+
#define SN32F297 2
5548
//;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5649

5750
/*_____ M A C R O S ________________________________________________________*/

os/common/ext/SONiX/SN32F2xx/SN32F240C.h

Lines changed: 3620 additions & 0 deletions
Large diffs are not rendered by default.

os/common/ext/SONiX/SN32F2xx/SN32F2xx.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
application
2121
*/
2222

23-
#if !defined (SN32F240) && !defined (SN32F240B) && !defined (SN32F260) \
24-
&& !defined (SN32F280) && !defined (SN32F290)
23+
#if !defined (SN32F240) && !defined (SN32F240B) && !defined (SN32F240C) \
24+
&& !defined (SN32F260) && !defined (SN32F280) && !defined (SN32F290)
2525
/* #define SN32F230 */ /*!< SN32F239, SN32F238, SN32F237, SN32F236,and SN32F235 Devices */
2626
/* #define SN32F240 */ /*!< SN32F249, SN32F248, SN32F247, SN32F246 and SN32F245 Devices */
2727
/* #define SN32F240B */ /*!< SN32F248B, SN32F247B, SN32F246B and SN32F2451B Devices */
28+
/* #define SN32F240C */ /*!< SN32F248C, SN32F247C, SN32F246C and SN32F2451C Devices */
2829
/* #define SN32F260 */ /*!< SN32F268, SN32F267, SN32F265, SN32F2641,
2930
SN32F264 and SN32F263 Devices */
3031
/* #define SN32F280 */ /*!< SN32F289, SN32F288 and SN32F287 Devices */
@@ -40,6 +41,8 @@
4041
#include "SN32F240.h"
4142
#elif defined(SN32F240B)
4243
#include "SN32F240B.h"
44+
#elif defined(SN32F240C)
45+
#include "SN32F240C.h"
4346
#elif defined(SN32F260)
4447
#include "SN32F260.h"
4548
#elif defined(SN32F280)

0 commit comments

Comments
 (0)