summaryrefslogtreecommitdiffstats
path: root/keyboards/lfkeyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lfkeyboards')
-rw-r--r--keyboards/lfkeyboards/TWIlib.c296
-rw-r--r--keyboards/lfkeyboards/TWIlib.h71
-rw-r--r--keyboards/lfkeyboards/issi.c244
-rw-r--r--keyboards/lfkeyboards/issi.h39
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/.noci0
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/config.h75
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/info.json15
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/keymaps/default/keymap.c50
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c23
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/lfk65_hs.h67
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/readme.md14
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/rules.mk8
-rw-r--r--keyboards/lfkeyboards/lfk78/.noci0
-rw-r--r--keyboards/lfkeyboards/lfk78/config.h101
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/ca178858/keymap.c153
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/ca178858/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/ca178858/rules.mk35
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/default/keymap.c90
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/default/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/iso/keymap.c90
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/iso/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/split_bs_osx/keymap.c90
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/split_bs_osx/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/via/keymap.c72
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/via/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/via/rules.mk2
-rw-r--r--keyboards/lfkeyboards/lfk78/lfk78.c185
-rw-r--r--keyboards/lfkeyboards/lfk78/lfk78.h33
-rw-r--r--keyboards/lfkeyboards/lfk78/post_rules.mk14
-rw-r--r--keyboards/lfkeyboards/lfk78/readme.md21
-rw-r--r--keyboards/lfkeyboards/lfk78/revb/.noci0
-rw-r--r--keyboards/lfkeyboards/lfk78/revb/config.h20
-rw-r--r--keyboards/lfkeyboards/lfk78/revb/info.json108
-rw-r--r--keyboards/lfkeyboards/lfk78/revb/revb.h39
-rw-r--r--keyboards/lfkeyboards/lfk78/revb/rules.mk2
-rw-r--r--keyboards/lfkeyboards/lfk78/revc/.noci0
-rw-r--r--keyboards/lfkeyboards/lfk78/revc/config.h20
-rw-r--r--keyboards/lfkeyboards/lfk78/revc/info.json396
-rw-r--r--keyboards/lfkeyboards/lfk78/revc/revc.h76
-rw-r--r--keyboards/lfkeyboards/lfk78/revc/rules.mk2
-rw-r--r--keyboards/lfkeyboards/lfk78/revj/config.h20
-rw-r--r--keyboards/lfkeyboards/lfk78/revj/info.json396
-rw-r--r--keyboards/lfkeyboards/lfk78/revj/revj.h76
-rw-r--r--keyboards/lfkeyboards/lfk78/revj/rules.mk4
-rw-r--r--keyboards/lfkeyboards/lfk78/rules.mk24
-rw-r--r--keyboards/lfkeyboards/lfk87/config.h103
-rw-r--r--keyboards/lfkeyboards/lfk87/info.json19
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/ca178858/keymap.c181
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/ca178858/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/ca178858/rules.mk37
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/default/keymap.c99
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/default/rules.mk34
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/gbchk/keymap.c99
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/gbchk/rules.mk35
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/iso/keymap.c99
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/iso/rules.mk33
-rw-r--r--keyboards/lfkeyboards/lfk87/lfk87.c169
-rw-r--r--keyboards/lfkeyboards/lfk87/lfk87.h103
-rw-r--r--keyboards/lfkeyboards/lfk87/post_rules.mk13
-rw-r--r--keyboards/lfkeyboards/lfk87/readme.md14
-rw-r--r--keyboards/lfkeyboards/lfk87/rules.mk34
-rw-r--r--keyboards/lfkeyboards/lfkpad/config.h117
-rw-r--r--keyboards/lfkeyboards/lfkpad/info.json38
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/default/keymap.c31
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/default/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h27
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/keymap.c73
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/rules.mk2
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/via/keymap.c56
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/via/readme.md1
-rw-r--r--keyboards/lfkeyboards/lfkpad/keymaps/via/rules.mk2
-rw-r--r--keyboards/lfkeyboards/lfkpad/lfkpad.c74
-rw-r--r--keyboards/lfkeyboards/lfkpad/lfkpad.h21
-rw-r--r--keyboards/lfkeyboards/lfkpad/post_rules.mk7
-rw-r--r--keyboards/lfkeyboards/lfkpad/readme.md15
-rw-r--r--keyboards/lfkeyboards/lfkpad/rules.mk27
-rw-r--r--keyboards/lfkeyboards/lighting.c159
-rw-r--r--keyboards/lfkeyboards/lighting.h49
-rw-r--r--keyboards/lfkeyboards/mini1800/.noci0
-rw-r--r--keyboards/lfkeyboards/mini1800/config.h93
-rw-r--r--keyboards/lfkeyboards/mini1800/info.json103
-rw-r--r--keyboards/lfkeyboards/mini1800/keymaps/ca178858/keymap.c118
-rw-r--r--keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk1
-rw-r--r--keyboards/lfkeyboards/mini1800/keymaps/default/keymap.c96
-rw-r--r--keyboards/lfkeyboards/mini1800/mini1800.c175
-rw-r--r--keyboards/lfkeyboards/mini1800/mini1800.h45
-rw-r--r--keyboards/lfkeyboards/mini1800/readme.md26
-rw-r--r--keyboards/lfkeyboards/mini1800/reva/post_rules.mk7
-rw-r--r--keyboards/lfkeyboards/mini1800/reva/readme.md22
-rw-r--r--keyboards/lfkeyboards/mini1800/reva/rules.mk29
-rw-r--r--keyboards/lfkeyboards/mini1800/revc/post_rules.mk7
-rw-r--r--keyboards/lfkeyboards/mini1800/revc/readme.md24
-rw-r--r--keyboards/lfkeyboards/mini1800/revc/rules.mk29
-rw-r--r--keyboards/lfkeyboards/readme.md8
-rw-r--r--keyboards/lfkeyboards/smk65/.noci0
-rw-r--r--keyboards/lfkeyboards/smk65/info.json18
-rw-r--r--keyboards/lfkeyboards/smk65/keymaps/default/keymap.c65
-rw-r--r--keyboards/lfkeyboards/smk65/keymaps/default/rules.mk17
-rw-r--r--keyboards/lfkeyboards/smk65/keymaps/iso/keymap.c65
-rw-r--r--keyboards/lfkeyboards/smk65/keymaps/iso/rules.mk17
-rw-r--r--keyboards/lfkeyboards/smk65/readme.md17
-rw-r--r--keyboards/lfkeyboards/smk65/revb/.noci0
-rw-r--r--keyboards/lfkeyboards/smk65/revb/config.h104
-rw-r--r--keyboards/lfkeyboards/smk65/revb/info.json5
-rw-r--r--keyboards/lfkeyboards/smk65/revb/revb.c115
-rw-r--r--keyboards/lfkeyboards/smk65/revb/revb.h105
-rw-r--r--keyboards/lfkeyboards/smk65/revb/rules.mk16
-rw-r--r--keyboards/lfkeyboards/smk65/revf/config.h122
-rw-r--r--keyboards/lfkeyboards/smk65/revf/info.json5
-rw-r--r--keyboards/lfkeyboards/smk65/revf/keymaps/via/keymap.c46
-rw-r--r--keyboards/lfkeyboards/smk65/revf/keymaps/via/rules.mk1
-rw-r--r--keyboards/lfkeyboards/smk65/revf/revf.h71
-rw-r--r--keyboards/lfkeyboards/smk65/revf/rules.mk11
-rw-r--r--keyboards/lfkeyboards/smk65/rules.mk16
-rw-r--r--keyboards/lfkeyboards/smk65/smk65.h23
115 files changed, 0 insertions, 6371 deletions
diff --git a/keyboards/lfkeyboards/TWIlib.c b/keyboards/lfkeyboards/TWIlib.c
deleted file mode 100644
index d50ce72895..0000000000
--- a/keyboards/lfkeyboards/TWIlib.c
+++ /dev/null
@@ -1,296 +0,0 @@
-/*
- * TWIlib.c
- *
- * Created: 6/01/2014 10:41:33 PM
- * Author: Chris Herring
- */
-
-#include <avr/io.h>
-#include <avr/interrupt.h>
-#include "TWIlib.h"
-#include <util/delay.h>
-#include "print.h"
-
-// Global transmit buffer
-volatile uint8_t *TWITransmitBuffer;
-// Global receive buffer
-volatile uint8_t TWIReceiveBuffer[RXMAXBUFLEN];
-// Buffer indexes
-volatile int TXBuffIndex; // Index of the transmit buffer. Is volatile, can change at any time.
-int RXBuffIndex; // Current index in the receive buffer
-// Buffer lengths
-int TXBuffLen; // The total length of the transmit buffer
-int RXBuffLen; // The total number of bytes to read (should be less than RXMAXBUFFLEN)
-
-TWIInfoStruct TWIInfo;
-
-void TWIInit()
-{
- TWIInfo.mode = Ready;
- TWIInfo.errorCode = 0xFF;
- TWIInfo.repStart = 0;
- // Set pre-scalers (no pre-scaling)
- TWSR = 0;
- // Set bit rate
- TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;
- // Enable TWI and interrupt
- TWCR = (1 << TWIE) | (1 << TWEN);
-}
-
-uint8_t isTWIReady()
-{
- if ( (TWIInfo.mode == Ready) | (TWIInfo.mode == RepeatedStartSent) )
- {
- return 1;
- }
- else
- {
- if(TWIInfo.mode == Initializing){
- switch(TWIInfo.errorCode){
- case TWI_SUCCESS:
- case TWI_NO_RELEVANT_INFO:
- break;
- case TWI_LOST_ARBIT:
- case TWI_MT_DATA_NACK:
- // Some kind of I2C error, reset and re-init
- xprintf("I2C init error: %d\n", TWIInfo.errorCode);
- TWCR = (1 << TWINT)|(1 << TWSTO);
- TWIInit();
- break;
- default:
- xprintf("Other i2c init error: %d\n", TWIInfo.errorCode);
- }
- }
- return 0;
- }
-}
-
-
-void TWITransmitData(void *const TXdata, uint8_t dataLen, uint8_t repStart, uint8_t blocking)
-{
- // Wait until ready
- while (!isTWIReady()) {_delay_us(1);}
- // Reset the I2C stuff
- TWCR = (1 << TWINT)|(1 << TWSTO);
- TWIInit();
- // Set repeated start mode
- TWIInfo.repStart = repStart;
- // Copy transmit info to global variables
- TWITransmitBuffer = (uint8_t *)TXdata;
- TXBuffLen = dataLen;
- TXBuffIndex = 0;
-
- // If a repeated start has been sent, then devices are already listening for an address
- // and another start does not need to be sent.
- if (TWIInfo.mode == RepeatedStartSent)
- {
- TWIInfo.mode = Initializing;
- TWDR = TWITransmitBuffer[TXBuffIndex++]; // Load data to transmit buffer
- TWISendTransmit(); // Send the data
- }
- else // Otherwise, just send the normal start signal to begin transmission.
- {
- TWIInfo.mode = Initializing;
- TWISendStart();
- }
- if(blocking){
- // Wait until ready
- while (!isTWIReady()){_delay_us(1);}
- }
-}
-
-
-// uint8_t TWITransmitData(void *const TXdata, uint8_t dataLen, uint8_t repStart)
-// {
-// if (dataLen <= TXMAXBUFLEN)
-// {
-// // Wait until ready
-// while (!isTWIReady()) {_delay_us(1);}
-// // Set repeated start mode
-// TWIInfo.repStart = repStart;
-// // Copy data into the transmit buffer
-// uint8_t *data = (uint8_t *)TXdata;
-// for (int i = 0; i < dataLen; i++)
-// {
-// TWITransmitBuffer[i] = data[i];
-// }
-// // Copy transmit info to global variables
-// TXBuffLen = dataLen;
-// TXBuffIndex = 0;
-
-// // If a repeated start has been sent, then devices are already listening for an address
-// // and another start does not need to be sent.
-// if (TWIInfo.mode == RepeatedStartSent)
-// {
-// TWIInfo.mode = Initializing;
-// TWDR = TWITransmitBuffer[TXBuffIndex++]; // Load data to transmit buffer
-// TWISendTransmit(); // Send the data
-// }
-// else // Otherwise, just send the normal start signal to begin transmission.
-// {
-// TWIInfo.mode = Initializing;
-// TWISendStart();
-// }
-
-// }
-// else
-// {
-// return 1; // return an error if data length is longer than buffer
-// }
-// return 0;
-// }
-
-uint8_t TWIReadData(uint8_t TWIaddr, uint8_t bytesToRead, uint8_t repStart)
-{
- // Check if number of bytes to read can fit i