Commit Graph

626 Commits

Author SHA1 Message Date
Konstantin K. Oblaukhov 6fab9821eb Merge ICU (in GPIOTE mode) and PAL interrupts. 2019-04-09 16:25:54 +07:00
Konstantin K. Oblaukhov 6dc1071c9f EXT test rewritten.
Add default value for NRF5_PAL_PAD_TO_EVENT macro.
2019-04-09 15:16:36 +07:00
Konstantin Oblaukhov a9b84aa036 NRF5: Add support for PAL events, EXT driver removed. 2019-04-09 12:33:36 +07:00
José Simões f014b8da68 Fixes for USB MSD
- Fix return value on succesfull scsi_requestsense.
- Fix calls to LL SMT32 API for OTG2.
- Port changes from ChibiOS fatfs_diskio.
- Rework checks to allow simultaneous use of SD Card and USB MSD.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
2019-02-27 15:00:50 +00:00
Fabien Poussin 6076bdf27d Updating OpAmp code with calibration functions, cleaning. 2019-01-31 17:52:13 +01:00
Fabien Poussin e19ff53f02
Merge pull request #178 from AndruPol/master
added NRF52 pwm, icu, i2c, radio esb drivers
2019-01-09 02:51:33 +01:00
Fabien Poussin 91e635b08a Adding rudimentary OPAMP Driver 2019-01-08 20:02:45 +01:00
andru 2168085ac7 added NRF52 pwm, icu, i2c, radio esb drivers 2019-01-08 11:22:01 +03:00
Konstantin Oblaukhov d921781a45 KINETIS platform update for ChibiOS 18.2.x. 2018-11-20 09:53:30 +07:00
Konstantin Oblaukhov d200007a29 Reorganize KINETIS driver files 2018-11-20 09:53:22 +07:00
Konstantin Oblaukhov 0e6f501f80 Update all NRF5x makefiles and chconf.h.
Add missing halconf_community.h
2018-11-20 09:52:42 +07:00
Konstantin Oblaukhov f4d6d90989 NRF5x platform - new Makefiles. 2018-11-20 09:52:26 +07:00
Konstantin K. Oblaukhov ca35947f81 Reorganize NRF5x driver files. 2018-11-20 09:52:01 +07:00
Fabien Poussin 1391af251d
Merge pull request #170 from kajusK/qei
Added setting qei to value for stm32
2018-11-01 14:37:02 +01:00
Dave Flogeras 28a4beafd1 Fix for rccEnableCRC macro parameter.
This was removed in commit
ae7a4d40b84d8afc999691577210696f16e682f6#diff-7ddaa5ecc31109f41b7801dea2660b47

But I think is still necessary as the underlying rccEnableAHB macros
take parameter 'lp'.  It seems to work for the F0xx series, because its
rccEnableAHB ignores the 'lp'.  It is required when I tried to use the
CRC driver on a family that does require the 'lp' parameter in the lower
level macros.
2018-11-01 09:34:19 -03:00
Jakub Kaderka c4519da48a Added setting qei to value for stm32 2018-10-16 20:25:29 +02:00
Austin Morton 40769f9bd3 avoid using list_for_each_entry_safe when closing endpoints to prevent potential infinite loop
list_for_each_entry_safe is only safe when the current entry is being removed.
If other entries in the list could potentially be removed it can result in an infinite loop.

Because usbh_lld_ep_close blocks on each urb during iteration, it may give up its lock on
the system and allow an interrupt to remove a different urb from the list,
resulting in an infinite loop when the thread resumes.
2018-10-01 17:57:11 -04:00
Austin Morton ca79ff2e87 fix some compiler warnings around USBH_DEBUG_ENABLE conditions 2018-10-01 17:55:08 -04:00
Austin Morton 36ccd9f43a implement _ptxfe_int to support ISO and INT out transfers 2018-10-01 17:53:07 -04:00
Konstantin Oblaukhov ccfc910829 Update STM32 platform makefiles, add per-driver makefiles. 2018-09-24 20:25:22 +07:00
Unknown 6ac9e40dfa Fix STM32 LLD CRCv1 large data bug in DMA mode
* STM32 DMA can only handle 65535 bytes per transfer so larger data sets
   have to split up to be correctly handled when using DMA
