Commit Graph

444 Commits

Author SHA1 Message Date
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
flabbergast fa9644e655 [KINETIS] Slightly rewrite and comment i2c driver. 2016-04-25 11:53:48 +01:00
bunnie 469e05d445 [KINETIS] fix ADC LLD bug, grpp access after clear 2016-04-24 18:12:19 +01:00
Fabio Utzig b72393fff0 Merge branch 'master' into fix-nrf51-port 2016-04-10 21:10:47 -03:00
Fabio Utzig 5323be7640 Merge branch 'master' into fix-nrf51-port 2016-04-10 21:09:36 -03:00
Uladzimir Pylinski 2071319b33 Merge pull request #52 from awygle/msp430x
Initial MSP430X Port.
2016-04-09 15:58:32 +03:00
Jonathan Struebel 62ffe525e0 [KINETIS] Fix I2C TX to not wait for RX if requested rxbytes is 0 2016-04-08 19:24:47 -07:00
Andrew Wygle fd20f0fa17 Initial MSP430X Port.
This port includes hal, pal, serial, and st drivers. It supports both
large and small model code and data for MSP430X-class CPUs. It has only
been tested on the EXP430FR5969 LaunchPad board.
2016-04-08 01:46:32 -07:00
barthess 9d74dd2661 STM32 mass update to current naming convention in ChibiOS 2016-04-07 16:39:12 +03:00
marcoveeneman bae745fd33 Tiva. WDG. Added watchdog driver to tm4c129 platform.mk. 2016-04-06 21:33:16 +02:00
marcoveeneman 46d9d3c97d Tiva. WDG. Added missing declarations for watchdog peripherals. 2016-04-06 21:32:13 +02:00
marcoveeneman eb960077b8 Tiva. WDG. Added watchdog low level driver. 2016-04-06 21:20:35 +02:00
marcoveeneman beff5671d4 Tiva. WDG. Added missing declarations for watchdog peripherals. 2016-04-06 21:19:37 +02:00
Fabio Utzig b86af2c09f Merge pull request #50 from utzig/fix-tiva-port
Fix tiva port
2016-04-05 19:12:27 -03:00
Fabio Utzig 99c3815a52 Fix testhal demos (except for RNG) 2016-04-04 23:37:20 -03:00
Fabio Utzig 653c72ccc3 Fix tiva demos 2016-04-04 21:35:11 -03:00
Fabio Utzig 39b332e3dd Fix header guard style 2016-04-04 19:50:15 -03:00
Fabio Utzig 1c1fd7d294 Fix hal files naming scheme 2016-04-04 19:44:42 -03:00
Fabio Utzig 4c5a09e727 Fix headers guards + style fixes 2016-04-04 19:36:24 -03:00
Fabio Utzig dd9ca763bd Move files to new naming std 2016-04-04 19:22:07 -03:00
Fabio Utzig 0bafaa0473 Fix style and warnings using timer0 2016-04-04 19:15:45 -03:00
flabbergast 496e7f5e89 [KINETIS] Rename header guards in HAL. 2016-04-04 09:26:36 +01:00
flabbergast 51703da9df [KINETIS] Rename HAL LLD files. 2016-04-04 09:19:44 +01:00
Fabio Utzig 73e00fb69c Fix API usage in serial driver 2016-04-03 22:56:30 -03:00
flabbergast d5a880807b [KINETIS] HAL cleanup/update.
New entries in kinetis_registry.h to support new MCUs.
Moved registers to ext/CMSIS, like it is done for STM32.
Move the same drivers to LLD.
Add USB driver.
2016-03-22 17:51:46 +00:00
flabbergast 9281b8f751 Merge remote-tracking branch 'utzig/kinetis' into kinetis 2016-03-21 19:18:01 +00:00
barthess 18b41efefa NAND. Cosmetical improvement 2016-03-17 12:03:18 +03:00
barthess 04c11df0b2 Updated some testhal projects to new ChibiOS code 2016-03-15 10:19:56 +03:00
Fabio Utzig 0bbef8ed17 [KINETIS] Fix platform driver references to contrib 2016-03-08 07:09:40 -03:00
Fabio Utzig b67ecdfeca [KINETIS] Move from main repo to contrib 2016-03-07 12:33:00 -03:00
Stephane D'Alu 9ff3819e4b hide shell errors 2016-02-21 17:10:09 +01:00
Stephane D'Alu e9a1a01f90 Merge branch 'master' into rng
Added haltest

