Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lpotato ptdevice alpotato #33

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
2cac694
feat(behaviors): Allow mod-morph to swallow mods
vrinek Feb 3, 2022
04b6c96
initial untested implementation of the pmw3389 driver
Luberry Mar 8, 2022
f6af5a5
add kconfig and initial dts binding files
Luberry Mar 13, 2022
f398f02
switch to multi device pmw33xx driver
Luberry Apr 16, 2022
ab7673f
warning cleanup, and ability to set cpi via the device tree
Luberry Apr 17, 2022
218c5b0
fix interrupt handling
Luberry Apr 17, 2022
fd73042
update license headers
Luberry Apr 17, 2022
bdc8b9b
add: Cirque Pinnacle trackpad driver
crides Jan 23, 2022
14eb5ff
fix pid for pmw3360
Luberry Apr 21, 2022
3e0780b
remove accidental clear of rest enable
Luberry Apr 21, 2022
c03ef6b
feat(drivers): add driver for MAX17048 fuel gauge
zhiayang May 14, 2022
2921a17
changes from krikun98/mouse-pr rebased on zmkfirmware/main
ftc May 18, 2022
62b6b43
ifdefs for link errors when compiling non-central, some includes, oth…
ftc May 19, 2022
b9951ee
fix hid deprication warnings with crides 6ca7298730859ef2ebab1c970cac…
ftc May 19, 2022
f18d490
move ifdefs to get rid of wunused warning
ftc May 19, 2022
a42b909
better ifdef to handle non split kb
ftc May 19, 2022
19e4948
update mouse code from old macro CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL to…
ftc Jun 7, 2022
5bae0dd
feat(display): Add optional full refresh timer.
petejohanson Oct 5, 2021
2e0050f
fix dts binding include
crides Jun 13, 2022
bef8f16
backup
ufan Jun 22, 2022
0f10977
change il0323 scanning direction to rotate the screen 180 degree
ufan Jun 22, 2022
6e776c2
Merge branch 'display/optional-full-refresh-timer' into mychanges-main
ufan Jun 23, 2022
09ac7ef
add short comment about epd reverse scanning
ufan Jun 23, 2022
bedd068
do not update layer widget, for momentory layer
ufan Jun 23, 2022
521b990
add an kconfig option to control whether showing the layer change for mo
ufan Jun 23, 2022
e96f516
Merge remote-tracking branch 'origin/main' into masked-mod-morphs-unt…
vrinek Jun 27, 2022
89dac4c
Add some whitespace for clarity
vrinek Jun 28, 2022
f9bed08
refactor(core): read sensor values earlier
stephen Mar 15, 2021
d8a8b56
refactor(split): take params in subscribe
infused-kim Mar 15, 2022
f01c148
feature(split): add support for sensors from peripheral
infused-kim Apr 3, 2022
7a1fc03
rebase split-encoder upon main branch, and resolve conflicts
ufan Jun 30, 2022
5ee7703
Merge branch 'split-encoder' into mychanges-test
ufan Jun 30, 2022
58a5ba2
Merge branch 'masked-mod-morphs' into mychanges-main
ufan Jul 1, 2022
ee10458
add nrfmacro board and sweepro-ce shield
ufan Jul 11, 2022
1634f5f
set default transmit power to maximum
ufan Jul 11, 2022
29e60e8
cleanup logo icons
ufan Jul 12, 2022
361054f
[Add] support for custom logo icon to display on the slave split
ufan Jul 12, 2022
5635300
bugfix
ufan Jul 12, 2022
b84bebf
add modified version of stdlogo
ufan Jul 12, 2022
4106b77
bugfix in keymap
ufan Jul 12, 2022
55db750
add epd rotation config option
ufan Jul 16, 2022
bf03cb9
backup
ufan Jul 17, 2022
bdb5cc1
add corne-pro shield and its markline logo
ufan Jul 17, 2022
ba0d242
backup
ufan Jul 18, 2022
092ff8c
add config option for screen margin adjustment
ufan Jul 21, 2022
e05cb20
change the starting pixel of logo widget to 0
ufan Jul 21, 2022
0ab42ab
update corne-pro mark logo
ufan Jul 21, 2022
e3fd070
[new shield] sweep-pro
ufan Jul 21, 2022
2bd7c11
[bugfix] corne-pro and add sweep-pro expansion keys
ufan Jul 24, 2022
59aad2d
Merge remote-tracking branch 'ftc/mouse-ftc' into support-test-mouse
ufan Jul 26, 2022
ba26edd
Merge remote-tracking branch 'luberyy/pmw3389' into support-trackball
ufan Aug 3, 2022
89afd0b
Merge remote-tracking branch 'crides/cirque-trackpad' into support-tr…
ufan Aug 3, 2022
09b8c1c
backup
ufan Aug 4, 2022
37b77e5
bugfix
ufan Aug 4, 2022
18176b6
change trackball cpi
ufan Aug 6, 2022
0cf8c1b
add min interval for mouse report update
ufan Aug 9, 2022
5057564
backup
ufan Aug 10, 2022
74a4fc9
backup
ufan Aug 11, 2022
60fe1c6
backup
ufan Aug 11, 2022
f7ae567
bugfix
ufan Aug 12, 2022
4a6702d
backup
ufan Aug 12, 2022
b2f31f4
backup
ufan Aug 12, 2022
8fcd571
[pmw3360] better driver implemtation following datasheet v1.5
ufan Aug 14, 2022
d193013
[trackball] seperate position fetch and report into two functions
ufan Aug 16, 2022
42f6688
[pmw33xx] bugfix: no need to reset motion register aftre burst
ufan Aug 16, 2022
2d66499
add debug log
ufan Aug 17, 2022
2e7c33d
[debug] temporarily move trackball dts node out of nrfmacro.dts
ufan Aug 26, 2022
fc03bdd
backup
ufan Aug 28, 2022
cd43042
backup
ufan Aug 28, 2022
647606f
[new feature] init version of interrupt based pmw33xx polling
ufan Aug 28, 2022
1a5b52d
use 25ms poll interval, and 15 poll counts
ufan Aug 29, 2022
2ccebde
change trackball init priority from kscan level to sensor level
ufan Aug 29, 2022
a273850
add cpi dividor dts property
ufan Aug 29, 2022
4c69b26
[add] pmw3360 firmware id checking in init_chip
ufan Aug 29, 2022
d9b69fa
[add] init version of standalone pmw3360 driver and a new trakball im…
ufan Aug 30, 2022
df5a3a4
backup
ufan Sep 1, 2022
a9cacc5
[bugfxi-pmw33xx] use k_busy_wait instead of k_sleep for spi bus relat…
ufan Sep 1, 2022
80122b8
[paw3395] add register arrays
ufan Sep 1, 2022
3cb2cfa
[bugfix-pmw33xx] use v4 srom from nrf desktop sdk
ufan Sep 2, 2022
11305f5
backup
ufan Sep 2, 2022
1f22106
backup
ufan Sep 2, 2022
0ed4bfa
backup
ufan Sep 2, 2022
46b8928
[new-feature] init working version of pixart paw3395 driver
ufan Sep 3, 2022
9a92965
backup
ufan Sep 5, 2022
2daea44
[new-driver] init working version of pixart pmw3610 driver
ufan Sep 5, 2022
abfd293
change the default cpi and orientation of pmw3610
ufan Sep 5, 2022
42e1d11
[bugfix] in set_sample_time of pmw3610 and paw3395
ufan Sep 5, 2022
18a737a
[modify] the pixart optical sesor drivers to have the same calling in…
ufan Sep 5, 2022
861b0ce
[change] add default zmk log level to info and add log output of conn…
ufan Sep 6, 2022
f7ec5eb
change pmw3610 delayed init timing
ufan Sep 7, 2022
db82302
[optimize] il0323 driver, comment out the using of epd reset pin, thu…
ufan Sep 9, 2022
f837789
[bug-fix] pwm3610 driver init timing parameter tuning, now can be int…
ufan Sep 10, 2022
bf4c077
[bugfix] tuning the paw3395 init timing
ufan Sep 10, 2022
dffdf6a
[change] default cpi of pmw3610 to maximum 3200
ufan Sep 10, 2022
bef5254
pmw3610, init timing parameter tuning
ufan Sep 12, 2022
f5697e9
[touch-bar] add init version of cap1203 driver
ufan Sep 28, 2022
c85fd16
backup
ufan Sep 29, 2022
0b4638e
[cap1203] bugfix
ufan Sep 29, 2022
52931c1
[cap1203] single button is working
ufan Oct 2, 2022
31a0a1e
[cap1203] multi-touch circuitry is working
ufan Oct 2, 2022
8c2170f
backup
ufan Oct 3, 2022
3885d14
[cap1203] working template with functional slider and mix mode
ufan Oct 4, 2022
1345b06
[cap1203] very first implementation of sending scroll deltas
ufan Oct 5, 2022
c13afa7
[slider] init work version of slider driver interface
ufan Oct 8, 2022
572f796
backup
ufan Oct 8, 2022
798d7db
[point-device] init working version of pd event through zmk evnt proc…
ufan Oct 8, 2022
4a65e09
add dedicated work queue to process point device events
ufan Oct 9, 2022
f7c6a5f
bugfix
ufan Oct 9, 2022
95f8ddc
bugfix
ufan Oct 9, 2022
6d89ddc
[trackballs] init working build with new implementation of trackball
ufan Oct 10, 2022
bcba988
bugfix
ufan Oct 10, 2022
9467c91
[trackball] optimize default parameters
ufan Oct 10, 2022
06a270e
[point-device] init working version of directional behavior
ufan Oct 10, 2022
b44317f
backup
ufan Oct 14, 2022
80f8a1a
backup
ufan Oct 14, 2022
57ae56e
[nrfmacro] delete default chosen node: zmk,battery
ufan Oct 14, 2022
fdc932f
Merge branch 'support' into blade
ufan Oct 14, 2022
912894a
[nrfmacro] add an alias label 'vcc_ctrl' to ext-power node
ufan Oct 14, 2022
fb4cdfb
Merge branch 'support' into blade
ufan Oct 14, 2022
11e4cd9
[blade] init working shield with touch-bar
ufan Oct 14, 2022
47458cb
Merge remote-tracking branch 'zhiayang/sensor-driver-max17048' into b…
ufan Oct 14, 2022
da73a7c
backup
ufan Oct 15, 2022
c8e6717
[max17048] init working version
ufan Oct 15, 2022
f04b582
[max17048] the minimal functions of max17048 is implemented
ufan Oct 15, 2022
2e89655
[cap1203] add dts option: invert_direction
ufan Oct 16, 2022
70383bb
backup
ufan Oct 17, 2022
11c778b
[blade] merge sweep-pro left and blade-right into a single keyboard
ufan Oct 18, 2022
38b9751
[blade] add full keymap
ufan Oct 18, 2022
503c312
backup
ufan Oct 19, 2022
1b17dfe
[blade] tuning trackball parameters
ufan Oct 25, 2022
ff5b38c
[point-device] behaveior default parameter tuning
ufan Oct 28, 2022
a1e7f26
backup
ufan Oct 28, 2022
5a9cdd7
backup
ufan Oct 28, 2022
3a6d6c0
backup
ufan Oct 29, 2022
9fa560b
[cap1203] add polling mode and activation by sliders.c solely
ufan Nov 10, 2022
acc9e98
[pmw3360] update orientation layout
ufan Dec 30, 2022
5177db3
start over with tracktyl changes
ALpotato Apr 22, 2023
c013d0f
change to encoder_right
ALpotato Apr 22, 2023
390ecc5
change to pro_micro_spi
ALpotato Apr 22, 2023
48cd717
include CONFIG_NICE_NANO_POINTDEVICE flag in tracktyl_right.conf
ALpotato Apr 22, 2023
048ea87
omg
ALpotato Apr 22, 2023
f2a5138
3610 -> 3360
ALpotato Apr 22, 2023
8b3d237
orientation 0
ALpotato Apr 22, 2023
6585365
move trackball logic into nice_nano_v2.dts
ALpotato Apr 23, 2023
abacd18
turn on logging
ALpotato Apr 23, 2023
47b297e
update
ALpotato Apr 23, 2023
f80282a
add supported spi and i2c in nice_nano_v2.yaml
ALpotato Apr 23, 2023
51ae4c5
move some of the tracktyl dt to the user config
ALpotato Apr 23, 2023
9e8248a
move trackball setting to tracktyl.dtsi
ALpotato Apr 23, 2023
9ced3e4
move tracktyl_right back here
ALpotato Apr 23, 2023
2a5ec63
add tracktyl left name
ALpotato Apr 23, 2023
12b1698
update to v3.2.0
ALpotato Apr 23, 2023
3528c14
add dts report in build-user-config
ALpotato Apr 23, 2023
e6f7856
update build.yml to that of zmk main branch
ALpotato Apr 23, 2023
581c8a2
try to fix build
ALpotato Apr 23, 2023
eff8a33
revert build.yml change
ALpotato Apr 23, 2023
1e37cd6
revert west.yml
ALpotato Apr 23, 2023
5fdb21c
add more information in logging
ALpotato Apr 24, 2023
e6c226b
set the srom upload verify a bit longer
ALpotato Apr 25, 2023
7becf1c
adding trackpad folder to nice_nano
ALpotato Apr 26, 2023
e4b117a
finally working version of pmw3360
ALpotato Apr 27, 2023
2c20c52
turning off debug for tracktyl
ALpotato Apr 27, 2023
3879c73
# disabling auto build until fixing all build errors to prevent exc…
ALpotato Jul 30, 2023
04dea59
adding mouse keys in combos
ALpotato Apr 27, 2023
72aeffb
make trackball scroll/move slower
ALpotato Apr 28, 2023
70f9608
corne_cirque change tryout
ALpotato Aug 1, 2023
5591ade
update tracktyl.keymap to include a scroll layer
ALpotato Aug 9, 2023
85095af
Merge branch 'ptdevice-alpotato' of github.com:ALpotato/zmk into ALpo…
christianholman Aug 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .github/workflows/build-user-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
shell: sh -x {0}
run: west build -s zmk/app -d "${{ env.build_dir }}" -b "${{ matrix.board }}" -- -DZMK_CONFIG=${{ env.base_dir }}/${{ inputs.config_path }} ${{ env.extra_cmake_args }} ${{ matrix.cmake-args }}

