~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-BLF_LT1-t1616.h

  • Committer: Selene ToyKeeper
  • Date: 2023-04-17 06:08:32 UTC
  • mto: (188.22.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 250.
  • Revision ID: bzr@toykeeper.net-20230417060832-m50gul6mz47puwbp
switched the rest of FSM + Anduril to use SPDX license headers
instead of full GPL headers (or all too often, nothing at all)

There are a few "FIXME" entries where I'm not sure about the correct copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef HWDEF_BLF_LANTERN_T1616_H
2
 
#define HWDEF_BLF_LANTERN_T1616_H
3
 
 
4
 
/* BLF LT1 driver layout using the Attiny1616
5
 
 
6
 
Driver pinout:
 
1
// BLF LT1 driver layout using the Attiny1616
 
2
// Copyright (C) 2021-2023 (FIXME)
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
#pragma once
 
5
 
 
6
/*
 
7
 * Driver pinout:
7
8
 * eSwitch:    PA5
8
9
 * Aux LED:    PB5
9
10
 * PWM FET:    PB0 (TCA0 WO0)
10
11
 * PWM 1x7135: PB1 (TCA0 WO1)
11
12
 * Voltage:    VCC
12
 
 
13
 
*/
 
13
 */
14
14
 
15
15
 
16
16
#define LAYOUT_DEFINED
103
103
    TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm;
104
104
}
105
105
 
106
 
 
107
 
#endif