Conflicts:
	os/hal/hal.mk
	os/hal/include/hal_community.h
	os/hal/src/hal_community.c
2016-02-21 17:03:19 +01:00
Fabien Poussin 499335cd61 TIMCAP: Initial commit 2016-02-16 00:51:22 +01:00
Fabien Poussin 771feb098d USB-Host: Initial commit 2016-02-15 23:34:25 +01:00
Fabio Utzig fac5a0d26c Merge pull request #33 from sdalu/rtc
RTC for System Ticks
2016-02-15 18:12:37 -02:00
Stephane D'Alu 5ef170def2 Now ST can also use RTC1. Added NRF51_ST_PRIORITY for interrupts.
Default values are changed if SOFTDEVICE_PRESENT is defined
2016-02-14 17:53:22 +01:00
Stephane D'Alu a1c71cd5a0 st handle compile-tie error checking instead of gpt, as gpt is included first 2016-02-14 16:09:37 +01:00
Stephane D'Alu 709c28c929 Merge branch 'master' into rng
Conflicts:
	os/hal/ports/NRF51/NRF51822/platform.mk
2016-02-09 19:12:08 +01:00
Stephane D'Alu 9a6ca01c85 cleanup, added comments 2016-02-09 18:54:05 +01:00
Stephane D'Alu b7e24328d5 fixed typos 2016-02-09 17:40:44 +01:00
Stephane D'Alu d27b447106 cleanup 2016-02-09 00:55:35 +01:00
Stephane D'Alu d9a3d8493c Random Number Generator driver 2016-02-08 23:45:59 +01:00
Stephane D'Alu 879e031a23 add driver to plateform.mk 2016-02-06 22:56:30 +01:00
Stephane D'Alu c4d7b8d178 added LFCLK and HFCLK frequencies 2016-02-06 22:52:33 +01:00
Stephane D'Alu a36b59eacd s/template/NRF51822/g 2016-02-06 20:14:32 +01:00
Stephane D'Alu ed2a1f3e5c changed author 2016-02-06 20:13:08 +01:00
Stephane D'Alu 9740836e61 Added watchdog WDT 2016-02-06 20:11:26 +01:00
Stephane D'Alu ed35ba3818 exclude TIMER0 from GPT if already used for system ticks 2016-02-06 15:16:48 +01:00
Stephane D'Alu bc3392813c protect ChibiOS specific sanity check 2016-02-06 13:32:45 +01:00
Stephane D'Alu 3679d70539 fixed compile time error detection for deltatime 2016-02-06 02:44:52 +01:00
Stephane D'Alu f35c8058ef deal with 16bits systime_t 2016-02-06 02:41:50 +01:00
Stephane D'Alu 90800edb90 fixed tickless for RTC, removed it for TIMER 2016-02-06 02:15:26 +01:00
Stephane D'Alu 3c6756556d try to implement tick-less mode 2016-02-06 02:02:09 +01:00
Stephane D'Alu 8fe62a0f90 use mcuconf.h with NRF51_SYSTEM_TICKS to select the timer source (TIMER or RTC) 2016-02-05 23:54:23 +01:00
Stephane D'Alu 80af295f27 start by a stop 2016-02-05 19:03:47 +01:00
Stephane D'Alu a3a0be11dc moved from HFCLK TIMER to RTC LFCLK 2016-02-05 18:58:31 +01:00
Fabio Utzig 5af8452153 Merge pull request #31 from sdalu/mk
Smart build enable
2016-02-03 19:25:20 -02:00
Stephane D'Alu f78e539f5e smart build enable 2016-02-03 21:48:43 +01:00
Stephane D'Alu 5740779b7b updated comments 2016-02-02 22:03:37 +01:00
Stephane D'Alu 3c7efdb21f cleaned up PINs configuration and selection 2016-02-02 21:58:31 +01:00
Stephane D'Alu 137836fb19 hardware flow control from nRF51 2016-02-02 13:34:47 +01:00
barthess c757be0c16 Fixed typo 2015-10-14 17:52:47 +03:00
barthess a2f9bc469a FSMC code cleanup 2015-10-14 17:46:40 +03:00
Stephen Caudle cd2787ea88 Add GPT driver for nRF51 2015-09-27 09:28:27 -04:00
Stephen Caudle 9ad49f5077 Add missing braces and fix copyright 2015-09-14 11:08:53 -04:00
Stephen Caudle 2e554f3ef5 Add ADC driver for nRF51 2015-08-31 23:16:51 -04:00
Fabio Utzig 40014ce2c5 Merge I2C driver 2015-08-30 19:08:17 -03:00
barthess 74065b233a Fixed rest of paths in build scripts. 2015-08-24 16:26:22 +03:00
Uladzimir Pylinski 1baa777a7e Merge pull request #23 from fpoussin/master
Makefile paths rework
2015-08-24 15:19:16 +03:00
Stephen Caudle 69d3493ce6 Add I2C support for nRF51 2015-08-20 22:45:21 -04:00
Fabio Utzig e3d9163628 Merge pull request #16 from doceme/nrf51-cleanup-serial
Cleanup nRF51 serial driver
2015-08-20 17:20:24 -03:00
Fabien Poussin 48a03708ff Changed the way files are included to a more convenient way. 2015-08-20 17:47:21 +02:00
Michael Spradling 316c3b4825 Add CRC Driver
This patch includes a high level and two low level drivers.