2018-07-12 15:01:44 +02:00
Michael Walker 8f974a83a5 Adding missing interrupt vector for SDHC on MK66F18 MCU 2018-05-08 07:39:53 -07:00
Fabien Poussin 6cc0927c06
Merge pull request #158 from walkerstop/mike
Kinetis MK66F18 and PJRC Teensy 3.6 support
2018-05-07 16:58:30 +02:00
Michael Walker 619d45c0ff Fix MK66F18 compilation for the following HALs: Serial, I2C, EXT, ADC, GPT, PWM, SPI 2018-05-07 07:45:08 -07:00
Fabien Poussin dfd4708dbc
Merge pull request #156 from wiml/k64_support
Kinetis K64 and PJRC Teensy3.5 support
2018-05-05 19:23:19 +02:00
Michael Walker f4b640014d Correct register definitions for MK66F18 for LPTMR and FlexRAM 2018-05-03 15:17:52 -07:00
Michael Walker 8f7e1d18b9 Always use IRC48M clock for USB on MK66F18 2018-05-02 07:53:01 -07:00
Michael Walker 5bec0d7abc Always use IRC48M clock for USB on MK66F18 2018-05-02 06:49:29 -07:00
Michael Walker 0f3af19758 Disable MPU by default 2018-05-02 05:15:22 -07:00
Michael Walker 72b22c7f67 Merge branch 'master' into mike 2018-05-02 03:48:09 -07:00
Michael Walker 1fefdf78fe Remove duplicate code already in upstream master and add include dir 2018-05-02 03:47:26 -07:00
Michael Walker cd7559268d Merge branch 'master' into mike 2018-05-02 03:37:31 -07:00
Michael Walker 457afa6202 Remove duplication 2018-05-02 03:36:12 -07:00
Michael Walker 6d879f58f5 Merge remote-tracking branch 'upstream/master' 2018-05-02 03:33:23 -07:00
Michael Walker 0fbddccd80 disable voltage inrush regulator 2018-05-01 03:26:28 -07:00
Michael Walker 46233064c5 iasdfa 2018-05-01 01:07:46 -07:00
Michael Walker 7506c2a2c1 support Teensy 3.6 2018-05-01 00:46:42 -07:00
Michael Walker c7e0258666 Merge branch 'master' into mike 2018-05-01 00:37:57 -07:00
Michael Walker 4e9f077fb1 Enable Kinesis on newer ChibiOS 2018-05-01 00:26:06 -07:00
Michael Walker b0a7581067 Attempt at Teensy 3.6 support 2018-04-30 16:34:26 -07:00
marcoveeneman 708bb829ea Fixed some more warnings 2018-03-16 22:16:57 +01:00
Fabien Poussin 3add406135
Merge branch 'master' into update_tests 2018-03-15 12:51:14 +01:00
Fabien Poussin dabdfca04e
Merge pull request #148 from romainreignier/add_stm32L4
platform: add support for STM32L4 family
2018-03-15 12:07:33 +01:00
Fabien Poussin f8fbfbd248
Merge pull request #149 from marcoveeneman/improve_tiva_makefiles
Improve tiva makefiles
2018-03-15 12:06:59 +01:00
Fabien Poussin 424c7a2717 Fixed most testhal examples for STM32, updated configs using script. Fixed deprecated MS2ST calls. 2018-03-14 20:15:13 +01:00
Romain Reignier 6513490986 platform: add support for STM32L4 family 2018-03-12 21:33:11 +01:00
Romain Reignier e1e6f87481 hal_usbh: update to new Time macros 2018-03-12 21:20:32 +01:00
Romain Reignier 26a11251bf hal_fsmc: update to new RCC API 2018-03-12 21:20:32 +01:00
Romain Reignier 918149d48d hal: stm32: Keep track of latest STM32 RCC API
RCC API changed in 01/2018 so apply the changes.

Note that ae7a4d40b8 partially fixed the changes in QEI module but some were missing.
So update the other modules too.
2018-03-12 21:20:07 +01:00
marcoveeneman 32cdf41174 Fixed warnings triggered by -Wundef compile option 2018-03-12 19:04:54 +01:00
Romain Reignier b143e38a66 Keep track of STM32 RCC API
RCC API changed in 01/2018 so apply the changes.

Note that ae7a4d40b8 partially fixed the changes in QEI module but some were missing.
So update the other modules too.
2018-03-11 22:13:06 +01:00
marcoveeneman 4aa00494c2 Added shared variables to startup, board and platform makefiles 2018-03-10 14:58:45 +01:00
Fabien Poussin aa8c6cc4af
Merge pull request #145 from marcoveeneman/tiva_improvements
Various Tiva improvements
2018-03-08 21:42:35 +01:00
Fabien Poussin ae7a4d40b8 Fixes for STM32F0 testhal 2018-03-08 20:14:13 +01:00
Fabien Poussin 32f792087a
Merge pull request #139 from wiml/kinetis_sdhc
Add support for the Kinetis SDHC peripheral
2018-03-08 17:13:30 +01:00
Fabien Poussin 6927538038
Merge pull request #136 from wiml/k64_uarts
Added support for additional UARTs (up to six on the K64F).
2018-03-08 17:11:14 +01:00
Fabien Poussin 11066ebbd3
Merge pull request #143 from qmk/fix_kinesis_usb_data_sync
Fix Kinetis usb databank synchronization problems
2018-03-08 17:09:26 +01:00
marcoveeneman 9ef6a86060 Renamed GPIO IRQ priority definitions for the PAL driver 2018-03-07 20:38:10 +01:00
marcoveeneman 9a21d8e143 Removed EXT driver files 2018-03-02 18:55:22 +01:00
marcoveeneman 2977a2bc87 Implemented events to PAL driver for Tiva devices.
Most code from the EXT driver could be reused.
2018-03-02 00:09:45 +01:00
marcoveeneman f8b91dc682 Added number of GPIO pins to TM4C129x registry. 2018-03-02 00:07:02 +01:00
marcoveeneman 7057148a43 Fixed hal_st_lld still using old register access.
Registers are now accessed using the HWREG() macro.
2018-03-02 00:05:39 +01:00
marcoveeneman ff7d474ecd Updated platform.mk files to handle halconf.h files located in CONFDIR 2018-03-02 00:02:48 +01:00
marcoveeneman 927b3cf1b4 Fixed bug in pal_lld_writepad implementation 2018-03-01 23:13:01 +01:00
marcoveeneman cae865f0b9 Changed PAL driver so that TM4C123x devices GPIO blocks always use AHB. 2018-02-28 18:28:02 +01:00
Fred Sundvik b7f761313c Fix data usb data toggle sync problem
USB control transfers are structured as the following.
For incoming transfers
Setup (Data0 out)
Data (Data1/Data0 in) - starting with data 1
Status (Data1 out)

