Commit Graph

133 Commits

Author SHA1 Message Date
Daniel Fekete 6b32b58d20 Syscalls: Add setHeap(), so variants can move Heap to external ram 2017-05-13 14:41:58 +02:00
Daniel Fekete bb92877dcd Arduino.h: Remove function definitions of inline functions
Including Arduino.h in multiple files caused problems otherwise
2017-05-12 19:42:32 +02:00
Daniel Fekete a376d7db60 HAL: Always include all hal source files 2017-05-12 06:58:23 +02:00
Daniel Fekete 330013e1ee Print: add 64 bit number printing
Thanks to Pito
2017-05-12 05:40:20 +02:00
Daniel Fekete 63be13ee6e ADC: add adc_ex.c to core 2017-05-11 19:53:50 +02:00
Daniel Fekete ac64d02071 Merge remote-tracking branch 'victorpv/SerialUSB' 2017-05-11 19:01:19 +02:00
victorpv f9bf375142 Small additions to SerialUSB
Resolves enumeration problem in F4 and !Serial never returning true.
When the USB port connects to a host goes thru several states, and can
start sending data once the state is USBD_STATE_CONFIGURED
2017-05-11 07:24:27 -05:00
Daniel Fekete 926830ea0e USB: Move interrupts to USBDevice.cpp 2017-05-10 18:50:04 +02:00
Daniel Fekete fef7fba454 USB: automatically start based on menu selection 2017-05-10 18:48:09 +02:00
Daniel Fekete c135b467ad USB: Fix endpoints 2017-05-09 22:00:56 +02:00
Daniel Fekete caf6d0063e USB CDC: use new USBDeviceClass from SerialUSB 2017-05-09 22:00:31 +02:00
Daniel Fekete 324c3df773 USB: add new USBDeviceClass class 2017-05-09 22:00:06 +02:00
Daniel Fekete b30f6af024 USB: add mass storage class descriptor 2017-05-09 21:59:02 +02:00
Daniel Fekete ab565f4585 USB: fix returning length of string descriptors 2017-05-09 19:02:19 +02:00
Daniel Fekete 8b67150245 USB: Rename descriptors that belong to CDC 2017-05-09 17:17:29 +02:00
Daniel Fekete c26ed43a25 USB MSC: use static memory instead of USBD_malloc 2017-05-09 16:21:33 +02:00
Daniel Fekete 433f5c2679 USB: Add MSC middleware 2017-05-09 16:18:17 +02:00
Daniel Fekete a87b357507 PWM: If TIM2 is not available, use TIM3 timer 2017-05-09 14:03:31 +02:00
Daniel Fekete e492650bac USB: Use const memory for string descriptors 2017-05-09 12:02:19 +02:00
Daniel Fekete 7dd491ac1a USB CDC: move into its own folder 2017-05-09 11:31:31 +02:00
Daniel Fekete e8219dc09a USB CDC: Move memory allocation from config to cdc 2017-05-09 11:25:31 +02:00
Daniel Fekete a6869ae8d4 Serial USB: fix operator bool() to not always return false 2017-05-09 07:46:47 +02:00
Daniel Fekete 348132f3c4 UART: Fix RX pin mode on F1 2017-05-08 19:52:54 +02:00
Daniel Fekete d1a682452b F7: Add USB config file 2017-05-04 17:51:01 +02:00
Daniel Fekete 44170fe61d F7: enable ICache and DCache 2017-05-04 17:50:15 +02:00
Daniel Fekete 0d74123949 Fix compilation where stm32f3xx_hal_uart_ex is needed for UART 2017-05-04 16:58:26 +02:00
Daniel Fekete 8715415bb6 F7: Fix stm32f7xx_hal_pwr_ex include 2017-05-04 16:54:06 +02:00
Daniel Fekete 53f4e63090 Variant: remove initVariant from stm32_init.c, so it can be used in variant.cpp 2017-05-04 16:46:15 +02:00
Daniel Fekete 5fc7208ea4 SDIO: Fix compilation where SDIO is called SDMMC 2017-05-03 20:03:52 +02:00
Daniel Fekete 57aa35806d Fix F3 compilation, EXTI2_IRQn -> EXTI2_TSC_IRQn 2017-05-02 17:26:33 +02:00
Daniel Fekete a36803dd48 Fix SPI compilation error on F1 2017-05-01 16:01:18 +02:00
Daniel Fekete 1d2d071ca9 Fix I2C compilation on chips without I2S 2017-05-01 16:01:05 +02:00
Daniel Fekete ff400490bd Fix compilation on chips that have no I2S 2017-04-29 06:25:34 +02:00
Daniel Fekete 6d4cc61c0a Fix typo in SerialUART 2017-04-28 18:04:37 +02:00
Daniel Fekete 1e141a35bd Fix millis() bug 2017-04-27 19:08:43 +02:00
Daniel Fekete 74a0efbe12 Add I2S Master Clock Output 2017-04-26 20:49:16 +02:00
Daniel Fekete 4760f3dead Add I2S implementation 2017-04-25 21:40:43 +02:00
Daniel Fekete a2b33aa10f Add attachInterrupt implementation 2017-04-24 18:23:03 +02:00
Daniel Fekete 2a89203577 Fix name of stm32GpioClock 2017-04-24 18:22:45 +02:00
Daniel Fekete c1985e2d92 Make Serialx alias for SerialUARTx 2017-04-24 17:43:09 +02:00
Daniel Fekete 3df3a5fede Fix UART random stop when sending data really fast 2017-04-24 17:42:39 +02:00
Daniel Fekete a4e7df14f7 Add FreeRTOS implementation 2017-04-23 07:47:06 +02:00
Daniel Fekete fee81d692a Add SDIO library 2017-04-22 08:28:14 +02:00
Daniel Fekete ef5cd4d857 Fix undefined reference to HAL_PWREx_EnableOverDrive when compiling F7 2017-04-19 21:27:24 +02:00
Daniel Fekete 67450454f2 Add more GPIO clock initialization 2017-04-19 21:14:45 +02:00
Daniel Fekete 8e473b06fb Fix Arduino.h port_pin_list renamed to variant_pin_list 2017-04-19 21:14:07 +02:00
Daniel Fekete cb985cec3b Fix writing on UART, block if buffer is full. 2017-04-18 19:39:39 +02:00
Daniel Fekete 436fabbd95 Add USB and Serial selection to the menu options 2017-04-18 18:54:02 +02:00
Daniel Fekete dda37d7e81 Rename port_pin_list to variant_pin_list to be more clear 2017-04-17 21:01:24 +02:00
Daniel Fekete cdf605ede5 Refactored function names to use camel case 2017-04-17 20:57:28 +02:00
Daniel Fekete 99a8d562fa Rename USBSerial to SerialUSB to be the same as SerialUART 2017-04-17 20:45:47 +02:00
Daniel Fekete 7e0b254ea1 Add AVR compatibility file 2017-04-17 15:45:06 +02:00
Daniel Fekete da658b6e70 Add arduino utility function implementation: random, map, makeWord 2017-04-17 13:37:26 +02:00
Daniel Fekete 2f5bdeaef7 Change PWM to not use any memory if analogWrite is never used. 2017-04-17 12:37:05 +02:00
Daniel Fekete 919c3aeba0 Add basic I2C master implementation 2017-04-17 12:36:20 +02:00
Daniel Fekete 73ef9cbf12 Add UART alternative pin setting methods 2017-04-17 11:06:24 +02:00
Daniel Fekete d77814ca9a Basic analogWrite with PWM on TIM2 2017-04-16 15:40:46 +02:00
Daniel Fekete e8ca1fea6f Fix implementation of analogRead 2017-04-16 14:44:56 +02:00
Daniel Fekete 23b3dc7a91 Implement delayMicroseconds 2017-04-15 12:06:07 +02:00
Daniel Fekete 576ab0bd8e Implement analogRead 2017-04-15 10:25:28 +02:00
Daniel Fekete 8b740566de Generate analog channes for the chips 2017-04-15 10:25:11 +02:00
Daniel Fekete 5bc8c46d11 Fix UART buffer implementation 2017-04-14 22:43:17 +02:00
Daniel Fekete 34febd7321 Fix compilation when using dynamic memory allocation 2017-04-13 22:24:16 +02:00
Daniel Fekete 5dd88df4ed Show error if the chip series is not defined in boards.txt 2017-04-13 16:53:33 +02:00
Daniel Fekete 468a96ca2c Fix micros() implementation 2017-04-13 06:04:47 +02:00
Daniel Fekete a0f76c6e0a Add RwReg define - some libraries use it 2017-04-12 21:08:34 +02:00
Daniel Fekete 7d5c4f4ff6 Fix compilation error on F1 2017-04-12 21:06:05 +02:00
Daniel Fekete a203b7b53b Implement micros using SysTick LOAD / VAL 2017-04-12 21:05:28 +02:00
Daniel Fekete b11a84e957 Add arduino compatibility files 2017-04-12 20:31:53 +02:00
Daniel Fekete 1b957bb09c Implement digitalPinToPort, digitalPinToBitMask, portOutputRegister, portInputRegister 2017-04-12 20:31:30 +02:00
Daniel Fekete 9a120e5cbb Compatibility: add files included in libraries 2017-04-12 20:27:19 +02:00
Daniel Fekete 102d9b7602 Generate clock frequencies for peripherals, and some refactoring / renaming 2017-04-12 06:15:09 +02:00
Daniel Fekete f5a84196e7 Merge alternate function code from multiple chip series 2017-04-11 20:32:37 +02:00
Daniel Fekete c336f71d58 Fix const correctness 2017-04-11 20:19:37 +02:00
Daniel Fekete 42cf68365d Move af function into their own files 2017-04-11 20:16:14 +02:00
Daniel Fekete 03776c2662 Rename alternate to af 2017-04-11 20:12:18 +02:00
Daniel Fekete 4e8672871b Fix compilation with gcc arm version 5 2017-04-11 19:10:31 +02:00
Daniel Fekete eeae006adb Make alternate pin settings more generic 2017-04-11 17:40:07 +02:00
Daniel Fekete 559a36f197 Fix compiled HAL for F0/F3/L1/L4 series 2017-04-11 06:32:52 +02:00
Daniel Fekete 82242bb9f9 Fix build definition file 2017-04-11 06:30:57 +02:00
Daniel Fekete 1c178b6fe7 Move GPIO definitions to gpio.h 2017-04-10 18:24:58 +02:00
Daniel Fekete bf94d6048c Implement digitalRead 2017-04-10 07:10:33 +02:00
Daniel Fekete c5d1469296 Add Core implementation 2017-04-10 06:55:07 +02:00