Wykres commitów

62 Commity (79321b331e759f802ce34e8774ec467747434470)

Autor SHA1 Wiadomość Data
Rob Riggs 79321b331e Avoid dynamic allocation in hardware reply code. Add DFU capabilities flag. Update firmware version to 0.8.13. 2019-01-05 20:43:18 -06:00
Rob Riggs 3e36b400df Fix RTC initialization so it is not re-initialized across soft resets. 2019-01-05 20:40:02 -06:00
Rob Riggs 2790d1aa1a Update eclipse settings. 2018-11-17 13:58:39 -06:00
Rob Riggs 5c5ca44c85 Increase delay in serial port to avoid receiving too many small packets, leading to resource starvation. Disable VERBOSITY support. Increase firmware rev to 0.8.12. 2018-11-17 13:57:10 -06:00
Rob Riggs cebbc4081a Enable pulldown on USB_POWER pin (PH0). 2018-11-17 13:56:58 -06:00
Rob Riggs 9463c8de39 Only send PCD_BCD_DISCOVERY_COMPLETED (enable USB CDC) when connected to a downstream port. 2018-11-17 13:45:49 -06:00
Rob Riggs 3a876d9457 Clean up stop mode handling since we do a reset on wake now. Work around BCD issues in HAL. 2018-11-17 13:44:33 -06:00
Rob Riggs 5fb37ecdfe Enable pulldown on USB_POWER pin (PH0). 2018-11-17 13:42:25 -06:00
Rob Riggs bbf3001853 Only delay when setting input gain when doing auto-adjust. 2018-11-14 17:10:36 -06:00
Rob Riggs c75b20e9c1 Don't send any ITM messages when KISS_LOGGING is disabled. 2018-11-14 16:53:35 -06:00
Rob Riggs aded258db4 Allow waiting for a frame if one is not immediately available. Wait for frame in SerialPort handler. 2018-11-11 21:33:04 -06:00
Rob Riggs b5dccefb7e Support power on/off via USB. Initialize PTT on power-on. Reset on resume from stop2. 2018-11-04 10:03:25 -06:00
Rob Riggs c33c97a1ef Support adjusting input levels (twist, gain). Support auto-adjust input levels. Support getting & setting RTC. Send API version. Update to 0.8.9. 2018-11-02 20:06:27 -05:00
Rob Riggs 11200f234b Set the USB MaxPower value in the config descriptor to 500mA. 2018-10-29 16:55:56 -05:00
Rob Riggs 1373e62ba0 Set serial number in BM78 DIS and USB descriptor, and return it via KISS HW commands. 2018-10-29 14:06:52 -05:00
Rob Riggs d2ad6698be Boot directly into bootloader when USB is connected and BOOT button is pressed. 2018-10-29 13:37:30 -05:00
Rob Riggs a5cf64dfcd Minor project updates. 2018-10-28 21:37:12 -05:00
Rob Riggs af7dd9406e Updates from Cube update. Make USB_CE OD. 2018-10-28 21:36:50 -05:00
Rob Riggs 97b304bc7e Clean up BM78 init. Add support for RTC alarm. Defines for USB suspend/resume. 2018-10-28 21:35:51 -05:00
Rob Riggs 3cbe22dd7d STM32CubeMX now provides proper function declaration. 2018-10-28 21:34:48 -05:00
Rob Riggs 0fcbc6f919 FreeRTOS updated with HAL update. 2018-10-28 21:31:35 -05:00
Rob Riggs 992ae6dfe9 Mock up support for suspend. Fix charge enable on address assignment after HAL update. 2018-10-28 21:30:57 -05:00
Rob Riggs ca6fb5aa5f Minor logging improvements. 2018-10-28 21:27:27 -05:00
Rob Riggs a9ef136d41 Add digi implementation notes. 2018-10-28 21:26:04 -05:00
Rob Riggs 383a751a9f Fix CAPABILITIES endian mismatch. 2018-10-28 21:25:12 -05:00
Rob Riggs e9e4bc1990 Mock up support for USB suspend. Re-enable all interrupts on wake from stop. Stop/wake now seems to work reliably. 2018-10-28 21:15:19 -05:00
Rob Riggs a3145d2a95 Update battery level polling. 2018-10-28 21:12:10 -05:00
Rob Riggs de79227cc7 Update firmware version to 0.8.7. Support EEPROM save capability. Add new input gain limits and API version codes. 2018-10-28 21:07:44 -05:00
Rob Riggs 51d6b93415 Reduce buffer size to max allowed for USB. 2018-10-28 21:02:14 -05:00
Rob Riggs b19e1a5a5d Handle single-byte transfers over USB more efficiently. Linux seems to do only single byte transfers for ACM ports. 2018-10-28 21:01:24 -05:00
Rob Riggs 05bbab157b Do not enable/disable UART when opening/closing port as it causes corruption and missed data. Handle Tx timeouts better, including aborting DMA transfers when necessary. Remove egregious debug logging which was causing hangs due to resource starvation. 2018-10-28 20:59:01 -05:00
Rob Riggs ffd55e750d Update BM78 EEPROM loading/configuration process. BT security is disabled because that was the only way to get both EDR and LE to work on both Linux and Android at the same time. 2018-10-28 20:18:21 -05:00
Rob Riggs 0cd8ebbfd1 Update STM32L4 HAL library to version 1.13.0. 2018-10-28 20:15:55 -05:00
Rob Riggs e2bc1bc488 Add debug logging to the pool allocator. 2018-09-21 21:06:06 -05:00
Rob Riggs 01a70ca31f Update various Eclipse project files. 2018-09-19 22:50:05 -05:00
Rob Riggs 22df5ad05c Update hardware version. Change a couple GPIOs. Change core clock from 80 to 48MHz. 2018-09-19 22:46:44 -05:00
Rob Riggs e76631179d Trivial change to DCD. 2018-09-19 22:43:03 -05:00
Rob Riggs 88a2222b47 Update for new hardware revision. Implement STOP2 mode support. 2018-09-19 22:41:49 -05:00
Rob Riggs 2311503adb Update UART handle lpuart1->huart3. 2018-09-19 22:39:49 -05:00
Rob Riggs ea2d081a9f Fix syntax error. 2018-09-19 22:38:50 -05:00
Rob Riggs 7523bac4f4 Start work on power saving modes. 2018-09-19 22:38:18 -05:00
Rob Riggs 8778ad3f1e Use CxxErrorHandler. 2018-09-19 22:37:00 -05:00
Rob Riggs 878b2e4a38 Fix unused variable warnings. 2018-09-19 22:36:30 -05:00
Rob Riggs e363bdd5b7 Mostly formatting updates. Fix PWM configuration. 2018-09-19 22:35:59 -05:00
Rob Riggs ffba2193bc Update for new hardware. Fix double free of frame when serial times out. 2018-09-19 22:33:16 -05:00
Rob Riggs 1d1a362557 Update hardware version number. Use device ID as serial number. 2018-09-19 22:31:08 -05:00
Rob Riggs cb436bb0d1 More USB support code. 2018-09-19 22:30:01 -05:00
Rob Riggs 9f45fc0eb0 Implement CDC interface connect, disconnect, receive. 2018-09-19 22:28:10 -05:00
Rob Riggs 0c87035271 Implement USB battery charger detection. 2018-09-19 22:26:38 -05:00
Rob Riggs 8dddebbf2e Handle interrupts. 2018-09-19 22:25:32 -05:00