For outgoing transfers
Setup (Data0 out)
Data (Data1/Data0 out) - starting with data 1
Status (Data1 in)

The in buffers (device to host) are always correctly synchronized, since
they can always be reset to Data1 each setup packet without any
synchronization problems.

The problem occured for outgoing transfers (host to device). For
incoming transfers the data banks always alternates, and will
automatically stay in sync. Outgoing transfers also stays in sync when
there's an odd number of data packets. However when the number is even,
including zero, then the last packet received by the device will be
data0 and the next setup packet also has to be data0, so there's a
synchronization problem.

This itself is not a problem since data toggle synchronization(DTS) is
ignored for setup packets, however if the follwoing packet after that
is also an out packet, then the data bank will be wrong and the packet
dropped. In this case the USB spec don't allow sending a nack, so it
will only recover after a timeout, when the host tries to send a new
setup packet.

The old code tried to take care of this situation by reinitializing
both data banks when a setup packet is received. The problem is that the
next packet might already have been received or is in progress of being
received at this point, so the fixup comes to late. The new code does
the fixup when a status packet is about to be sent from the device to
avoid this problem.
2018-02-08 08:34:51 +02:00
Fred Sundvik 432bc1762f Add usb_lld_wakeup_host for Kinetis 2018-02-03 17:25:31 +02:00
Adrian 90b7d6bbd0 Added support for STM32F7
Tested only for STM32F746, other chipsets have to be checked.
2018-01-31 09:55:38 +01:00
Wim Lewis 7e51a3bcfa Use an interrupt instead of polling for simple commands.
Updated some comments and some trace statements.
2018-01-18 18:23:07 -08:00
Wim Lewis 48d924c24b Improved error handling: check the card's state before trying to abort
a failed data transfer; translate card status bits into HLD error
bits. Set BLKATTR_BLKCNT even when it's not being used, which seems to
avoid errors when alternating between multi-block and single-block
transfers. Some comments.
2018-01-18 01:33:04 -08:00
Wim Lewis ee3f7f1b85 Low-level driver for the Kinetis SDHC peripheral as found on the MK64FX512
and other members of the Kinetis family.
2018-01-06 03:17:53 -08:00
Wim Lewis 0df335ce45 Basic support for the (Motorola/Freescale/NXP) Kinetis MK64FX512 chip,
partially copied from the existing K20 support.
2018-01-06 03:09:58 -08:00
Dave Flogeras 5cc37ffd32 Add STM32F769 to FSMCv1 sdram driver 2017-12-14 16:25:15 -04:00
Wim Lewis c4eb6b4901 Added support for additional UARTs (up to six on the K64F).
Also moved some code that is duplicated per-UART into
local functions to reduce the amount of duplication.
2017-12-08 19:42:13 -08:00
marcoveeneman 19efef2f4a Fixed hal_i2c_lld.c 2017-11-24 22:25:12 +01:00
marcoveeneman ec4b244c51
Merge pull request #125 from marcoveeneman/tiva_add_uart
Add Tiva UART driver.
2017-11-23 21:37:24 +01:00
Fabio Utzig ab3f7c22cc
Merge pull request #133 from belak/k20x-mcg-c2
Fix for K20x startup
2017-11-04 17:32:26 -02:00
Kaleb Elwert 96413f3767 Fix for K20x startup 2017-11-04 10:41:06 -07:00
marcoveeneman 1cc2988040 Aligned the Tiva port to the SPI driver improvements. 2017-09-10 21:16:14 +02:00
marcoveeneman 5d77abe7f2 Initial version of the Tiva UART driver. 2017-09-10 19:43:04 +02:00
Fabien Poussin bec3eada37 Merge branch 'master' into usbh_devel 2017-08-08 17:29:28 +02:00
marcoveeneman e04751c836 Merge pull request #120 from marcoveeneman/tiva_add_adc
Tiva add ADC driver
2017-08-08 16:23:00 +02:00
Diego Ismirlian 6a9d91cb1a USBH: STM32 LLD: break LS activity detect loop if port is disabled 2017-08-07 17:47:52 -03:00
Diego Ismirlian 02585210d1 USBH: STM32 LLD: various improvements
- general cleanup
- implemented workaround to undocumented erratum (the OTG core may
report successful enabling of port when connecting a low-speed device,
but really it generates no traffic and remains in a "dumb" state)
- improved handling of disconnection of devices (avoid submitting URBs
if the port is disabled)
2017-07-31 18:48:23 -03:00
Diego Ismirlian dee22cee18 USBH: remove unnecessary reschedules and add necessary ones 2017-07-16 20:01:50 -03:00
Diego Ismirlian 4026bc900d USBH: Correct bug in LLD 2017-07-16 18:19:06 -03:00
Diego Ismirlian c938866844 USBH: moved definition of driver to LLD 2017-07-09 18:29:44 -03:00
marcoveeneman 801b264b75 Fixed ADC driver.mk 2017-07-03 23:03:37 +02:00
marcoveeneman f8b656a810 Added missing driver.mk file for the ADC driver. 2017-07-03 22:30:46 +02:00
marcoveeneman 884dbaeabc Improved ADC driver and ADC testhal application. 2017-07-03 22:24:07 +02:00
marcoveeneman ffd9d3fd90 Initial ADC driver and testhal application for TM4C123x. 2017-07-03 22:23:55 +02:00
Diego Ismirlian d2c155b4cf USBH: moved declaration of driver to LLD 2017-06-09 11:07:20 -03:00
Diego Ismirlian 78da479955 USBH: STM32 lld, activate correction of unexpected length 2017-06-08 12:37:24 -03:00
Diego Ismirlian 61c3a28398 Mass license dates update 2017-06-05 11:04:30 -03:00
Diego Ismirlian a77ab485fb Remove redundant hal_stm32_otg.h file
The correct version is already present in ChibiOS
2017-06-05 10:27:20 -03:00
Diego Ismirlian 5ecaf7722b USB Host fixes
- Cleaned up alignment macros for GCC & IAR
- Corrected EP halt and Clear halt behaviours
- Initialization of class drivers by USB Host main driver
- Minor cosmetic fixes
- Updated USB_HOST testhal app
2017-06-05 10:18:45 -03:00
Andres Vahter c5be9cd85b Add checks to QEI if STM32 TIM is already used 2017-06-05 09:25:37 +03:00
marcoveeneman 2841fd88cd Updated license headers 2017-04-20 19:47:50 +02:00
marcoveeneman cfbd190b1e Fixed Tiva low level driver @file documentation. 2017-04-18 23:17:00 +02:00
marcoveeneman 3e3db4cf24 Improved documentation of the Tiva serial driver. 2017-04-18 23:06:30 +02:00
marcoveeneman e712f914ba Implemented advanced buffering support for the Tiva serial driver. 2017-04-18 22:55:01 +02:00
marcoveeneman 01423b08c2 Changed the flag set when a serial buffer is full. 2017-04-18 22:41:25 +02:00
marcoveeneman 9617145f21 Added driver.mk file for each low level peripheral driver. 2017-04-18 22:20:21 +02:00
Romain Reignier 15517ffbd0 [DMA2D, LTDC] Removing ch.h dependencies. Fix #111. 2017-02-28 22:59:28 +01:00
Fabien Poussin 4ffde4b17e [Comp] Adding interrupt functions, updating example. 2017-02-09 12:30:21 +01:00
Fabien Poussin fd89254b0d [Comp] Adding support for STM32F0. 2017-02-07 16:08:08 +01:00
Fabien Poussin 8b7e318d78 [Comp] Adding more defines 2017-02-07 15:46:43 +01:00
Fabien Poussin 1d10f06ab4 [Comp] Adding init, helper defines. 2017-02-07 15:37:20 +01:00
Fabien Poussin f4687bd298 [Comp] Cleaning example, removing dependencies and adding checks. 2017-02-07 15:20:28 +01:00
Fabien Poussin 7059c87ab4 [COMP] Fixing headers, missing includes. 2017-02-07 10:58:11 +01:00
Fabien Poussin 86428716d5 Adding COMP Driver. 2017-02-06 20:09:28 +01:00
Fabien Poussin 11e949d81b [Timcap/Eeprom] Removing ch.h dependencies. 2017-02-06 13:32:36 +01:00
barthess c09968f967 [STM32, NAND] Fixed #elif without expression 2017-01-24 12:15:04 +03:00
barthess 88c55f1aaa FSMC NAND improvements.
1) Implemented 16 bit bus width support
2) Added workaround errata in STM32
2017-01-17 21:10:54 +03:00
barthess 3e8fdd762a Merge branch 'master' of github.com:ChibiOS/ChibiOS-Contrib 2017-01-06 11:06:52 +03:00
barthess 779ea88be7 NAND. Added reset function. 2017-01-06 11:06:40 +03:00
Fabien Poussin 0135ff7dd3 Merge pull request #107 from pl4nkton/stm32_fixes
Stm32 fixes
2017-01-04 10:47:39 +01:00
barthess 2b9cfccc76 Merge branch 'master' of github.com:ChibiOS/ChibiOS-Contrib 2016-12-09 18:04:38 +03:00
barthess 53d3fd07f3 FSMC. Sync mode improvements.
1) Control registers writes reordered in init sequence to eliminate
incorrect output clock frequnency in short period after CCLKEN bit
set and B(W)TR registers set.
2) Added reset of CCLEN bit in stop procedure.
2016-12-09 18:00:28 +03:00
Nicolas Reinecke 546ac1d584 STM32: fix USB HOST HS when cpu is in sleep mode 2016-12-05 11:47:32 +01:00
Peter c7d33767e0 change qei types to int16_t 2016-12-05 11:37:44 +01:00
Nicolas Reinecke 580af16b82 usbh: add otg stepping 2 code 2016-12-05 11:37:44 +01:00
Nicolas Reinecke de0c3e70c6 usbh: cleanup 2016-12-05 11:37:44 +01:00
Fabio Utzig bc6033e829 Merge pull request #104 from sdalu/pwmfix
Use active wait and perform extra toggle if needed.
2016-11-24 20:23:05 -02:00
Stephane D'Alu d2b5649b0f fixed bad commit 2016-11-24 21:50:14 +01:00
Stephane D'Alu f2ff03a634 Merge branch 'pwmfix' of https://github.com/sdalu/ChibiOS-Contrib into pwmfix
Conflicts:
	os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c
