diff options
| author | Selene ToyKeeper | 2023-10-27 03:24:25 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-10-27 03:24:25 -0600 |
| commit | 05015b37f89f508482946160fe716fa239d0e005 (patch) | |
| tree | 51a985f5fd7efdec378906eed575189d48708257 /hwdef-wurkkos-ts10.h | |
| parent | converted noctigon-kr4-boost to new API (diff) | |
| download | anduril-05015b37f89f508482946160fe716fa239d0e005.tar.gz anduril-05015b37f89f508482946160fe716fa239d0e005.tar.bz2 anduril-05015b37f89f508482946160fe716fa239d0e005.zip | |
converted blf-q8-t1616 to new API, using wurkkos-ts10 and wurkkos-ts25 as a base
(since the Q8 driver was the direct predecessor to those Wurkkos drivers,
they're almost identical)
Diffstat (limited to 'hwdef-wurkkos-ts10.h')
| -rw-r--r-- | hwdef-wurkkos-ts10.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hwdef-wurkkos-ts10.h b/hwdef-wurkkos-ts10.h index 4af6a84..e693c99 100644 --- a/hwdef-wurkkos-ts10.h +++ b/hwdef-wurkkos-ts10.h @@ -1,5 +1,5 @@ // Wurkkos TS10 driver layout -// Copyright (C) 2022-2023 (FIXME) +// Copyright (C) 2021-2023 gchart, Selene ToyKeeper // SPDX-License-Identifier: GPL-3.0-or-later #pragma once @@ -32,6 +32,7 @@ enum CHANNEL_MODES { #define DEFAULT_CHANNEL_MODE CM_MAIN +// right-most bit first, modes are in fedcba9876543210 order #define CHANNEL_MODES_ENABLED 0b00000001 @@ -84,10 +85,10 @@ inline void hwdef_setup() { CLKCTRL_PDIV_2X_gc | CLKCTRL_PEN_bm ); //VPORTA.DIR = ...; - // Outputs: Aux LED and PWMs - VPORTB.DIR = PIN0_bm - | PIN1_bm - | PIN5_bm; + // Outputs + VPORTB.DIR = PIN0_bm // DD FET + | PIN1_bm // 7135 + | PIN5_bm; // Aux LED //VPORTC.DIR = ...; // enable pullups on the unused pins to reduce power |