The high level driver is enabled with flag HAL_USE_CRC

The low level drivers include:
    * Hardware CRC for the STM32 cortex processor lines.(when supported)
        * Enabled with flag STM32_CRC_USE_CRC1
        * DMA is enabled with CRC_USE_DMA
          * SYNC api will use DMA, but put calling thread to sleep
          * ASYNC api enabled.
        * DMA Disabled
          * SYNC api spin while calculating CRC
          * ASYNC api disabled
    * Software CRC (3 modes)
        * CRCSW_CRC32_TABLE - Enables crc32 with lookup table.
        * CRCSW_CRC16_TABLE - Enables crc16 with lookup tables.
        * CRCSW_PROGRAMMBLE - Enables any crc done with computation.
          * Can calculate any crc configuration.
        * CRC_USE_DMA obviously not support with software CRC
2015-08-16 01:26:07 -04:00
Stephen Caudle e2da880b5f Cleanup nRF51 serial driver
Use values from bitfields header. Also convert notify1 function to be
non-blocking, which seems to be how most of the other serial drivers are
implemented.
2015-08-10 22:44:44 -04:00
Stephen Caudle 2ca7c90917 Add EXT driver for nRF51 2015-08-09 17:18:46 -04:00
Fabio Utzig f98110c6f4 Merge pull request #19 from doceme/nrf51-spi
Add SPI support for nRF51
2015-08-06 10:47:23 -03:00
barthess e7a3df6c18 Improved FSMC.
SRAM configuration is much more flexible now.
2015-08-04 13:30:01 +03:00
marcoveeneman 94096f9972 Merge branch 'tiva_i2c_fix' 2015-07-29 16:54:22 +02:00
Stephen Caudle 6202fcbb8b Add SPI support for nRF51 2015-07-27 22:42:45 -04:00
Stephen Caudle 91d82fc631 nRF51: Remove unnecessary direction setting 2015-07-26 22:54:46 -04:00
Stephen Caudle f91f5a5c57 Cleanup nRF51 PAL driver 2015-07-25 22:16:19 -04:00
Stephen Caudle e82536b815 Add nRF51 bitfield header file 2015-07-23 23:41:06 -04:00
Andrea Zoppi 58f5fd1d72 Removed dependency on ST library for SDRAM 2015-06-28 22:53:44 +02:00
Andrea Zoppi b872d9409c Minor changes 2015-06-27 18:34:33 +02:00
Andrea Zoppi ee1353a305 Old definitions removed 2015-06-27 18:32:58 +02:00
TexZK 542d79ef90 LTDC and DMA2D ported to ChibiOS/RT 3
+ LTDC and DMA2D peripheral drivers
+ LTDC and DMA2D demo project
2015-06-24 21:24:45 +02:00
barthess 06640e31ce EICU. Fixed incorrect frequency calculation.
Timers 9, 10, 11 connected to APB2 but constant in driver
initialization code was taken for APB1.
2015-06-02 15:53:58 +03:00
barthess 82973c099e Fixed copypaste error in comment 2015-06-02 11:15:04 +03:00
Fabio Utzig 343042d9d2 Add tx/rx pin configuration to SerialConfig 2015-05-15 21:08:53 -03:00
Fabio Utzig 621e7198d7 Remove GPIO pin initialization 2015-05-15 20:44:37 -03:00
Fabio Utzig 4ac0b638b9 Add basic PAL driver 2015-05-15 20:44:03 -03:00
Fabio Utzig aa43fd6554 Use sleep/wakeup for serial driver top-half 2015-05-14 23:07:10 -03:00
Fabio Utzig 776fc29107 Fix some issues with serial driver 2015-05-14 22:12:57 -03:00
Fabio Utzig c37554ca20 Add initial serial driver 2015-05-13 22:19:05 -03:00
Fabio Utzig 825c8ea30b Add TIMER0 based ticker for OS 2015-05-13 20:30:12 -03:00
Fabio Utzig f0bcca7b46 Don't hang boot 2015-05-13 20:29:45 -03:00
Fabio Utzig 5afd99de17 Add basic HAL/ST drivers 2015-05-12 22:06:39 -03:00
Fabio Utzig 9b1feee2e7 Remove PAL, add ST 2015-05-12 22:05:23 -03:00
Fabio Utzig a0110bc179 Merge master 2015-05-10 17:51:59 -03:00
barthess c44092eb0f NAND code changed to use bitmap class 2015-05-02 20:51:04 +03:00
Fabio Utzig e07ebbcac3 Add initial system header + makefile 2015-04-29 19:48:06 -03:00
marcoveeneman ca60a9cba2 Tiva. I2C. Fixed bug where number of bytes read is 2 more then requested. This only occurs when the number of bytes to read is 3 or more. 2015-04-24 22:00:47 +02:00
marcoveeneman e5f1b8b034 Tiva. ST. Moved ST interrupt priority check from hal_lld to st_lld. 2015-04-16 22:15:15 +02:00
marcoveeneman 5130840d32 Tiva. MAC. Added check for valid interrupt priority. 2015-04-16 22:03:13 +02:00
marcoveeneman cd95bc80f0 Tiva. EXT. Added checks for valid interrupt priorities. 2015-04-16 21:56:32 +02:00
marcoveeneman 7b7c6fd198 Tiva. Replaced all references to CORTEX_IS_VALID_KERNEL_PRIORITY with OSAL_IRQ_IS_VALID_PRIORITY. 2015-04-16 21:46:53 +02:00
marcoveeneman 2c0b573553 Merge branch 'tiva_ext_driver' 2015-04-14 23:07:24 +02:00
marcoveeneman a8358f2140 Tiva. EXT. Changed name of ext_serve_port_interrupt and ext_serve_pin_interrupt. 2015-04-14 23:00:29 +02:00
marcoveeneman 2c66f54771 Tiva. EXT. Fixed typo in ext_serve_pin_interrupt macro. 2015-04-14 22:53:48 +02:00
marcoveeneman f4e68ad23a Tiva. EXT. Wrapped ext_serve_port_interrupt and ext_serve_pin_interrupt in a do{}while(0) 2015-04-14 22:52:22 +02:00
marcoveeneman 1afe28e9be Tiva. EXT. Added ext_lld files and added ext_lld.c to platform.mk 2015-04-14 22:43:42 +02:00
marcoveeneman c6474b882a Tiva. EXT. Added number of GPIO pins to the registry. 2015-04-14 22:40:24 +02:00
barthess 3d45d3d4fa EICU. Updated lld according to chibios updates. 2015-03-31 16:43:14 +03:00
marcoveeneman 91d9d09673 Removing GPTM_TAMR_TASNAPS was a bad idea. This caused the TAR register to not update at match so an incorrect value was read in st_lld_get_counter. 2015-03-23 21:08:57 +01:00
marcoveeneman 560076be34 Removed ST_CLOCK_SRC for Tiva st_lld and replaced with TIVA_SYSCLK. 2015-03-23 20:55:52 +01:00
marcoveeneman 927cbb1bee Tiva tickless mode is working for 16 bit timers too. Typecasting was not correct before. 2015-03-22 22:46:09 +01:00
marcoveeneman 2d6792780a Added macros in st_lld for Tiva defices to wait until a timer is ready before using it. 2015-03-22 22:40:22 +01:00
marcoveeneman 61f2081d66 Fixed incorrect Tiva ST_HANDLER and ST_NUMBER defines in st_lld. 2015-03-22 22:27:51 +01:00
marcoveeneman bc7117e04c Wait until the timer peripheral is ready to continue. When built with -O0 this was not needed, but with -O2 the peripheral was not ready when it was accessed. 2015-03-20 21:38:01 +01:00
marcoveeneman 273b1fa525 Fixed using incorrect registers. 2015-03-20 21:36:52 +01:00
marcoveeneman b3c2194d95 Tiva st_lld files cleanup. 2015-03-20 21:11:57 +01:00
marcoveeneman 94ae99ab51 Tiva Tickless timer in down mode turned out not to work in last commit. It's working for WGPT5 now.
Started some cleanup in st_lld driver.
2015-03-20 21:04:38 +01:00
marcoveeneman 87e99fedd8 Changed the Tiva tickless timer implementation to use the timer in down mode. It's working for WGPT5 now. 2015-03-20 20:21:38 +01:00
marcoveeneman 930d2d6de0 Tickless mode for Tiva seems to be working using WGPT5 in up mode. 2015-03-20 19:49:21 +01:00
marcoveeneman 799f3b5d8a Merge branch 'tiva_spi_dma' 2015-03-17 21:58:57 +01:00
marcoveeneman 7a68c44dd0 Added Tiva UDMA initialization in hal_lld of TM4C123x devices.
Added UDMA and SPI driver to platform.mk of TM4C123x devices.
2015-03-17 21:49:01 +01:00
marcoveeneman c38910ced9 Added Tiva SPI low level driver. 2015-03-17 21:47:56 +01:00
marcoveeneman a1899308aa Added Tiva UDMA driver. 2015-03-17 21:47:12 +01:00
marcoveeneman 6c105d29d2 Changed Tiva UDMA peripheral structure for TM4C123x. 2015-03-17 21:44:45 +01:00
marcoveeneman e941fc7f5b Added Tiva UDMA ISR names and numbers to TM4C123x tiva_isr.h 2015-03-17 21:43:40 +01:00
barthess 0feccaa469 EICU. Updated authors. 2015-03-13 23:53:00 +03:00
barthess 6398d0d351 EICU. Low level driver moved to TIMv1 directory 2015-03-13 23:26:24 +03:00
barthess 22819b0f46 EICU. Temporal code moved to main chibios repo. 2015-03-13 23:19:12 +03:00
barthess 6f9bf595fd Merge branch 'master' of github.com:ChibiOS/ChibiOS-Contrib into HEAD 2015-03-13 22:48:38 +03:00
barthess bff52a2141 EICU. Minor improvements 2015-03-13 22:48:25 +03:00
barthess bfac876090 EICU. Added support of single channel timers.
Tested in hardware with TIM11.
2015-03-13 12:07:48 +03:00
barthess ceb3c861d5 EICU improvements.
Added field containing available channels into EICU driver structure.
This simplified driver code.
2015-03-12 18:24:49 +03:00
barthess 070bcc130c EICU. Added const qualifier for driver pointer in some functions 2015-03-05 16:03:05 +03:00
barthess 6518ddaf22 Merge branch 'master' of github.com:ChibiOS/ChibiOS-Contrib 2015-03-05 16:00:24 +03:00
barthess ae1ce0ea2b EICU. Timer widht (16-32 bits) now stored in driver field and detected durign startup 2015-03-05 15:59:32 +03:00
marcoveeneman 817efe19e0 Merge branch 'tiva_pal_driver' 2015-03-04 21:57:47 +01:00
marcoveeneman 61b7a9f0f3 Added missing PAL_TIVA_DEN_ENABLE for PAL_MODE_INPUT in Tiva devices. 2015-03-03 23:02:56 +01:00
marcoveeneman 0f7928dd85 Added missing drive strength enable for PAL_MODE_OUTPUT_OPENDRAIN in Tiva devices. 2015-03-03 22:02:56 +01:00
marcoveeneman 4cd44e345e Implemented PAL_MODE_* defines for Tiva devices. 2015-03-03 21:53:33 +01:00
marcoveeneman 555d45f70a Implemented AHB access for GPIOA - GPIOJ for TM4C123x devices. On TM4C129x devices the AHB is the only used bus for GPIO.
Replaced the nops after starting the gpio peripheral clocks with a busy wait until all GPIO peripherals are ready.
Added Sub-Family identifier for TM4C123x devices.
2015-03-03 21:15:21 +01:00
barthess e75668f53b EICU. Cosmetical cleanup 2015-03-03 22:43:25 +03:00
barthess 35c48df910 EICU. Deleted code for "fast" capture.
Reasons:
1) It duplicates functionality of "vanilla" ICU driver
2) Fast and slow modes are mutually exclided in single timer
2015-03-03 22:24:16 +03:00
barthess 28ab149cf7 EICU. Cosmetical improvements. 2015-03-03 21:07:44 +03:00
barthess 75688209c2 EICU now able to capture data on all channels 2015-03-03 19:01:28 +03:00
barthess 4764c3ba15 EICU. Fixed handlign of 32-bit timers. General code cleanup. PWM mode still untested. 2015-03-01 21:09:12 +03:00
barthess 71bba80a03 EICU. Fixed some typos. 2015-03-01 14:38:24 +03:00
barthess 4e7a5796b4 Added EICU driver in HAL. Added STM32 backend for EICU. 2015-02-28 21:42:40 +03:00
marcoveeneman 12d6c494d3 Restructured Tiva pal_lld.h 2015-02-26 22:45:32 +01:00
marcoveeneman 631ec2d5cb Added missing static keyword for Tiva gpio_init function. 2015-02-26 21:38:20 +01:00
marcoveeneman 71f9a8ff50 Fixed incorrect and missing GPIO pin unlocking for JTAG and NMI pins in pal_lld_init. 2015-02-26 21:35:46 +01:00
marcoveeneman f376aec4d8 Changed the Tiva pal driver RCGCGPIO enable mask name.
Added a note about the RCGC register.
2015-02-26 21:11:51 +01:00
marcoveeneman 8a7ede5e0a Fixed wrong bit mask in Tiva pal driver. 2015-02-26 21:09:10 +01:00
marcoveeneman c17c2f6edf Added Tiva I/O mode flags.
Implemented _pal_lld_setgroupmode.
2015-02-26 20:31:47 +01:00
marcoveeneman 2463abdd1b Renamed Tiva launch and debug configurations.
Fixed wrong SYSCTL access of gpt, i2c and pwm after changing the SYSCTL structure in TM4C123x.h.
2015-02-17 21:25:12 +01:00
marcoveeneman 7b73ccd1d0 Added basic demo for TM4C1294 Connected Launchpad with LwIP. 2015-02-16 21:49:29 +01:00
marcoveeneman 59499bd0cf Added MAC low level driver for the TM4C129x. Tested on the TM4C1294 Connected Launchpad. 2015-02-16 21:31:04 +01:00
marcoveeneman e391b1509d Reverted TM4C129x SYSCTL to old structure.
Added Ethernet peripheral structure for TM4C129x devices.
2015-02-16 20:49:37 +01:00
barthess 4ab64b4e4e Fixed copyrights 2014-12-06 20:15:59 +03:00
barthess ed62d9e4d4 FSMC. SDRAM. Fixed bug with registers' memory layout 2014-10-31 03:28:04 +03:00
barthess 1f97428d5d FSMC. SDRAM. Fixed some typos 2014-10-31 02:51:00 +03:00
barthess 1c50a03cfd FSMC. SDRAM. Added safety mask for SDRTR register 2014-10-25 15:54:24 +03:00
barthess e874067224 FSMC. SDRAM. Fixed delay code 2014-10-25 15:46:31 +03:00
barthess 3af04b9ee5 FSMC. SDRAM. Improved stop function 2014-10-25 15:39:21 +03:00
barthess b47ddce74d FSMC. SDRAM driver cleanup. Needs review. 2014-10-25 15:26:29 +03:00
barthess e9f9ddaa12 FSMC. SDRAM architecture reworked. Needs review. 2014-10-24 21:46:17 +03:00
barthess 5f231b6aaf FSMC. SDRAM. Style cleanup 2014-10-22 10:33:02 +03:00
barthess 8dabb3b8f5 Added SDRAM support via FSMC 2014-10-19 23:58:48 +03:00
barthess 721c48bc97 FSMC. Build fixed after code moving from SVN 2014-10-18 17:20:29 +03:00
barthess 7355cbd461 Added fsmc code 2014-10-18 16:34:12 +03:00
marcoveeneman 0214eb9bcc Changed some peripheral register structures in tm4c123x.h and tm4c129x.h to reduce the amount of duplicated text.
Updated gpt_lld, i2c_lld, pal_lld, pwm_lld, serial_lld, hal_lld register access to the changed peripheral register structures.
Replaced old interrupt numbers from tm4c123x.h and tm4c129x.h in serial_lld.c with the new interrupt number defines from tiva_isr.h.
2014-10-16 20:59:31 +02:00
marcoveeneman 6d5f529f28 Fixed missing peripheral declarations in tm4c123x.h and tm4c129x.h 2014-10-14 22:02:27 +02:00
marcoveeneman b74008c849 Added Tiva HAL files. 2014-10-13 23:01:10 +02:00