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
476167a86c
cpu: fixed any doxygen warning realated to 'periph'
2015-11-19 16:08:38 +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
13fcefb638
s cpu: moved pwm_conf_[chan_]t to periph_cpu.h
2015-10-23 11:41:04 +02: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
Hauke Petersen
d43dc9182f
cpu: s/GPIO(x,y)/GPIO_PIN(x,y)/
2015-10-13 14:59:54 +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
Martine Lenders
2184c97002
Merge pull request #3838 from haukepetersen/opt_samuart
...
cpu/samd21: optimized and extended UART impl.
2015-09-17 03:39:36 +02:00
dd9de14e49
cpu: samd21: remove hwtimer support
2015-09-16 10:58:51 +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
75472eddf4
cpu: remove transceiver defines from cpu_conf files
2015-08-06 12:13:54 +02:00
bapclenet
10f3f715cb
Merge pull request #3205 from kaspar030/fix_samr21-xpro_clock_setup
...
cpu: samd21: fix synchronization loop in clk_init
2015-06-28 20:15:08 +02:00
Peter Kietzmann
f62bc56648
Merge pull request #3215 from haukepetersen/fix_periphcpu_addenums
...
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-22 08:44:26 +02:00
Hauke Petersen
4ae5204b36
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-16 22:41:16 +02:00
1172597594
cpu: samd21: fix synchronization loop in clk_init
2015-06-15 21:33:13 +02:00
Hauke Petersen
e8dd6afa38
cpu/samd21: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
138a6a7d1b
cpu/samd21: added custom GPIO_UNDEF define
2015-06-14 16:15:53 +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
744ec88a74
cpu: use cortexm common linkerscript
2015-05-30 13:43:19 +02:00
Joakim Gebart
c09a8484e2
cortexm: Move ldscripts into separate directory
...
Less clutter inside the cpu/* directories by placing linker scripts
under cpu/*/ldscripts/CPUNAME.ld
2015-05-30 12:20:07 +02:00
Joakim Gebart
41e1b57624
Merge pull request #3100 from haukepetersen/opt_cortexm_init
...
cpu: centralized cortex initialization and some defines
2015-05-30 09:21:46 +02:00
Hauke Petersen
dfb717c308
cpu/samd21: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
32410bbfe5
cpu/samd21: set optimization level to -Os
2015-05-29 12:15:40 +02:00
haukepetersen
38f4fc7027
cpu/samd21: moved -O0 from board to cpu
2015-05-28 19:30:07 +02:00
haukepetersen
0d5c8546f3
cpu: adapted Makefiles to unified cortexm module
2015-05-28 19:30:07 +02:00
Hauke Petersen
a5e4b02ed8
cpu: fixed doxygen for multiple headers
2015-05-28 15:45:05 +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
Peter Kietzmann
68dd9a3996
Merge pull request #2865 from kaspar030/fix_samd21_gpio_compile_issue
...
cpu: samd21: fix gpio irq handling compile handling
2015-05-26 14:08:45 +02:00
107be4122c
board: samr21-xpro: adapt to common board Makefile
2015-05-26 10:46:34 +02:00
9dc0554d98
cpu: samd21: use cortex common makefile and newlib module
2015-05-26 10:46:33 +02:00
aff25936d1
cpu: samd21: fix gpio irq handling compile handling
2015-05-26 10:23:43 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064
Improve naming of thread stacksize/priority constants
...
As discussed in #2725 , this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:
* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Hauke Petersen
f0d9574de1
cpu/samd21: fixed broken spi_transfer_byte function
2015-05-19 18:05:36 +02:00
daniel-k
a31848ceb8
cpu/samd21: implement peripheral real time timer (periph/rtt)
2015-05-10 21:09:31 +02:00
bapclenet
fa571013ee
samr21/rtc safety isr
2015-05-07 20:18:49 +02:00
df3ed49305
cpu: samd21: switch to hwtimer compat wrapper
2015-05-06 12:04:53 +02:00
bapclenet
edfb255a5d
samr21/RTC
...
Solve issue #2261 by using the external 32,768KHz Oscillator
2015-04-09 10:05:09 +02:00
Ludwig Ortmann
1572c94e41
cpu/samd21: implement gpio_toggle properly
...
Before, gpio_toggle relied on gpio_read which is inefficient and does not
work with GPIOs configured as outputs.
2015-03-25 22:05:05 +01:00
Ludwig Ortmann
cf637942cc
*: add missing blank lines
...
Some functions had no blank lines to separate them from their
neighborhood.
2015-03-21 16:34:59 +01:00
Ludwig Ortmann
e9e3f3d148
cpu/samd21/periph/i2c: fix spacing, comment length
2015-02-18 13:52:48 +01:00
Ludwig Ortmann
cec87139a5
core, cpu, drivers, tests: remove trailing space
2015-02-18 13:52:48 +01:00
Peter Kietzmann
ebadbd6da3
Merge pull request #2323 from thomaseichinger/i2c_mutex
...
periph/i2c: added means to make I2C thread-safe
2015-01-20 07:57:20 +01:00
Joakim Gebart
bec43f11d8
samd21: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:20 +01:00
Thomas Eichinger
30040fa311
cpu/samd21: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Troels Hoffmeyer
29b0e73350
samr21: cpuid implemented by reading 128 bits from flash
2015-01-12 13:50:16 +01:00
Ludwig Ortmann
7d948e4d65
Merge pull request #2260 from bapclenet/samr21/RTC
...
SAMR21/RTC: Error negative second fixed
2015-01-07 18:33:24 +01:00
bapclenet
f49661f617
cpu/samd21: fix rtc negative second error
2015-01-07 17:07:41 +01:00
benpicco
9c50f206c5
Merge pull request #2252 from benpicco/samd21-malloc
...
cpu/samd21: check if the requested memory is really available in _sbrk_r
2015-01-06 20:31:09 +01:00
Benjamin Valentin
070420db7d
samd21: check if the requested memory is really available in _sbrk_r
...
copy the check from sam3x8e
2015-01-06 19:22:46 +01:00
Thomas Eichinger
d6c4d5581f
Merge pull request #2215 from bapclenet/samr21/RTC
...
cpu/samd21: add rtc periph implementation
2015-01-06 18:21:22 +01:00
Ludwig Ortmann
d74f7425a5
cpu/samd21: increase default stack size
...
Provide enough space to run `examples/default`.
2014-12-20 17:00:11 +01:00
bapclenet
55aabf9dfb
cpu/samd21: add rtc periph implementation
2014-12-18 15:25:49 +01:00
Thomas Eichinger
ca53077e3c
Merge pull request #1998 from Troels51/samr21-hwtimer-fix
...
samr21: 32 hwtimer
2014-12-17 17:29:36 +01:00
Troels Hoffmeyer
7124ec6258
samr21: implemented 32 bit hwtimer
2014-12-17 14:44:54 +01:00
Troels Hoffmeyer
33ef43c8e2
samr21: implemented transceiver via spi, gpio changes
2014-12-16 17:43:30 +01:00
bapclenet
54fb0f0610
cpu/samd21: add i2c periph implementation
2014-12-11 08:32:27 +01:00
BytesGalore
a4d2ee307c
cpu: added extern "C"
to headers
2014-11-24 19:10:15 +01:00
Hauke Petersen
2220a9fab0
core/cpu/boards: removed fw_puts from RIOT
2014-11-21 13:09:02 +01:00
Hauke Petersen
62b6522e01
cpu: moved reboot_arch for cortex cpus
2014-11-20 17:22:39 +01:00
9ce0b676b4
core: sys: move ringbuffer to core
2014-11-19 14:18:39 +01:00
Hauke Petersen
d1e57faf34
Merge pull request #1994 from BytesGalore/EasyCPPMixing_samr21_xpro_support_fix
...
cpu/samd21 C++ samr21-xpro support fix
2014-11-17 18:20:50 +01:00
BytesGalore
ae3492b017
cpu/samd12: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
...
boards/samr21-xpro: provided c++ feature (cpp)
2014-11-14 13:20:54 +01:00
Thomas Eichinger
2b0d49c8b1
Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
...
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-14 10:50:51 +01:00
Ian Martin
7bbdbcc7cb
Allow the application's makefile to specify a custom linker script, for example:
...
LINKERSCRIPT = custom-linkerscript.ld
2014-11-10 14:28:35 -05:00
Hauke Petersen
72b68bc9f0
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-06 15:16:33 +01:00
Hinnerk van Bruinehsen
e3aa222d6c
lint: fix nullPointer errors
2014-10-31 01:24:30 +01:00
Hauke Petersen
e7fbaf3815
cpu: removed NAKED attribute from ISRs
...
- removed the __attribute__((naked)) from ISRs
- removed ISR_ENTER() and ISR_EXIT() macros
Rationale: Cortex-Mx MCUs save registers R0-R4 automatically
on calling ISRs. The naked attribute tells the compiler not
to save any other registers. This is fine, as long as the
code in the ISR is not nested. If nested, it will use also
R4 and R5, which will then lead to currupted registers on
exit of the ISR. Removing the naked will fix this.
2014-10-30 19:33:32 +01:00
Oleg Hahm
c53bd9ca5d
doc: remove more CPU specific documentation
2014-10-23 20:53:01 +02:00
Oleg Hahm
481d4f2ee3
doc: fix ambiguous file name warnings
...
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Oleg Hahm
6d8c0d74c3
doc: some doxygen cleanups
...
* removed RIOT unrelated cpu documentation
* introduced cpu_specific prefix to mark such documentation
* put oneway_malloc and crypto into sys group
2014-10-23 17:29:25 +02:00
Thomas Eichinger
bf256f63a3
samr21-xpro: initial import for the samr21-xpro board
2014-09-25 14:37:47 +02:00