2016-11-24 21:48:41 +01:00
Stephane D'Alu 13bb299950 fixed style 2016-11-24 21:47:31 +01:00
Stéphane D'Alu 0c9313ee3d Wrong roundup for prescaler 7 2016-11-24 12:07:58 +01:00
Stephane D'Alu 5c85f5a7ce reducing to one magical value, putting reference to nrf51-pwm-library 2016-11-24 12:00:11 +01:00
marcoveeneman 7f7fe88e14 Merge pull request #100 from marcoveeneman/tiva-improvements
Tiva improvements
2016-11-21 22:26:49 +01:00
Stephane D'Alu 7ea44ed39c Use active wait and perform extra toggle if needed. (same as the nrf_pwm) 2016-11-20 13:25:25 +01:00
marcoveeneman 3ad1b1b07c Deleted custom Tiva CMSIS headers. 2016-11-11 23:01:39 +01:00
marcoveeneman ed9c079d62 Fixed the MAC driver.
While moving the MAC driver to TivaWare the addresses used in the HWREG macros were incorrect. The base address was missing.
2016-11-11 23:01:07 +01:00
Nicolas Reinecke 00f18c55cc whitespace 2016-11-08 21:07:23 +01:00
Nicolas Reinecke a6158cef3c add STM32F7 FMC write FIFO disable bit 2016-11-08 21:07:23 +01:00
Uladzimir Pylinski 8f00b3af4d Merge pull request #98 from kimmoli/CRC
STM32 CRC : Fix asserts
2016-11-08 19:49:14 +03:00
Kimmo Lindholm 37700daf23 STM32 CRC : Fix asserts 2016-11-05 20:45:10 +02:00
marcoveeneman 79fc9cfe5d Added checks and defines for device revisions.
This can be used for errata workarounds in the drivers.
2016-10-30 14:38:02 +01:00
marcoveeneman b783488ec6 Added check for a valid device in the TM4C129x series. 2016-10-30 14:37:02 +01:00
marcoveeneman 548c3592db Fixed errors introduced by line feature. 2016-10-30 14:13:31 +01:00
marcoveeneman 568ed8d0ee Some improvements. 2016-10-30 12:27:54 +01:00
marcoveeneman 25d71d9982 Added line support in Tiva pal driver. 2016-10-30 12:16:21 +01:00
marcoveeneman a45d952fad Merge pull request #96 from marcoveeneman/tiva-use-tivaware
Tiva port use TivaWare
2016-10-30 09:35:00 +01:00
marcoveeneman 24de854c90 Replaced custom register bitfield macros by TivaWare bitfield macros. 2016-10-28 00:03:49 +02:00
marcoveeneman 0e86715267 Replaced custom register bitfield macros by TivaWare bitfield macros. 2016-10-27 23:44:14 +02:00
marcoveeneman 223f465890 Replaced custom register bitfield macros by TivaWare bitfield macros. 2016-10-27 22:55:17 +02:00
marcoveeneman 94fe96d3ae Updated pwm_lld to use TivaWare. 2016-10-26 21:09:34 +02:00
barthess 709addd02d Updated include guards 2016-10-17 17:23:16 +03:00
marcoveeneman 8881004050 Updated spi and udma lld to use TivaWare. 2016-10-11 21:21:30 +02:00
marcoveeneman 2c2c3c567c Updated wdg_lld to use TivaWare. 2016-10-08 22:14:45 +02:00
marcoveeneman 9fd36443b4 Updated i2c_lld to use TivaWare. 2016-10-08 22:03:56 +02:00
marcoveeneman f66996bd7d Updated gpt_lld to use TivaWare. 2016-10-08 21:30:40 +02:00
marcoveeneman b6d9cd409f Updated ext_lld to use TivaWare. 2016-10-08 21:08:40 +02:00
marcoveeneman 51abe9fbeb Updated mac_lld to use TivaWare. 2016-10-08 20:46:03 +02:00
marcoveeneman 8f9b3b4302 Fixed wrong definitions in st_lld.h 2016-10-08 20:21:29 +02:00
marcoveeneman 9b670d684f Use new PART_<device> defines for tm4c129x registry and isr. 2016-10-08 20:20:21 +02:00
marcoveeneman 3e069788d9 Updated st_lld to use TivaWare.
Tickless mode is working again.
Fixed st_lld_get_counter reading the wrong register.
2016-10-08 19:51:16 +02:00
marcoveeneman f8d62560b7 Improve serial driver. 2016-10-08 18:05:57 +02:00
marcoveeneman eceaf26f21 st driver only works in periodic mode for now. 2016-10-08 17:57:37 +02:00
marcoveeneman 6675bf01e1 Updated serial driver to use new register access. 2016-08-30 18:43:47 +02:00
marcoveeneman d5476e6ce6 Updated pal driver to use new register access. 2016-08-30 18:43:19 +02:00
marcoveeneman 5a1331c09f Use new PART_<device> defines. 2016-08-30 18:41:10 +02:00
marcoveeneman 3d661a9185 Fixed typo in TM4C129x platform makefile. 2016-08-29 22:14:42 +02:00
marcoveeneman 220619763e Updated hal_lld.c files to use the new TivaWare macros. 2016-08-24 20:43:29 +02:00
barthess cc82c5c5c0 Merge branch 'master' of github.com:ChibiOS/ChibiOS-Contrib 2016-08-18 11:26:13 +03:00
barthess 80b50d3935 [STM32 NAND] Code cleanup. 2016-08-18 11:25:08 +03:00
awygle 66ee156aa4 Merge pull request #81 from awygle/adc
MSP430X ADC12 Support
2016-08-17 00:15:02 -05:00
barthess e1601e0a7d [STM32 NAND] Deleted ugly hack with EXTI interrupt instead of NAND one 2016-08-16 18:00:59 +03:00
barthess eff62993d3 [STM32 NAND] Deleted unused defines. 2016-08-16 16:20:47 +03:00
marcoveeneman b153796a5d Merge pull request #94 from marcoveeneman/tiva-improvements
Tiva smart build support
2016-08-11 09:24:52 +02:00
marcoveeneman 1853428c80 Implemented smart build for Tiva platform. 2016-08-09 20:42:31 +02:00
Fabio Utzig 569aa39fba Merge pull request #91 from sdalu/nrf52832
Nrf52832
2016-07-17 21:30:35 -03:00
flabbergast db3057e1fc [KINETIS] Add saved_state to USB driver. 2016-07-17 20:49:48 +01:00
barthess c7afdebe33 Added room for STM32F7x 2016-07-14 13:18:21 +03:00
Stephane D'Alu 194e5ec59c PSEL renamed in nrf52 2016-07-11 23:17:26 +02:00
Stephane D'Alu 8eabdabb05 moved i2c to LLD 2016-07-11 23:09:07 +02:00
Stephane D'Alu 5923ee5d50 moved spi to LLD 2016-07-11 22:42:52 +02:00
Stephane D'Alu 89b707fd7c changed asm to __asm. (is it right?) 2016-07-11 22:42:25 +02:00
Stephane D'Alu 539338100f deal with write buffer 2016-07-11 22:11:27 +02:00
Stephane D'Alu 52107b2ccb moved QEI to LLD 2016-07-10 21:46:46 +02:00
Stephane D'Alu e5430a6f71 todo 2016-07-10 19:30:42 +02:00
Stephane D'Alu 316118b648 removed prototype for undefined function nrf51_clock_init 2016-07-10 19:19:30 +02:00
Stephane D'Alu 321ec844af moved GPT to LLD 2016-07-10 19:15:46 +02:00
Stephane D'Alu 5d1b4d1d77 Use OUT instead of IN to when toggling pad 2016-07-10 19:13:29 +02:00
Stephane D'Alu 49afe683a0 assert that watchdog can't be restarted 2016-07-10 14:10:58 +02:00
Stephane D'Alu 9cf4f9dfc7 moved wdg to LLD 2016-07-10 13:35:31 +02:00
Stephane D'Alu 7e8e69551f moved wdg to LLD 2016-07-10 13:35:08 +02:00
Stephane D'Alu e5da7dbd39 use anonymous struct, fixed used og wrong vector interrupt 2016-07-10 13:31:49 +02:00
Stephane D'Alu 7150786277 fixed pause behaviour (paused if set to 0 not 1) 2016-07-10 12:50:42 +02:00
Stephane D'Alu 8feec2e235 removed useless field power_on_write 2016-07-10 12:08:54 +02:00
Stephane D'Alu 6423c3dabe moved rng to LLD directory.
removed rng power control (doesn't exist in nrf52, wasn't documented in nrf51)
renamed peripheral to start at 0
2016-07-10 12:04:39 +02:00
Stephane D'Alu 3db81f7f03 adding note on RTC0 and TIMER0 as systicks 2016-07-10 11:15:20 +02:00
Stephane D'Alu e0d39de32f Use RTC1 as default system ticks as PPI has pre-programmed channels for RTC0 2016-07-10 11:11:50 +02:00
Stephane D'Alu 5259158d17 renamed NRF51_* to NRF5_* 2016-07-10 10:48:04 +02:00
Stephane D'Alu ba393d3ae1 correct clock speed 2016-07-10 10:47:45 +02:00
Stephane D'Alu 1908537785 use constantes 2016-07-10 00:23:12 +02:00
Stephane D'Alu 7557cbac22 serie -> series 2016-07-10 00:10:48 +02:00
Stephane D'Alu 5805e10f74 NRF52832 implementation 2016-07-09 23:57:48 +02:00
Stephane D'Alu f78e2ae7d4 use IOPORT1 instead of NRF_GPIO 2016-07-08 21:12:12 +02:00
Stephane D'Alu c519f273db updated to SDK11 2016-07-08 13:54:37 +02:00
Stephane D'Alu 707b3a2f97 renamed port to NRF5 to make room for NRF52832 chip 2016-07-08 12:58:25 +02:00
Uladzimir Pylinski 0375554e95 Merge pull request #87 from sdalu/qei
qeiAdjustI
2016-07-08 00:26:19 +03:00
Stephane D'Alu 022cad0452 code cleanup, fixed testhal 2016-07-07 23:17:36 +02:00
Stephane D'Alu 60ce974437 Merge branch 'master' into qei 2016-07-07 21:31:22 +02:00
Stephane D'Alu f75abd1037 added qeiAdjustI. added new field and checking in STM32 2016-07-07 21:25:51 +02:00
Uladzimir Pylinski c7f7b70596 Merge pull request #85 from sdalu/qei
Merged QEI driver for NRF51
2016-07-07 21:58:53 +03:00
Stephane D'Alu 9c88423d66 move functions to hal_qei.*, fixed comments 2016-07-07 20:41:09 +02:00
marcoveeneman 81c70f5ce6 Organized Tiva LLD folder. 2016-07-06 20:12:03 +02:00
marcoveeneman 0131027151 Merge pull request #86 from marcoveeneman/master
Various Tiva fixes
2016-07-05 23:15:35 +02:00
Stephane D'Alu af18f7d43f conditionally add support for overflow variant 2016-06-29 21:59:39 +02:00
Stephane D'Alu 01874bedf4 changed counter type to int32_t 2016-06-29 21:33:29 +02:00
Stephane D'Alu e1e600b5ad conditionnaly compile accumulator overflow notification 2016-06-29 21:27:56 +02:00
Stephane D'Alu a8b2364267 cleanup 2016-06-29 21:11:38 +02:00
Stephane D'Alu b20bf874d0 created more _lld_ fonctions. 2016-06-29 20:14:40 +02:00
Stephane D'Alu 5fee893778 conditionally include support for LED 2016-06-29 12:26:22 +02:00
Stephane D'Alu dde47ff1ab renamed QDEC1 to QDEC0, misc... 2016-06-29 12:14:15 +02:00
Stephane D'Alu 7b8e263f8c info 2016-06-28 22:35:28 +02:00
Stephane D'Alu 7cb533cd20 cleanup 2016-06-28 22:31:24 +02:00
Stephane D'Alu 3cdd1360d4 QEI driver for NRF51 2016-06-28 21:53:12 +02:00
Andrew Wygle d9ee72504f Adds ADC12 support to MSP430X port.
Adds support for the MSP430X's 12-bit ADC peripheral, as well as
reasonably complete testing of same.

