Commit Graph
1519 Commits
Author SHA1 Message Date
Stephen 9d5588a6c2 follow cask style guide 2017-10-10 10:12:37 -07:00
Stephen 8c42074534 try a harder pin
worked locally the other way, doesn't seem to be respect the local formula on travis
2017-10-10 09:18:55 -07:00
Stephen G fce054eb9c Fix gcc-arm-embedded vesion in cask 2017-10-10 08:38:25 -07:00
László Monda fb320ee4bd Merge pull request #59 from stephengroat/patch-2
brew updated, travis is behind
2017-10-10 16:24:23 +02:00
Stephen 6595884c99 fix eclipse path
caught new install directory https://travis-ci.org/UltimateHackingKeyboard/firmware/builds/285828200#L1599
2017-10-09 16:44:07 -07:00
Stephen 7b7af0c5bc test where brew is installing apps 2017-10-09 16:14:33 -07:00
Stephen 1d4c8d3019 brew updated, travis is behind 2017-10-09 14:14:40 -07:00
László Monda 3dd9744e4d Make I2C communication rock stable by hacking I2C_SlaveTransferHandleIRQ() of the KSDK and making the firmware use incoming bytes via userData. 2017-10-09 04:19:26 +02:00
László Monda 859a770ca3 Dump byteIn after xfer->event via SPI. Make the firmware build without using the DEBUG_OVER_SPI macro. 2017-10-08 23:12:40 +02:00
László Monda 6b0ebb1385 Add debug_over_spi.[ch] 2017-10-08 03:38:43 +02:00
László Monda 302a750621 Improve file according to our coding standards. 2017-10-07 16:37:20 +02:00
László Monda 457894ecd8 Remove redundant InitI2cV2() function prototype. 2017-10-07 16:35:34 +02:00
László Monda 8dba4df6f6 Set the heap size to 0 given that no dynamic memory is allocated in the firmware. This makes the bss go from 1252 to 740, exactly 0x200 difference. 2017-10-07 12:57:52 +02:00
László Monda 215d4c33bb Add slave_protocol.c that I forgot to add. 2017-10-07 12:29:44 +02:00
László Monda 9f411dc1d4 Throw ParserError_InvalidKeymapCount if keymapCount == 0. 2017-10-06 23:37:05 +02:00
László Monda 3d443a8bfc Remove semihosting related changes. 2017-10-06 22:36:02 +02:00
László Monda 1cc01c4f48 Merge pull request #58 from stephengroat/osx-brew
Improve OSX dependency management through brew bundle
2017-10-06 22:21:05 +02:00
László Monda fd7f2c3b25 Expose the currently attached module ids via getKeyboardState() 2017-10-05 20:53:15 +02:00
László Monda 8c067b9190 Use UhkModuleDriverId_* enum values instead of magic numbers wherever possible. 2017-10-05 20:36:29 +02:00
László Monda bea13f063a UpperCamelCase UhkModuleStates now that it's a global. 2017-10-05 20:27:57 +02:00
László Monda 9842a6ff60 Merge UhkModuleVars into uhkModuleStates. Also make uhkModuleStates globally accessible because it must be accessed by other parts of the firmware, so it's unpractical to keep it private and write accessor functions for it. 2017-10-05 20:18:57 +02:00
László Monda f8e83b139d Rerequest transfer if CRC is invalid. 2017-10-05 20:02:12 +02:00
László Monda 6be45c4521 Add uhk_module_state_t->isEnumerated and maintain its state. 2017-10-05 19:56:26 +02:00
László Monda a9ba8a1907 Remove redundant module members. 2017-10-05 19:51:15 +02:00
László Monda 12c055aec7 Extract MODULE_ID. 2017-10-05 18:00:17 +02:00
László Monda 96eb2ef7a3 Make slaves send their protocol version to the master. 2017-10-05 17:55:59 +02:00
László Monda bd76fb44c2 Make slaves send their module id to the master. 2017-10-05 17:26:10 +02:00
László Monda 21beb59cb6 Add merge sensor state to getKeyboardState() 2017-10-05 14:21:37 +02:00
László Monda 3ed3272fa3 Write the validated user config area to the EEPROM, not the staging area. 2017-10-05 09:12:50 +02:00
László Monda 377fe4a2b2 Make EEPROM transfers receive an operation and a buffer id parameter. This allows reading and writing both staging and validated user configurations which will aid future debugging. This API is also cleaner. 2017-10-05 02:45:22 +02:00
László Monda 259f4d3299 Add config_buffer_id_t. 2017-10-04 23:57:43 +02:00
László Monda 8e420f8592 Rename and rearrange some variables in config_globals.c for better readability. 2017-10-04 22:39:40 +02:00
László Monda 63674e02b7 Now rename the other guard macro, too. I thought it was renamed by the IDE. 2017-10-04 22:36:27 +02:00
László Monda e27fb83693 Rename guard macro according to the filename. 2017-10-04 22:35:17 +02:00
László Monda b0e706d894 Remove redundant extern modifier before function. 2017-10-04 22:33:58 +02:00
László Monda 4295793fb9 Add ATTR_* macros in the newly created attributes.h and use them wherever possible for improved readability. 2017-10-04 22:26:48 +02:00
László Monda f348aec97a Rename UserConfigBuffer to ValidatedUserConfigBuffer. 2017-10-04 22:10:55 +02:00
László Monda 9ecdfc0b71 Improve the readability of ApplyConfig() 2017-10-04 22:06:45 +02:00
László Monda 1bca95d366 Don't stop execution upon starting a debugging session. 2017-10-04 19:31:28 +02:00
László Monda a84d184da4 Include stdio.h 2017-10-04 18:34:10 +02:00
László Monda c965fe185b Enable semihosting for the "uhk-left debug jlink" build. 2017-10-04 18:21:02 +02:00
László Monda af52c017d8 No need to assign a value to I2C_WATCHDOG. Just define it. 2017-10-04 13:02:40 +02:00
László Monda 316602bb02 Rename the obsoleted LED_DRIVER_FORCE_UPDATE macro to LED_DRIVER_STRESS_TEST. 2017-10-04 12:59:05 +02:00
László Monda 6658d62805 Group module phases. 2017-10-04 02:52:53 +02:00
László Monda c707f0e408 Transfer a synchronization message to make I2C recovery more robust. 2017-10-04 02:24:34 +02:00
László Monda efb0f982d2 Only try to recover I2C if SDA is low. 2017-10-04 01:22:22 +02:00
László Monda 2027940b4c Use the correct I2C_MAIN_BUS_{SDA,SCL}{PORT,PIN} macros at the right spots. 2017-10-04 01:04:56 +02:00
László Monda e5595bc757 Extract I2C recovery code to recoverI2c() 2017-10-03 23:59:27 +02:00
László Monda 72812724ef Now do send a STOP condition at the end of the I2C recovery which might make it more robust. 2017-10-03 23:37:16 +02:00
László Monda 1daf43b751 Set SDA as GPIO upon trying to recovering I2C, not just SDL. 2017-10-03 23:23:26 +02:00