<<<<<<< HEAD
- name: ${{ env.display_name }} Kconfig file
run: |
if [ -f "${{ env.build_dir }}/zephyr/.config" ]
Expand All @@ -143,6 +144,16 @@ jobs:
echo "No Devicetree output"
fi
if: ${{ !cancelled() }}
=======
- name: ${{ steps.variables.outputs.display-name }} DTS File
if: ${{ always() }}
run: |
if [ -f "build/zephyr/${{ matrix.board }}.dts.pre.tmp" ]; then cat -n build/zephyr/${{ matrix.board }}.dts.pre.tmp; fi
if [ -f "build/zephyr/zephyr.dts" ]; then cat -n build/zephyr/zephyr.dts; fi

- name: ${{ steps.variables.outputs.display-name }} Kconfig file
run: grep -v -e "^#" -e "^$" build/zephyr/.config | sort
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

- name: Rename artifacts
shell: sh -x {0}
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ on:
paths:
- ".github/workflows/build.yml"
- "app/**"
<<<<<<< HEAD
schedule:
- cron: "22 4 * * *"
=======
# disabling auto build until fixing all build errors to prevent excessive emails
# schedule:
# - cron: '22 4 * * *'
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

jobs:
build:
Expand All @@ -24,7 +30,11 @@ jobs:
include: ${{ fromJSON(needs.compile-matrix.outputs.include-list) }}
steps:
- name: Checkout
<<<<<<< HEAD
uses: actions/checkout@v4
=======
uses: actions/checkout@v3
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
- name: Cache west modules
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -178,7 +188,11 @@ jobs:
core-include: ${{ steps.core-list.outputs.result }}
steps:
- name: Checkout
<<<<<<< HEAD
uses: actions/checkout@v4
=======
uses: actions/checkout@v3
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -207,7 +221,11 @@ jobs:
boards-include: ${{ steps.boards-list.outputs.result }}
steps:
- name: Checkout
<<<<<<< HEAD
uses: actions/checkout@v4
=======
uses: actions/checkout@v3
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -335,7 +353,11 @@ jobs:
organized-metadata: ${{ steps.organize-metadata.outputs.result }}
steps:
- name: Checkout
<<<<<<< HEAD
uses: actions/checkout@v4
=======
uses: actions/checkout@v3
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
/build
*.DS_Store
__pycache__
<<<<<<< HEAD
.python-version
.venv
=======
*.~undo-tree~
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"files.associations": {
"*.overlay": "dts",
"*.keymap": "dts"
"*.keymap": "dts",
"usb_conn_state_changed.h": "c",
"ble_active_profile_changed.h": "c"
},
"python.formatting.provider": "black",
"[c]": {
Expand Down
29 changes: 29 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,27 @@ target_sources(app PRIVATE src/activity.c)
target_sources(app PRIVATE src/behavior.c)
target_sources(app PRIVATE src/kscan.c)
target_sources(app PRIVATE src/matrix_transform.c)
target_sources(app PRIVATE src/mouse/key_listener.c)
target_sources(app PRIVATE src/mouse/main.c)
target_sources(app PRIVATE src/mouse/tick_listener.c)
target_sources(app PRIVATE src/sensors.c)
target_sources(app PRIVATE src/point_device/main.c)
target_sources(app PRIVATE src/point_device/sliders.c)
target_sources_ifdef(CONFIG_ZMK_WPM app PRIVATE src/wpm.c)
target_sources(app PRIVATE src/event_manager.c)
target_sources_ifdef(CONFIG_ZMK_EXT_POWER app PRIVATE src/ext_power_generic.c)
target_sources(app PRIVATE src/events/activity_state_changed.c)
target_sources(app PRIVATE src/events/position_state_changed.c)
target_sources(app PRIVATE src/events/sensor_event.c)
<<<<<<< HEAD
target_sources(app PRIVATE src/events/mouse_button_state_changed.c)
=======
target_sources(app PRIVATE src/events/pd_raw_event.c)
target_sources(app PRIVATE src/events/mouse_button_state_changed.c)
target_sources(app PRIVATE src/events/mouse_move_state_changed.c)
target_sources(app PRIVATE src/events/mouse_tick.c)
target_sources(app PRIVATE src/events/mouse_scroll_state_changed.c)
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
target_sources_ifdef(CONFIG_ZMK_WPM app PRIVATE src/events/wpm_state_changed.c)
target_sources_ifdef(CONFIG_USB_DEVICE_STACK app PRIVATE src/events/usb_conn_state_changed.c)
target_sources(app PRIVATE src/behaviors/behavior_reset.c)
Expand All @@ -55,10 +68,19 @@ if ((NOT CONFIG_ZMK_SPLIT) OR CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
target_sources(app PRIVATE src/behaviors/behavior_to_layer.c)
target_sources(app PRIVATE src/behaviors/behavior_transparent.c)
target_sources(app PRIVATE src/behaviors/behavior_none.c)
<<<<<<< HEAD
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_SENSOR_ROTATE app PRIVATE src/behaviors/behavior_sensor_rotate.c)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_SENSOR_ROTATE_VAR app PRIVATE src/behaviors/behavior_sensor_rotate_var.c)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON app PRIVATE src/behaviors/behavior_sensor_rotate_common.c)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_MOUSE_KEY_PRESS app PRIVATE src/behaviors/behavior_mouse_key_press.c)
=======
target_sources(app PRIVATE src/behaviors/behavior_sensor_rotate_key_press.c)
target_sources(app PRIVATE src/behaviors/behavior_mouse_key_press.c)
target_sources(app PRIVATE src/behaviors/behavior_mouse_move.c)
target_sources(app PRIVATE src/behaviors/behavior_mouse_scroll.c)
target_sources(app PRIVATE src/behaviors/behavior_point_device_incremental.c)
target_sources(app PRIVATE src/behaviors/behavior_point_device_directional.c)
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
target_sources(app PRIVATE src/combo.c)
target_sources(app PRIVATE src/behaviors/behavior_tap_dance.c)
target_sources(app PRIVATE src/behavior_queue.c)
Expand All @@ -70,7 +92,14 @@ if ((NOT CONFIG_ZMK_SPLIT) OR CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
target_sources(app PRIVATE src/events/layer_state_changed.c)
target_sources(app PRIVATE src/events/modifiers_state_changed.c)
target_sources(app PRIVATE src/events/keycode_state_changed.c)
<<<<<<< HEAD
target_sources_ifdef(CONFIG_ZMK_HID_INDICATORS app PRIVATE src/hid_indicators.c)
=======
target_sources(app PRIVATE src/events/pd_scroll_state_changed.c)
target_sources(app PRIVATE src/events/pd_position_state_changed.c)
target_sources(app PRIVATE src/point_device/pd_listener.c)
target_sources(app PRIVATE src/point_device/trackballs.c)
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

if (CONFIG_ZMK_BLE)
target_sources(app PRIVATE src/events/ble_active_profile_changed.c)
Expand Down
22 changes: 22 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ config ZMK_BLE_MOUSE_REPORT_QUEUE_SIZE
int "Max number of mouse HID reports to queue for sending over BLE"
default 20

config ZMK_BLE_MOUSE_REPORT_QUEUE_SIZE
int "Max number of mouse HID reports to queue for sending over BLE"
default 20

config ZMK_BLE_CLEAR_BONDS_ON_START
bool "Configuration that clears all bond information from the keyboard on startup."
default n
Expand Down Expand Up @@ -381,13 +385,26 @@ endmenu

menu "Mouse Options"

<<<<<<< HEAD
config ZMK_MOUSE
bool "Enable ZMK mouse emulation"
default n
=======
rsource "src/mouse/Kconfig"
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

#Mouse Options
endmenu

<<<<<<< HEAD
=======
menu "Point Device Options"

rsource "src/point_device/Kconfig"

endmenu

>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
menu "Power Management"

config ZMK_BATTERY_REPORTING
Expand Down Expand Up @@ -536,13 +553,18 @@ config ZMK_USB_LOGGING

if ZMK_USB_LOGGING

<<<<<<< HEAD
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
default USB_CDC_ACM_LOG_LEVEL_OFF
endchoice

choice USB_DRIVER_LOG_LEVEL_CHOICE
default USB_DRIVER_LOG_LEVEL_OFF
endchoice
=======
# config ZMK_LOG_LEVEL
# default 1
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

# We do this to avoid log loop where logging to USB generates more log messages.

Expand Down
12 changes: 12 additions & 0 deletions app/boards/arm/nice_nano/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# Copyright (c) 2021 Darryl deHaan
# SPDX-License-Identifier: MIT
#

if (CONFIG_NICE_NANO_POINTDEVICE)
add_subdirectory_ifdef(CONFIG_PINNACLE trackpad)
add_subdirectory_ifdef(CONFIG_PMW33XX trackball)
add_subdirectory_ifdef(CONFIG_PMW3360 trackball)
add_subdirectory_ifdef(CONFIG_PAW3395 trackball)
add_subdirectory_ifdef(CONFIG_PMW3610 trackball)
endif()
46 changes: 44 additions & 2 deletions app/boards/arm/nice_nano/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,59 @@

if BOARD_NICE_NANO || BOARD_NICE_NANO_V2

<<<<<<< HEAD
config BOARD
=======
config BOARD
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
default "nice_nano"

if USB_DEVICE_STACK
if USB_DEVICE_STACK

<<<<<<< HEAD
config USB_NRFX
default y
=======
config USB_NRFX
default y
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

endif # USB_DEVICE_STACK
endif # USB_DEVICE_STACK

<<<<<<< HEAD
config BT_CTLR
default BT
=======
config BT_CTLR
default BT

config ZMK_BLE
default y

config ZMK_USB
default y

# Role of the keyboard in split setup, default is master (i.e., central)
## NOTE: this is a dedicated config option for nrfmacro board, so that all shields
## using this board can share the some configuration. It's mainly used for controlling
## which widget to show on different side of the keyboard
choice
prompt "Role of the keyboard"
help
Specify the role of the keyboard

config NICE_NANO_SHIELD_MASTER
bool "master side, in charge of communication with host"

config NICE_NANO_SHIELD_SLAVE
bool "slave side, acting as a peripheral to master side"

endchoice

# add point device
config NICE_NANO_POINTDEVICE
bool "add support for point device"
select SPI
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048

endif # BOARD_NICE_NANO || BOARD_NICE_NANO_V2
4 changes: 4 additions & 0 deletions app/boards/arm/nice_nano/nice_nano.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
pinctrl-names = "default", "sleep";
};

