1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

89 Commits

Author SHA1 Message Date
Peter Kietzmann
280a200377 Merge pull request #6230 from haukepetersen/opt_kinetis_pwm
cpu/kinetis: reworked PWM driver implementation
2017-01-12 10:16:31 +01:00
Hauke Petersen
c062bf71b9 Merge pull request #6177 from gebart/pr/kinetis-adc-clock-scaler-fix
kinetis: Fix ADC clock computation
2017-01-05 14:08:00 +01:00
Hauke Petersen
d1db190f83 cpu/kinetis_common: reworked PWM driver 2017-01-05 10:55:15 +01:00
Joakim Nohlgård
c2ccc1bfa0 kinetis: Fix ADC clock computation
The ADC prescaler computation was broken and gave too high ADC clock for
module clocks slower than 32 MHz (the >32 MHz case is already handled
separately)
2016-12-27 17:10:25 +01:00
Hauke Petersen
3a00fe8e49 cpus: make use of cortexm_isr_end() 2016-12-21 11:28:46 +01:00
Hauke Petersen
2eebf36eb2 cpu/uart: make use of named return values 2016-10-28 10:32:00 +02:00
560a509036 make: remove trailing slash from BINDIR variable 2016-10-18 23:27:59 +02:00
Kees Bakker
bac5cda1e3 periph/i2c: convert char to uint8_t where applicapable
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.

Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
Joakim Nohlgård
1a2b2575fb kinetis: Add stddef, stdint missing includes for gpio.c 2016-09-29 15:47:53 +02:00
Joakim Nohlgård
8947a3c49c cpu/kinetis_common: Add debugging messages to i2c driver 2016-08-10 19:40:39 +02:00
Joakim Nohlgård
5633af4300 cpu/kinetis_common: Update periph_timer to support both LPTMR and PIT 2016-07-07 13:38:27 +02:00
Ian Martin
49ae438dd5 doc: eliminate clutter in adc and gpio periph docs 2016-06-29 15:08:32 -04:00
zhuoshuguo
1cbe79a373 CPU: fix include header guards
Fix cpu/lpc2387/include/lpc2387.h
2016-06-08 16:38:20 +02:00
Joakim Nohlgård
8c154d47ad cpu/kinetis_common: Implement DAC periph driver 2016-03-22 06:06:56 +01:00
Hauke Petersen
4938142b42 cpu/kinetis: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Johann Fischer
0b2ffc212d Merge pull request #5075 from jfischer-phytec-iot/pr@kinetis-i2c
cpu/kinetis_common/periph/i2c.c: fix generating the STOP signal
2016-03-17 12:53:24 +01:00
Joakim Nohlgård
65bb26f0b4 cpu/kinetis_common: Use gpio_init_port for PWM pin handling 2016-03-14 17:52:51 +01:00
Johann Fischer
db2506822f cpu/kinetis_common/periph/i2c.c: fix generating the STOP signal
This patch fix the bug in _i2c_receive. The STOP signal should be
generated before the reading from the data register because the
receiving of the next byte will be initiated by reading
the data register (dev->D).
2016-03-14 14:53:59 +01:00
Hauke Petersen
3990bd84e7 cpu/kinetis_common: reworked ADC driver 2016-03-14 13:06:23 +01:00
Peter Kietzmann
c8829a49b8 Merge pull request #4838 from haukepetersen/fix_periph_timerarg
drivers/timer: added callback argument
2016-03-01 08:55:54 +01:00
Hauke Petersen
b11a3ad74b cpus: adapted timer implementations to API changes 2016-02-29 14:45:00 +01:00
Hauke Petersen
34f9deecb7 cpu/kinetis_common: reworked GPIO driver 2016-02-29 11:08: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
Hauke Petersen
6f0179ce69 cpu/kinetis_common: adapted HWRNG implementation 2016-02-14 12:59:46 +01:00
Joakim Nohlgård
d2b06d1923 cpu/kinetis_common: Update timer_init to match API change 2016-02-13 21:29:36 +01:00
Hauke Petersen
fecf74970e cpu/kinetis_common: adapted to PWM interface changes 2016-02-12 16:10:01 +01:00
Joakim Nohlgård
3db00667b7 cpu/kinetis_common: Use a different module name to prevent linker races in Travis 2016-02-12 08:45:56 +01:00
Hauke Petersen
cfcf951b9d cpu/kinetis_common: fixed null ptr ref in gpio.c 2016-02-09 16:22:25 +01:00
Hauke Petersen
5cac36d5b3 cpu/kinetis_common: moved drivers to periph subdir 2016-02-09 16:20:03 +01:00
Hauke Petersen
975e027360 cpu: use Hauke's correct email address 2016-02-09 16:09:40 +01:00
Hauke Petersen
d80a661486 Merge pull request #4761 from haukepetersen/opt_cpuid
drivers/cpuid: fixed and unified CPUID driver implementations
2016-02-08 18:18:53 +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
Joakim Nohlgård
309cd5ef58 cpu/kinetis_common: Add __attribute__((used)) to flash configuration field 2016-02-08 13:07:52 +01:00
Hauke Petersen
476167a86c cpu: fixed any doxygen warning realated to 'periph' 2015-11-19 16:08:38 +01:00
Cenk Gündoğan
0792450dd7 cpu: kinetis_common: remove vtimer include from spi.c 2015-11-11 09:03:12 +01:00
Joakim Nohlgård
142c28094e kinetis_common: Refactor GPIO implementation
This is a rewrite of the Kinetis GPIO driver which follows the
refactored API in [1]. Pins are specified using the GPIO_PIN(PORT_x, y)
macro, e.g. GPIO_PIN(PORT_E, 25) for the PTE25 pin.

