Joakim Nohlgård
6be334b4f4
Merge pull request #5833 from immesys/fix-i2c-checks
...
samd21: i2c: check all busstate bits
2016-09-20 10:06:40 +02:00
Michael Andersen
e367ab93f6
samd21: i2c: improve busstate comparison
2016-09-19 10:54:17 -07:00
Michael Andersen
082d8e85a9
samd21: i2c: clear timeout_counter
...
If not cleared, long writes timeout incorrectly
2016-09-07 18:21:38 -07:00
Kees Bakker
ac3683b09f
cpu/samd21:i2c: the wait for SYNCBUSY must come after enable or disable
...
The power on/off code is refactored somewhat.
2016-07-28 22:01:12 +02:00
Kees Bakker
64cc7c63c8
cpu/samd21/periph/i2c: power off did enable instead of disable
2016-07-28 21:33:28 +02:00
Kees Bakker
417023c256
cpu/samd21: remove include instance_sercom3.h
...
That include will be already picked up by cpu.h -> cpu_conf.h -> samd21.h
2016-06-22 22:14:36 +02:00
PeterKietzmann
5ab2297b25
samd21/i2c: wait for bus idle after stop condition
2016-05-27 11:23:05 +02:00
Hauke Petersen
39043b5e6e
cpu/samd21: fix ISR mapping for PB27
2016-04-19 20:46:41 +02:00
Baptiste
0215b08998
SAMD21/GPIO driver: Add missing interrupts
2016-04-14 20:06:36 +02:00
Hauke Petersen
d3b21ddf96
cpu/samd21: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
b23cde98cf
cpus: adapted UART implementations to cb type change
2016-03-15 11:02:06 +01:00
Joakim Nohlgård
2ea2cdc9e1
cpu/samd21: Use {} notation for empty while loops
2016-03-03 16:31:28 +01:00
Hauke Petersen
b11a3ad74b
cpus: adapted timer implementations to API changes
2016-02-29 14:45:00 +01:00
Joakim Nohlgård
3ff4a334b1
cpu/samd21: Cast enum to unsigned int for comparison
2016-02-28 00:09:03 +01:00
Joakim Nohlgård
af64264346
cpu/samd21: uart: Remove unnecessary check unsigned < 0
2016-02-28 00:08:59 +01:00
Hauke Petersen
bc1013b54e
cpu/samd21: allowed third PWM channel per device
2016-02-21 16:49:45 +01:00
Joakim Nohlgård
e2f7ac78f0
Merge pull request #4040 from gebart/pr/periph-timer-init-freq
...
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
2016-02-15 23:36:44 +01:00
Joakim Nohlgård
4aa21ff5c1
cpu/samd21: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Hauke Petersen
41cbc35b73
cpu/samd21: adapted to PWM interface changes
2016-02-12 16:09:58 +01:00
Hauke Petersen
48a639f8fd
cpu/sam21_common: used shared periph_cpu.h
2016-02-08 19:04:28 +01:00
Hauke Petersen
722b342df3
cpu/sam21_common: unified CPUID implementation
2016-02-08 18:55:43 +01:00
Hauke Petersen
940097336a
cpu: cleanup and unification of CPUID implementations
...
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
2016-02-08 14:36:03 +01:00
Hauke Petersen
ad0abdcadd
cpus: use default isr_ctx struct in GPIO drivers
2016-01-27 17:00:37 +01:00
Hauke Petersen
dda721ca06
cpu/samd21: s/F_CPU/CLOCK_CORECLOCK/
2016-01-27 09:52:44 +01:00
Hauke Petersen
86da628971
Merge pull request #4081 from daniel-k/pr/samd21_rtt_fix_irq_priority
...
samd21: don't change priority of interrupts, this is really evil
2015-11-10 13:05:10 +01:00
Andreas "Paul" Pauli
bf63e09a65
Merge pull request #4137 from haukepetersen/opt_samr21_pwm
...
cpu/samd21: optimized pin config for PWM driver
2015-11-05 16:14:05 +01:00
Ludwig Knüpfer
406aea453c
cpu/samd21: fix typo in gpio.c
2015-10-31 17:28:16 +01:00
Hauke Petersen
a93f15b5cb
cpu/samd21: adapted UART driver
2015-10-27 14:59:38 +01:00
Peter Kietzmann
e539db10ee
Merge pull request #4104 from gebart/pr/drop-timer-reset
...
periph/timer: Drop timer_reset
2015-10-26 08:36:01 +01:00
Hauke Petersen
fe6b3e7d54
cpu/samd21: optimized pin config for PWM driver
2015-10-23 11:41:04 +02:00
Hauke Petersen
82c843a000
cpu: removed init_slave from I2C drivers
2015-10-20 16:57:39 +02:00
Joakim Nohlgård
cbaeccdb90
periph/timer: Drop timer_reset
2015-10-17 20:11:03 +02:00
daniel-k
1f98e06956
samd21/gpio: check if interrupt is enabled in isr, fixes #4087
...
The interrupt flag for a previously configured external gpio interrupt
will be set regardless of the actual configuration. So when another source
causes an interrupt, the callback of a disabled gpio interrupt will be serviced
although it was disabled if the interrupt occured in the meantime.
2015-10-15 17:05:40 +02:00
daniel-k
70c8f355c5
samd21: don't change priority of interrupts, this is really evil
2015-10-12 19:53:43 +02:00
Peter Kietzmann
be8f63769c
Merge pull request #3879 from sgso/fix_spi_slave_return_codes
...
cpu: let spi_init_slave() stubs return error codes
2015-09-30 14:07:54 +02:00
Daniel Krebs
85f5a86f7e
Merge pull request #3887 from daniel-k/pr/samd21_clocks
...
samd21: tidy up peripheral clocks and fix potential bugs
2015-09-30 10:42:10 +02:00
Peter Kietzmann
d081adeda9
Merge pull request #3751 from daniel-k/pr/samd21_i2c
...
samd21/i2c: add feedback in case transfer failed
2015-09-29 20:14:43 +02:00
daniel-k
0b6da4609e
samd21: tidy up peripheral clocks and fix potential bugs in pwm and i2c clocks
2015-09-29 18:49:46 +02:00
Joakim Nohlgård
98c465008b
all: Update @gebart family name, email
2015-09-20 13:47:39 +02:00
Sebastian Sontberg
8b4fcc2a14
cpu: let spi_init_slave() stubs return error codes
2015-09-17 11:19:31 +02:00
Hauke Petersen
1a29163b63
cpu/samd21: optimized UART implementation
2015-09-14 17:20:01 +02:00
daniel-k
c747d7dae4
samd21/i2c: add feedback in case transfer failed
2015-08-31 17:31:17 +02:00
Iván Briano
1481b01df8
cpu: samd21: Enable the interrupt line for PA28
...
So the onboard button on the Samr21-xpro works again.
2015-08-27 14:08:16 -03:00
0a859b91ee
cpu: samd21: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
Hauke Petersen
368f5fb64f
cpu/samd21: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
daniel-k
9703d324f6
samd21/rtt: fix bug in rtt_set_alarm that caused interrupt immediately after calling
2015-06-08 15:37:22 +02:00
Hauke Petersen
d9deb569b2
cpu/samd21: added peripheral PWM driver
2015-06-05 11:19:48 +02:00
Hauke Petersen
164721657d
cpu/samd21: added cpu clock configuration
...
- choosable between PLL and internal 8MHz osciallator
- configurable to a wide range of frequencies
2015-06-04 11:58:26 +02:00
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
2015-05-28 15:45:05 +02:00
Hauke Petersen
138ac603de
Merge pull request #3033 from haukepetersen/fix_samd21_spi
...
cpu/samd21: fixed broken spi_transfer_byte function
2015-05-26 15:39:55 +02:00