&spi0 {
compatible = "nordic,nrf-spim";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
2 changes: 2 additions & 0 deletions app/boards/arm/nice_nano/nice_nano.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ supported:
- ieee802154
- pwm
- watchdog
- spi
- i2c
2 changes: 2 additions & 0 deletions app/boards/arm/nice_nano/nice_nano_v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@
compatible = "zmk,battery-nrf-vddh";
};
};

nice_nano_spi: &spi2 {};
2 changes: 2 additions & 0 deletions app/boards/arm/nice_nano/nice_nano_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ supported:
- ieee802154
- pwm
- watchdog
- spi
- i2c
8 changes: 7 additions & 1 deletion app/boards/arm/nice_nano/nice_nano_v2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

<<<<<<< HEAD
CONFIG_ZMK_BLE=y
CONFIG_ZMK_USB=y
CONFIG_ZMK_USB=y
=======
# added from nrfmacro, not sure if needed for trackball
CONFIG_CLOCK_CONTROL_NRF=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
>>>>>>> 5591ade36fef72969c7328b61dd0da901d713048
9 changes: 9 additions & 0 deletions app/boards/arm/nice_nano/trackball/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_PMW33XX trackball.c)
zephyr_library_sources_ifdef(CONFIG_PMW3360 trackball_new.c)
zephyr_library_sources_ifdef(CONFIG_PAW3395 trackball_new.c)
zephyr_library_sources_ifdef(CONFIG_PMW3610 trackball_new.c)

zephyr_library_include_directories(${CMAKE_SOURCE_DIR}/include)
zephyr_library_include_directories(${CMAKE_SOURCE_DIR}/drivers/sensor)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
Loading