Also includes fixes for several bugs and cleanup of the DMA peripheral,
which used ch calls rather than osal calls and was unclear about what
contexts its methods could be called from.
2016-06-05 13:51:11 -07:00
Andrew Wygle 456702ee87 Cleaned up MSP430X port to match recent changes to ChibiOS mainline.
Also fixed a couple of bugs identified as part of the refresh.
2016-06-05 13:51:10 -07:00
Fabio Utzig 394a779ade Merge pull request #76 from sdalu/priority
Enable priority validation, Fixed priorirty (nRF51 use a 2bit priority)
2016-05-29 14:18:10 -03:00
Fabio Utzig 3597ad7ed5 Merge pull request #77 from sdalu/pwm_ppi
allow use of GPIOTE/PPI in PWM to drive gpio pin
2016-05-29 14:17:02 -03:00
flabbergast 3cde591bd2 [KINETIS] Fixes for kernel-less builds. 2016-05-20 19:16:47 +01:00
Stephane D'Alu 91281015ab allow use of GPIOTE/PPI to drive gpio pin (without callback)
changed value of PAL_NOLINE to -1
2016-05-18 16:04:10 +02:00
Stephane D'Alu bc1d2835e8 Enable priority validation, Fixed priorirty (nRF51 use a 2bits priority) 2016-05-17 18:15:47 +02:00
Uladzimir Pylinski aefe1f951b Merge pull request #72 from pl4nkton/add_qei_driver
Add qei driver
2016-05-16 20:56:46 +03:00
Nicolas Reinecke 4a36fb944b qei driver: fix potential overflow in qeiUpdateI
when quiUpdate isn't called for while an cnt(uint16_t) is above 32767
delta(int16_t) can overflow.
2016-05-15 20:21:20 +02:00
Nicolas Reinecke 040c8c9ad2 qei driver: change copyright 2016-05-15 20:21:20 +02:00
marcoveeneman 0e86736605 Tiva. Wait for peripheral ready after enabling its clock.
This was already done for some peripherals, but not for GPT, I2C, PWM and UART.
2016-05-12 23:45:41 +02:00
marcoveeneman 32e712aae1 Tiva. UART. Fixed enabling and disabling UART modules 1-7. 2016-05-11 20:40:28 +02:00
Stephane D'Alu 9308e90aff added PAL_LINE support
follow template order
2016-05-09 15:31:42 +02:00
awygle de959be01f Merge pull request #70 from awygle/msp430x
Added SPI driver and test code to MSP430X port
2016-05-08 22:10:29 -07:00
Andrew Wygle dfd93d512b Added SPI driver and test code to MSP430X port
A DMA-driven SPI driver and fairly comprehensive test code for SPI
on the MSP430X port. Required some cleanup to the DMA and Serial
drivers as well. Includes some reformatting to be more in line with
ChibiOS coding standards.
2016-05-08 17:59:09 -07:00
Fabio Utzig 83569a1248 Merge pull request #69 from sdalu/pwm
PWM support for nRF51
2016-05-08 21:15:36 -03:00
Nicolas Reinecke 6f67aa78c3 add STM32 qei (quadrature encoder interface) driver
Code from tinito in forum thread:
http://forum.chibios.org/phpbb/viewtopic.php?f=14&t=685

