Commit Graph

71 Commits

Author SHA1 Message Date
dron0gus 83d1f254a1 Exti rework (#770)
* io_pins: implement efiSetPadUnused

When pin becomes unused it should be switched to safe mode and
disconnected from any IP block. Assume that gpio input mode with
pull-up is safe enough.

* trigger_input: switch triggers pins to safe mode on stop/reinit

* digital_input_exti: rework

* rename enableExti to efiExtiEnablePin
* add efiExtiDisablePin
* keep track of used exti channels

* trigger_input: use digital_input_exti functions
2019-04-21 09:28:49 -04:00
rusefi fe1f871a69 defined(__DOXYGEN__) ? #748 2019-04-12 20:52:51 -04:00
rusefi 0a341e668d SPI-controlled outputs #697
better spot for this code
2019-04-10 18:23:31 -04:00
rusefi e002f141fa fixing build - BOOTLOADER has it's special limitations 2019-04-10 09:02:32 -04:00
dron0gus 551f2f5883 Gpiochips integration (#740)
* gpio-chips core function renames

* efi_gpio, pin_repository: add support for external gpios

* gpio-chips update

* gpio-chips: add api to name each pin of gpiochip

* tle6240: provide individual names for each pin
2019-04-10 14:43:54 +02:00
dron0gus 69df5d4b50 gpios rework (#739)
* Some more include fixes for linux

* Pass cross-compile path through CROSS_COMPILE

* Lower-upper case conversion fixes for linux

* Rename unmarkPin to brain_pin_markUnused

This is part of external gpiochip integration

* Add gpio_pin prefix to markUsed and markUnused

To distinguish from similar functions using brain_pin

* pin_repository: add helpers

this is part of gpio chips integration

* efi_gpio: simplify getHwPin using brain_pin_is_onchip
2019-04-10 01:31:10 +02:00
rusefi 82028b29f8 better ICU error handling 2019-04-07 18:25:46 -04:00
rusefi e28ce71bb8 unifying_file_naming 2019-03-29 09:11:13 -04:00
andreika-git a3f33f3f0d More compatibility for ADC_inputs, etc. (#716)
* Move STM32-specific ADC pinouts to ports/stm32/stm32_common.cpp

* Move STM32-specific files to ports/*

* setAdcChannelOverrides()

* Add #ifdefs for adc_inputs (PWM_FREQ_*, PWM_PERIOD_*, ADC_*_DEVICE)

* addChannel(), removeChannel()

* fix tle6240 compilation

* Add stm32_common.cpp to Makefile

* More ports/stm32/* paths

* More ports/stm32/* paths

* More flexible GPIO ports

* Add #ifdef for GPTDEVICE

* EFI_BOARD_TEST and EFI_JOYSTICK

* EFI_TLE8888

* Fix HIP9011_logic compilation

* ADC_CHANNEL_SENSOR

* Move ioportid_t PORTS[] to ports/*

* Fix simulator
2019-03-28 22:46:10 -04:00
rusefi e1ba29febd 688 brainpins (#694)
* GPIOF, GPIOG and GPIOH ports are not available #688
2019-02-22 22:10:41 -05:00
rusefi b745911d33 docs 2019-02-05 19:00:52 -05:00
rusefi 9917458125 better conditional compilation 2019-01-04 00:16:08 -05:00
rusefi 1c373573a2 EXTI refactoring 2018-12-18 23:50:29 -05:00
rusefi 4354cd3881 exti clean-up 2018-12-12 18:02:00 -05:00
andreika-git 96dfebc542 STM32 Nucleo144-F767ZI board: Initial support (#620)
* More EFI_ #ifdefs for config flexibility

* Even more config flexibility

* New firmware/config/stm32f7ems/* files

* New firmware/config/boards/NUCLEO_F767/* files

* New firmware/hw_layer/stm32f7/* files

* Fix for EFI_USB_SERIAL

* Adding #if defined(STM32F7XX)

* SPI flags changed in F7: SPI_CR1_DFF --> SPI_CR1_CRCL

* I2Cv2 config changed in F7

* More versatile CCM defines

* Makefiles

* Double #ifs cleanup

* docs
2018-11-16 07:40:06 -05:00
rusefi 553969dc72 refactoring 2018-09-16 22:26:57 -04:00
rusefi 60b3aa8e60 unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi f5a4376036 happy new year 2018-01-20 20:55:31 -05:00
rusefi 28d99264dd better error handling 2017-07-28 14:32:51 -04:00
rusefi 201b3a3491 better error handling 2017-07-28 14:27:37 -04:00
Andrei 9667ffe06d Add || DOXYGEN 2017-05-30 22:46:02 +03:00
Andrei fb01ca5803 Add || DOXYGEN 2017-05-30 22:43:33 +03:00
Andrei e99b0f3cc0 Fix HAL_USE_ICU=FALSE 2017-05-30 21:22:38 +03:00
rusefi 6f2134511b better method name 2017-05-15 08:40:54 -04:00
rusefi cdf380f09e refactoring: extracting method 2017-05-15 05:03:40 -04:00
rusEfi 9535094fd9 refactoring - reducing GPIO complexity 2017-04-21 20:12:11 -04:00
rusEfi 7a7fd5116c refactoring - reducing GPIO complexity 2017-04-21 19:59:05 -04:00
rusefi 07117b03da refactoring - reducing GPIO complexity 2017-04-21 17:23:21 -04:00
rusefi f8c1daec02 refactoring - reducing GPIO complexity 2017-04-21 17:14:14 -04:00
rusefi d1a32f3b31 refactoring - reducing GPIO complexity 2017-04-21 17:10:29 -04:00
rusefi a99f7bf7da refactoring - reducing GPIO complexity 2017-04-21 16:30:14 -04:00
rusefi eb91eca772 refactoring - reducing GPIO complexity 2017-04-21 15:28:47 -04:00
rusefi bafb44d276 refactoring - reducing GPIO complexity 2017-04-21 15:14:37 -04:00
rusefi 928ab4e6f7 refactoring - reducing GPIO complexity 2017-04-21 13:36:51 -04:00
rusefi b7fb6d5e9d refactoring - reducing complexity 2017-04-21 12:06:32 -04:00
rusefi 82b0b09f35 refactoring - reducing complexity 2017-04-21 12:01:44 -04:00
rusefi afc0e0c974 #397 2017-04-21 11:44:15 -04:00
rusefi 22f2754034 sdCardSpiDevice 2017-04-11 19:25:31 -04:00
rusEfi 6998b8357c auto-sync 2017-01-05 21:12:06 -05:00
rusEfi 552c664a23 auto-sync 2017-01-03 06:05:22 -05:00
rusEfi cae31c8b67 auto-sync 2016-12-27 11:01:26 -05:00
rusEfi f879fba407 auto-sync 2016-11-03 23:02:58 -04:00
rusEfi 4e5a870f7f auto-sync 2016-10-10 16:02:39 -04:00
rusEfi fb5f7fc282 auto-sync 2016-10-10 15:02:10 -04:00
rusEfi e4bad0d9d0 auto-sync 2016-10-10 14:02:17 -04:00
rusEfi cb56563247 auto-sync 2016-09-14 19:03:00 -04:00
rusEfi 8d2ea7454c auto-sync 2016-09-14 01:01:57 -04:00
rusEfi 132f77cb38 auto-sync 2016-02-04 12:01:41 -05:00
rusEfi 42069e51ac auto-sync 2015-12-31 16:02:30 -05:00
rusEfi 0444659ac5 auto-sync 2015-10-31 21:01:32 -04:00