The interrupt pin handling is now implemented as a linked list, this
is more memory efficient, but with a minor variation in interrupt
latency depending on in what order the pins were initialized at
runtime.

Because the linked list entries are taken from a shared pool, there is
also the possibility of running out of available configuration slots,
define the preprocessor macro GPIO_INT_POOL_SIZE in periph_conf.h if
you need more than 16 pins configured for interrupts in the same
application.

[1]: https://github.com/RIOT-OS/RIOT/pull/3095
2015-10-28 14:12:19 +01:00
Hauke Petersen
c7d256d83e cpu/kinetis_common: 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
Johann Fischer
f31db0431f Merge pull request #4132 from jfischer-phytec-iot/pr@kinetis-ldscript
kinetis_common: use cortexm_common ldscript
2015-10-24 09:59:38 +02:00
Johann Fischer
e95afc80fb kinetis_common: use cortexm_common ldscript
kinetis.ld includes cortexm_common ldscript, the fields for the
isr vectors and fcfield remain in kinetis.ld.
2015-10-23 12:01:22 +02:00
Johann Fischer
f0e7d2fc03 cpu/kinetis_common/timer.c: cleanup and fix the pit timer
It simplifies the virtual "count up timer" and improves
the accuracy a little. The LDVAL for the prescaler should
be set as a number of prescaler cycles-1. The virtual
up-counter should be corrected in the isr by +1
(See PIT reference manual). This also fixes a bug where
the timer is not used by xtimer and up-counter does not overflow.
2015-10-23 11:58:10 +02:00
Hauke Petersen
05ef9fee99 cpu/kinetis_common: removed i2c_init_slave() 2015-10-20 16:58:06 +02:00
Joakim Nohlgård
cbaeccdb90 periph/timer: Drop timer_reset 2015-10-17 20:11:03 +02:00
Joakim Nohlgård
015098d2c2 kinetis: timer: return error if timer channel is not zero. 2015-09-24 06:46:34 +02:00
Joakim Nohlgård
808b1abdd0 Merge pull request #3623 from gebart/pr/kinetis-timer-stop-fix
cpu/kinetis_common: periph/timer, read PIT value before stopping
2015-09-21 08:21:34 +02:00
Joakim Nohlgård
98c465008b all: Update @gebart family name, email 2015-09-20 13:47:39 +02:00
Hauke Petersen
35aaa62c38 cpu/kinetis_common: s/TIMER_DEV/TIMER_BASE/ 2015-09-17 13:57:58 +02:00
c0d3524132 cpu: kinetis_common: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
daniel-k
7a86344c4d cpu/cortexm_common: gather addition information on hardfault 2015-08-19 14:24:54 +02:00
Joakim Gebart
cf5db434e6 cpu/kinetis_common: periph/timer, read PIT value before stopping
Reading CVAL after stopping timer seem to return zero.
Ref. manual states: "The counter period can be restarted, by first
disabling, and then enabling the timer with TCTRLn[TEN]", but does not
state whether the reset of CVAL happens on TEN 0->1 transition, or 1->0
transtion. Empirical evidence suggests the latter is the implemented behaviour.
2015-08-13 21:06:50 +02:00