Updated to chibios trunk.
2016-05-08 18:27:11 +02:00
flabbergast 7d99206f05 [KINETIS] PAL driver: implement PAL_LINE. 2016-05-08 09:09:43 +01:00
Stephane D'Alu aad6da5b99 old C style 2016-05-05 21:38:44 +02:00
Stephane D'Alu 74f2322132 PWM driver 2016-05-05 20:41:51 +02:00
awygle cf02c79b5a Merge pull request #68 from awygle/msp430x
MSP430X DMA Support, EXP430FR6989 Demo + Makefile Updates
2016-05-04 23:47:33 -07:00
marcoveeneman fe1d3f2114 Merge pull request #55 from marcoveeneman/tiva-wdg-driver
Tiva WDG driver
2016-05-02 15:53:26 +02:00
Nicolas Reinecke f93efb407d f4 platform.mk: reoder hardware 2016-05-01 02:33:23 +02:00
Nicolas Reinecke 509816147d fix whitespace 2016-05-01 02:33:07 +02:00
Nicolas Reinecke 409a3f226d FSMC: fix build on stm32f1x and stm32f3
STM32F1,3 has no fsmc reset function so make it optional
2016-04-29 14:14:51 +02:00
marcoveeneman d4cb8ca216 Mass license update. 2016-04-28 22:07:07 +02:00
Nicolas Reinecke 14dc50c95d add stm32f1xx port 2016-04-28 17:22:41 +02:00
Fabio Utzig 5c02f23706 Merge pull request #62 from flabbergast/i2c
[KINETIS] I2C update (timeouts, KL27Z)
2016-04-27 19:03:01 -03:00
flabbergast 9107b150b0 [KINETIS] Add I2C workaround for KL27Z. 2016-04-25 11:53:55 +01:00
flabbergast 2897589bf3 [KINETIS] Fix I2C clock divisor computation. 2016-04-25 11:53:55 +01:00
flabbergast 0a37322265 [KINETIS] I2C driver: implement timeout. 2016-04-25 11:53:55 +01:00