Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
dcf5b1e3
Commit
dcf5b1e3
authored
2 years ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
captouch: added p3 map
parent
5d490af1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/badge23/captouch.c
+4
-2
4 additions, 2 deletions
components/badge23/captouch.c
with
4 additions
and
2 deletions
components/badge23/captouch.c
+
4
−
2
View file @
dcf5b1e3
...
...
@@ -24,8 +24,6 @@ static const uint8_t top_map[] = {0, 0, 0, 2, 2, 2, 6, 6, 6, 4, 4, 4};
static
const
uint8_t
top_stages
=
12
;
static
const
uint8_t
bot_map
[]
=
{
1
,
1
,
3
,
3
,
5
,
7
,
7
,
9
,
9
,
8
,
8
,
8
};
static
const
uint8_t
bot_stages
=
12
;
static
const
uint8_t
top_segment_map
[]
=
{
1
,
3
,
2
,
2
,
3
,
1
,
1
,
3
,
2
,
1
,
3
,
2
};
//PETAL_PAD_*
static
const
uint8_t
bot_segment_map
[]
=
{
3
,
0
,
3
,
0
,
0
,
0
,
3
,
0
,
3
,
1
,
2
,
3
};
//PETAL_PAD_*
static
const
uint8_t
bot_stage_config
[]
=
{
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
};
#define DEFAULT_THRES_TOP 8000
#define DEFAULT_THRES_BOT 12000
...
...
@@ -50,9 +48,13 @@ static const uint8_t bot_stage_config[] = {0,1,2,3,4,5,6,7,8,9,10,11};
#if defined(CONFIG_BADGE23_HW_GEN_P4)
#define AD7147_ADDR_TOP 0b101100
#define AD7147_ADDR_BOT 0b101101
static
const
uint8_t
top_segment_map
[]
=
{
1
,
3
,
2
,
2
,
3
,
1
,
1
,
3
,
2
,
1
,
3
,
2
};
//PETAL_PAD_*
static
const
uint8_t
bot_segment_map
[]
=
{
3
,
0
,
3
,
0
,
0
,
0
,
3
,
0
,
3
,
1
,
2
,
3
};
//PETAL_PAD_*
#elif defined(CONFIG_BADGE23_HW_GEN_P3)
#define AD7147_ADDR_TOP 0b101101
#define AD7147_ADDR_BOT 0b101100
static
const
uint8_t
top_segment_map
[]
=
{
0
,
1
,
2
,
2
,
1
,
0
,
0
,
1
,
2
,
2
,
1
,
0
};
//PETAL_PAD_*
static
const
uint8_t
bot_segment_map
[]
=
{
3
,
0
,
3
,
0
,
0
,
0
,
3
,
0
,
3
,
0
,
2
,
1
};
//PETAL_PAD_*
#endif
static
const
char
*
TAG
=
"captouch"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment