Joakim Nohlgård
e01e6892ff
cpu/stm32l1: i2c: Fix array out of bounds before check and Clang input check warnings
2016-02-28 00:08:26 +01:00
Joakim Nohlgård
8bf9230d15
cpu/stm32l1: spi: Cast enum to unsigned int for comparison
2016-02-28 00:08:18 +01:00
Joakim Nohlgård
c61c1207df
cpu/stm32f4: Cast enum to unsigned int for comparison
2016-02-28 00:08:12 +01:00
Joakim Nohlgård
e4629eb0bb
cpu/stm32f3: spi: Cast enum to unsigned int for comparison
2016-02-28 00:08:06 +01:00
Joakim Nohlgård
19cee2d757
cpu/stm32f1: spi: Cast enum to unsigned int for comparison
2016-02-28 00:08:00 +01:00
Joakim Nohlgård
81feb558ef
cpu/stm32f0: spi: Cast enum to unsigned int for comparison
2016-02-28 00:06:43 +01:00
Joakim Nohlgård
698b2841d1
cpu/nrf51: spi: Fix input check warnings
...
- Cast enum to unsigned int for comparison
- Remove redundant checks
- Add default case for missing devices
2016-02-28 00:05:49 +01:00
Joakim Nohlgård
412da2046d
cpu/lpc11u34: Cast enum to unsigned int for comparison
2016-02-28 00:05:10 +01:00
Joakim Nohlgård
ade9941ab6
cpu/stm32f0: adc: Add default error cases
2016-02-27 23:52:33 +01:00
Hauke Petersen
af5ba0b5da
cpu/sam3: reworked timer driver
2016-02-26 17:49:48 +01:00
Hauke Petersen
6b9088aa11
cpu/sam3: changed timer vendor header
...
- made channel cc registers accessible as array
2016-02-26 17:49:47 +01:00
Ian Martin
04bd6e5f7c
cpu/cc2538: avoid using bitfields with the LCRH register
...
Otherwise the UART ignores the new baudrate divisor.
2016-02-26 11:42:32 -05:00
Ian Martin
ce71e53d74
make: set OBJDUMP = $(PREFIX)objdump for gnu targets.
2016-02-23 17:55:58 -05:00
Marc Poulhiès
8f0a9ddf6f
cpu/lm4f120: GPIO support
2016-02-23 15:12:53 +01:00
Martine Lenders
0018bd902b
Merge pull request #4648 from authmillenon/netdev2/api/packet-info
...
netdev2: provide capability to pass up packet status information
2016-02-22 19:30:18 +01:00
Martine Lenders
8db42427cb
native/drivers/sys: adapt ethernet netdev2 for info struct
2016-02-22 12:37:26 +01:00
Oleg Hahm
0ffed1d100
Merge pull request #4868 from steffen-p/stm32f3_periph_uart_deadlock_on_overrun
...
stm32f3: periph: uart: add misssing uart overrun handling
2016-02-22 12:26:01 +01:00
60122cca82
cpu: native: netdev2_tap: don't pass isr_arg on rx complete event
2016-02-21 21:55:33 +01:00
Steffen Pengel
35635e4039
stm32f3: periph: uart: add misssing uart overrun handling
...
On overrung the ORE bit in the ORECF register is set.
An overrun error occurs when a character is received when RXNE has not been reset. Data
can not be transferred from the shift register to the RDR register until the RXNE bit is
cleared. The ORE bit is reset by setting the ORECF bit in the ICR register.
In case the ORE bit isn't cleared, the isr_handler() routine is called
continuously. Which prevents the system from normal scheduling.
2016-02-21 20:30:29 +01:00
Hauke Petersen
bc1013b54e
cpu/samd21: allowed third PWM channel per device
2016-02-21 16:49:45 +01:00
Hauke Petersen
c82dda9b74
Merge pull request #4815 from DipSwitch/pr/fix_stm32_exti_isr
...
STM32 GPIO: Fix exti_isr handling to only call callbacks of lines with there IRQ enabled
2016-02-21 14:11:36 +01:00
DipSwitch
df996044e2
STM32 GPIO: Fix exti_isr handling to only call callbacks of lines with have there interrupt enabled
2016-02-21 09:43:42 +01:00
Martine Lenders
eb4d9859a3
netdev2_tap: fix strange event_callback argument
2016-02-20 15:55:35 +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
9db8d671ab
Merge pull request #4757 from haukepetersen/opt_periph_random
...
drivers/periph: renamed random and more
2016-02-14 17:56:57 +01:00
DipSwitch
e5012dce03
Merge pull request #4698 from haukepetersen/opt_f0_gpio
...
cpu/stm32f0: fixes + gpio_init_analog() added
2016-02-14 16:26:17 +01:00
Hauke Petersen
0c375e2bae
cpu/stm32f4: adapted HWRNG implementation
2016-02-14 12:59:47 +01:00
Hauke Petersen
79cf50db03
cpu/sam3: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Hauke Petersen
6f0179ce69
cpu/kinetis_common: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Hauke Petersen
1b58b187a9
cpu/nrf52: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Hauke Petersen
7b9a5ae889
cpu/nrf51: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Hauke Petersen
c9e9fcf662
cpu/native: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Hauke Petersen
216a4cb432
cpu/cc2538: adapted HWRNG implementation
2016-02-14 12:58:30 +01:00
Joakim Nohlgård
d1a57d040a
Merge pull request #4638 from gebart/pr/periph-pwm-api-change
...
drivers: Optimized periph PWM interfaces
2016-02-14 08:54:47 +01:00
Joakim Nohlgård
f76ecd1491
cpu/nrf52: Update to match timer_init API change
2016-02-13 21:33:52 +01:00
Joakim Nohlgård
8ef0b1555c
cpu/ezr32wg: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
68ddb1a7a9
cpu/stm32l1: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
3e0d6f167f
cpu/stm32f4: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
5ab848548b
cpu/stm32f3: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
e43f503cb6
cpu/stm32f1: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
e427caaf01
cpu/stm32f0: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
3d8c8b295d
cpu/saml21: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
4aa21ff5c1
cpu/samd21: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
880d0d5879
cpu/sam3: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
9ac6176745
cpu/nrf51: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
67321ce9bc
cpu/msp430fxyz: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
1b0e0c62ac
cpu/lpc2387: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
8d4fd5a814
cpu/lpc1768: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
cf90cf32c0
cpu/lpc11u34: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
4a873d4061
cpu/lm4f120: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
77fbe188e7
cpu/cc430: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
943c106461
cpu/cc2538: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
d24cdd7cde
cpu/native: Update timer_init to match API changes
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
d2b06d1923
cpu/kinetis_common: Update timer_init to match API change
2016-02-13 21:29:36 +01:00
Joakim Nohlgård
819d619bad
cpu/atmega2560: Update timer_init to match API change
2016-02-13 21:29:36 +01:00
Hauke Petersen
cfac198fc8
cpu/stm32f0: added gpio_init_analog()
2016-02-13 13:06:58 +01:00
Hauke Petersen
b97afdc1b1
cpu/stm32f0: some minor fixes to GPIO driver
...
- fixed indention on some places
- s/gpio_config/isr_ctx/
- use BRR reg for clearing pin
2016-02-13 13:02:32 +01:00
Hauke Petersen
a64a4df72e
Merge pull request #3881 from MohmadAyman/master
...
stm32f0-gpio-update
2016-02-12 20:54:48 +01:00
Hauke Petersen
fecf74970e
cpu/kinetis_common: adapted to PWM interface changes
2016-02-12 16:10:01 +01:00
Hauke Petersen
85f85a3760
cpu/stm32f4: adapted to PWM interface changes
2016-02-12 16:10:01 +01:00
Hauke Petersen
cf7299c09e
cpu/stm32f3: adapted to PWM interface changes
2016-02-12 16:09:58 +01:00
Hauke Petersen
41cbc35b73
cpu/samd21: adapted to PWM interface changes
2016-02-12 16:09:58 +01:00
Hauke Petersen
ba8cda7894
cpu/sam3: adapted to PWM interface changes
2016-02-12 16:09:58 +01:00
Hauke Petersen
b41f915d86
cpu/lpc2387: adapted to PWM interface changes
2016-02-12 16:09:56 +01:00
Hauke Petersen
b96cb04df2
cpu/lpc11u34: adapted to PWM interface changes
2016-02-12 16:09:53 +01:00
Hauke Petersen
9fcb031e21
Merge pull request #4797 from gebart/pr/nrf51-fix-random-travis-failures
...
make: Use unique module name for cpu_common periph
2016-02-12 11:06:42 +01:00
Joakim Nohlgård
d414f30b22
Merge pull request #4791 from gebart/pr/small-cleanups
...
misc: small cleanups
2016-02-12 09:14:06 +01:00
Joakim Nohlgård
95ef11bbc1
cpu/stm32_common: Use a different module name to prevent linker races in Travis
2016-02-12 08:46:00 +01:00
Joakim Nohlgård
2e37ac0802
cpu/sam21_common: Use a different module name to prevent linker races in Travis
2016-02-12 08:45:58 +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
Joakim Nohlgård
1f9f6d8548
cpu/nrf5x_common: Use a different module name to prevent linker races in Travis
2016-02-12 08:45:53 +01:00
MohmadAyman
f881874bbb
cpu/stm32f0: optimized GPIO driver implementation
2016-02-12 07:01:20 +02:00
MohmadAyman
1ecb19c7ae
stm32f0 vendor headers updated
2016-02-12 07:00:07 +02:00
Joakim Nohlgård
068a4e4195
cpu/lm4f120: Remove unused static lookup table
2016-02-11 15:14:07 +01:00
Joakim Nohlgård
04c37094a0
make: Homogenize CFLAGS settings across cortexm_common, avr, msp430_common
2016-02-11 12:45:44 +01:00
Joakim Nohlgård
00f875b0de
make: Fix typo CFLAGS_DEBUG->CFLAGS_DBG
2016-02-11 12:42:43 +01:00
Joakim Nohlgård
d1128cabab
boards/msp430_common: Use code style CFLAGS from Makefile.cflags
2016-02-11 12:39:02 +01:00
Joakim Nohlgård
862b07fda2
boards/cortexm_common: Use code style CFLAGS from Makefile.cflags
2016-02-11 12:39:02 +01:00
Joakim Nohlgård
a0429f7542
Merge pull request #4778 from gebart/pr/cortex-m-makefile-refactor
...
make: Move CPU and BOARD includes to Makefile.modules and reorganize
2016-02-11 12:33:33 +01:00
Oleg Hahm
97adfa781e
stm32: use cpuid_address' address, not the value
...
We're interested in the address of `cpuid_address`, not the value it is pointing, too.
2016-02-11 01:52:57 +01:00
René Herthel
4a4b3f620c
stm32l1/i2c: initial update for the new interface
2016-02-10 16:40:33 +01:00
Joakim Nohlgård
31c9ca70e5
make: Move Makefile.include.$(TOOLCHAIN) to cpu dir
2016-02-10 16:37:03 +01:00
Joakim Nohlgård
717d89899f
make: Move Makefile.msp430_common to cpu dir
2016-02-10 16:37:03 +01:00
Joakim Nohlgård
7835ab2be7
make: Move BOARD and CPU includes to Makefile.modules
2016-02-10 16:37:03 +01:00
Joakim Nohlgård
deba387393
cortexm_common: Move toolchain settings to cpu dir
2016-02-10 16:37:03 +01:00
Hauke Petersen
ea8db10524
cpu/stm32: use common CPUID implementation
2016-02-10 09:12:30 +01:00
Hauke Petersen
7c5bab6ac0
cpu/stm32l1: use common STM32 files
2016-02-10 09:12:30 +01:00
Hauke Petersen
c482bfbaed
cpu/stm32f4: use common STM32 files
2016-02-10 09:12:30 +01:00
Hauke Petersen
14a4ed69b6
cpu/stm32f3: use common STM32 files
2016-02-10 09:12:29 +01:00
Hauke Petersen
bae3e7185a
cpu/stm32f1: use common STM32 files
2016-02-10 09:12:29 +01:00
Hauke Petersen
a04f509857
cpu/stm32f0: use common STM32 files
2016-02-10 09:12:29 +01:00
Hauke Petersen
f4587b3794
cpu: added place for shared STM32 files
2016-02-10 09:12:29 +01:00
Hauke Petersen
436d8f6bc2
Merge pull request #4762 from haukepetersen/add_nrf_common
...
cpu/nrf5x: created common dir for shared files
2016-02-09 22:36:01 +01:00
Hauke Petersen
8dd790bb33
cpu/nrf5x: unified CPUID driver implementation
2016-02-09 16:59:10 +01:00
Hauke Petersen
209e18debd
cpu/nrf5x: unified UART driver
2016-02-09 16:58:56 +01:00
Hauke Petersen
d1808717cb
cpu/nrf5x: unificitaion of GPIO driver
2016-02-09 16:58:56 +01:00
Hauke Petersen
3745487b95
cpu/nrf52: use the nrf5x_common folder
2016-02-09 16:51:54 +01:00
Hauke Petersen
fdd650d1ca
cpu/nrf51: use the nrf5x_common folder
2016-02-09 16:51:54 +01:00
Hauke Petersen
33132c8a60
cpu: added common cpu for the nRF5x family
2016-02-09 16:51:54 +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
Cenk Gündoğan
3faf44bc83
Merge pull request #4776 from haukepetersen/fix_my_email
...
cpu: use Hauke's correct email address
2016-02-09 16:15:13 +01:00
Hauke Petersen
975e027360
cpu: use Hauke's correct email address
2016-02-09 16:09:40 +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
1d766bdb9e
cpu/samd21: use sam21_common implementations
2016-02-08 18:45:16 +01:00
Hauke Petersen
ef3169fbf7
cpu/saml21: use sam21_common implementations
2016-02-08 18:45:15 +01:00
Hauke Petersen
c5924f0d04
cpu/sam21: added common dir for sam[l|d]21 CPUs
2016-02-08 18:45:15 +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
8dd81e8d9a
cpu/kw2x: Add __attribute__((used)) to interrupt vector
2016-02-08 13:07:52 +01:00
Joakim Nohlgård
a1d2ecc3de
cpu/k64f: Add __attribute__((used)) to interrupt vector
2016-02-08 13:07:52 +01:00
Joakim Nohlgård
570d188a26
cpu/k60: Add __attribute__((used)) to interrupt vector
2016-02-08 13:07:52 +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
5165e48399
Merge pull request #4746 from haukepetersen/add_board_nrf52dk
...
cpu/boards: added support for nRF52 DK
2016-02-05 15:11:57 +01:00
Hauke Petersen
2964969600
cpu: added support for nrf52
2016-02-05 12:07:32 +01:00
Hauke Petersen
e8e673d6ce
cpu/sam3: simplified struct init in GPIO driver
2016-02-04 15:34:07 +01:00
Hauke Petersen
1d8d33d484
Merge pull request #4704 from haukepetersen/opt_periph_gpioisrctx
...
drivers/gpio: added default ISR context struct
2016-02-04 15:29:48 +01:00
Victor Arino
b40cb6bebb
stm32f1/i2c: uncrustify untouched code
2016-02-03 17:42:42 +01:00
Victor Arino
57e20941f5
stm32f1/i2c: add support for secondary i2c
2016-02-03 17:42:42 +01:00
Victor Arino
a477d6f81d
stm32f1/i2c: do not block in case of error
...
Due to the errata of some of the stm32f1xx family, the i2c lines need
to be toggled when setting up the peripheral. This however seems to
hang some i2c slaves which do not ack the first message sent after
initialization. This caused the code to be stucked waiting for the
never coming ACK. The same situation could occur when a byte was not
acked due to whatever reason.
The previous implementation of the i2c driver didn't allow recovery
on these situations. Now the driver does not block forever but rather
returns a <0 code to indicate that the transaction was not succesful.
2016-02-03 17:42:42 +01:00
Victor Arino
da5b03df5d
stm32f1/i2c: remove duplicated code
2016-02-03 17:42:42 +01:00
Victor Arino
be3279f9bc
stm32f1/i2c: fix multi byte reading
2016-02-03 17:35:29 +01:00
Joakim Nohlgård
4fd7f23650
cpu/stm32f4: Fix DMA race bug ( #4716 )
2016-01-30 07:04:26 +01:00
Hauke Petersen
35eb99a46e
Merge pull request #3984 from kaspar030/simplify_reboot
...
core: cpu: sys: simplify reboot()
2016-01-29 14:24:08 +01:00
Hauke Petersen
ad0abdcadd
cpus: use default isr_ctx struct in GPIO drivers
2016-01-27 17:00:37 +01:00
Hauke Petersen
f6d350a5a5
Merge pull request #4502 from haukepetersen/fix_doc_cc2538
...
cpu/cc2538: vendor header cleanup
2016-01-27 16:32:56 +01:00
938ff5c5e7
core: cpu: sys: simplify reboot()
2016-01-27 13:30:01 +01:00
Hauke Petersen
e1df626a9b
cpu/cc2538: doxgen fixes
...
- added missing documentation
- repaired doxygen groups
2016-01-27 09:55:24 +01:00
Hauke Petersen
ad23d0dcea
cpu/cc2538: harmonized naming of vendor headers
2016-01-27 09:55:24 +01:00
Hauke Petersen
dda721ca06
cpu/samd21: s/F_CPU/CLOCK_CORECLOCK/
2016-01-27 09:52:44 +01:00
Hauke Petersen
3101baa589
cpu/sam3: s/F_CPU/CLOCK_CORECLOCK/
2016-01-27 09:52:44 +01:00
Hauke Petersen
4f35f8d57c
cpu/lpc11u34: s/F_CPU/CLOCK_CORECLOCK/
2016-01-27 09:52:44 +01:00
Hauke Petersen
178e82c0e9
cpu/lpc2387: s/F_CPU/CLOCK_CORECLOCK/
2016-01-27 09:52:44 +01:00
Hauke Petersen
6fc95e4d6d
cpu/atmega2560: removed deps to F_CPU
2016-01-27 09:52:44 +01:00
Hauke Petersen
7cad2577ed
cpu/stm32f1: adjusted to new vendor headers
2016-01-26 23:45:50 +01:00
Hauke Petersen
b6194fad42
cpu/stm32f1: updated vendor header files
2016-01-26 23:45:50 +01:00
Peter Kietzmann
cc97fc63ef
Merge pull request #4670 from TobiasFredersdorf/new_sam3_cpu_gpioupdate
...
cpu/sam3: udpate gpio driver
2016-01-26 17:13:58 +01:00
TobiasFredersdorf
9864c84c92
cpu/sam3: udpate gpio driver
2016-01-26 11:05:37 +01:00
Frank Holtz
1c32a536bc
pkg/driver: native random fix for micro-ecc
2016-01-25 21:03:03 +01:00
5f44a6938d
cpu: native: adapt xtimer backoff values to periph/timer change
2016-01-06 22:07:13 +01:00
ceaeee5c5d
Revert "native: periph/timer: prevent underflow in timer_set_absolute"
...
This reverts commit ec441e9aa6
.
2016-01-06 22:07:13 +01:00
Oleg Hahm
6d135d3579
native: make use of TLSF malloc and co
...
In order to make native behave more similar to other platforms, it should also use TLSF's dynamic memory allocation if included. It will still fall back to the system's malloc implementation when building for use with valgrind, to leverage its memory leak detection mechanisms.
2016-01-03 20:53:08 +01:00
Oleg Hahm
7b95366594
Merge pull request #4455 from OlegHahm/tlsf_warning_free
...
pkg tlsf: make it compile with -pedantic
2015-12-16 12:51:44 +01:00
Oleg Hahm
26ed138fe2
Merge pull request #4476 from kaspar030/remove_dINT_eINT
...
core: remove eINT/dINT
2015-12-16 11:10:56 +01:00
Hauke Petersen
c57c608f19
Merge pull request #4422 from lebrush/board-nucleo-f103
...
Board nucleo f103
2015-12-16 10:51:26 +01:00
Victor Arino
82796f9aea
cpu/stm32f1: uncrustified spi driver
2015-12-15 17:23:27 +01:00
Victor Arino
f753ce7809
cpu/stm32f1: allow disabling spi peripherals
...
This allows disabling SPI peripherals even if defined in periph_conf.h
by setting the definition SPI_*_EN to 0.
The peripherals were tested against ifdef which caused to include the
code even if the peripheral was disabled, which was incompatible with
the current spi.h common implementation.
2015-12-15 17:23:27 +01:00
Victor Arino
f27113b2cc
cpu/stm32f1: add linkerscript for stm32f103rb
2015-12-15 17:23:23 +01:00
Oleg Hahm
60e283e6a2
pkg tlsf: add tlsf initialization function
...
The init function was patched out, but is actually required to compile without warnings with -pedantic enabled.
This patch also updates ccn-lite and x86 support accordingly.
2015-12-15 16:42:43 +01:00
Oleg Hahm
4114382d4e
Merge pull request #4458 from nqd/sam3-cpuid
...
Sam3 cpuid
2015-12-15 16:09:27 +01:00
2d2bfbf7c9
cpu: msp430: remove dINT/eINT
2015-12-14 21:34:48 +01:00
05a572eb58
cpu: x86: remove obsolete dINT/eINT
2015-12-14 21:34:15 +01:00
nqdinh
e24d5031fe
cpu/sam3: added cpuid periph driver implementation
2015-12-14 22:17:47 +07:00
DipSwitch
4064858e8d
stm32f2: add initial support for stm32f2
2015-12-13 11:00:06 +01:00
Hauke Petersen
8a96a62c42
cpu/stm32f4discovery: fixed freq return in pwm_init
2015-12-10 17:14:12 +01:00
Oleg Hahm
4e5facd750
Merge pull request #4428 from PeterKietzmann/revert_stm32l1_i2c
...
Revert "stm32l1/i2c.c: adapt for new periph driver interface"
2015-12-08 11:58:31 +01:00
Thomas Eichinger
0f80e688f3
Merge pull request #4115 from haukepetersen/opt_stm32f4_uart
...
cpu/stm32f4: optimized UART driver
2015-12-08 11:44:13 +01:00
Oleg Hahm
f3e3e40bda
Merge pull request #4360 from OlegHahm/relic_import
...
Add a RELIC package and unit test that shows how to use it
2015-12-08 10:05:54 +01:00
Oleg Hahm
a236fabcd4
cpu stm32f4: rename HASH macro
...
The HASH macro for an address in STM32's MCU hardware implementation is prone to naming clashes.
2015-12-08 08:58:11 +01:00
Oleg Hahm
fcb5fbf7f6
Merge pull request #4398 from OlegHahm/stm_header_cleanup
...
cpu: remove superfluous definitions in ST header
2015-12-08 08:52:23 +01:00
Oleg Hahm
f3d161d97a
cpu: remove superfluous definitions in ST header
2015-12-08 01:48:21 +01:00
Oleg Hahm
aa3ef774d0
cpu stm32f1 periph spi: simplify condition
2015-12-08 01:48:21 +01:00
Oleg Hahm
4780b5cba1
cc2538: fix pedantic compiler warnings
2015-12-07 20:28:53 +01:00
Oleg Hahm
d92ec1d11e
lpc2387: fix pedantic compiler warnings
2015-12-07 20:28:53 +01:00
Oleg Hahm
67c1084825
sam3: fix pedantic compiler warnings
2015-12-07 20:28:52 +01:00
Oleg Hahm
875f48979a
avsextrem: some cleanup
2015-12-07 20:28:52 +01:00
Oleg Hahm
20f1750fb6
cpu stm32fX: fix pedantic compiler warnings
2015-12-07 20:28:52 +01:00
Oleg Hahm
e88ebc1c84
cpu nrf51: fix pedantic compiler warnings
...
Make compiler doesn't complain about unused variables and unnamed unions.
2015-12-07 20:28:52 +01:00
Oleg Hahm
f24e810de5
cpu cortexm_common: fix pedantic compiler warnings
2015-12-07 20:28:52 +01:00
Hauke Petersen
b75e5fe407
cpu/stm32f4: adapted DMA_TypeDef struct for f401
2015-12-07 18:00:41 +01:00
Hauke Petersen
a2247a3400
cpu/stm32f4: significantly optimized UART driver
2015-12-07 18:00:40 +01:00
Hauke Petersen
b13f5cf801
cpu/stm32f4: optimized vendor header slightly
2015-12-07 18:00:40 +01:00
PeterKietzmann
7ff9467970
Revert "stm32l1/i2c.c: adapt for new periph driver interface"
...
This reverts commit e9215a6cc1
.
2015-12-07 17:21:34 +01:00
14a54bddce
cpu: native: netdev2_tap: make use of netdev2_eth module
2015-12-07 11:40:39 +01:00
René Herthel
e9215a6cc1
stm32l1/i2c.c: adapt for new periph driver interface
2015-12-03 19:50:06 +01:00
Marc
96444d632e
cpu/lm4f120: reworking timer
2015-12-02 13:58:23 +01:00
Oleg Hahm
4d27214a8d
Merge pull request #4258 from BytesGalore/cpp11_use_xtimer
...
cpp11: vtimer->xtimer
2015-11-30 19:30:40 +01:00
Peter Kietzmann
329820ddd4
Merge pull request #4119 from latsku/nucleo-f401
...
boards: Add support for Nucleo-f401
2015-11-30 10:52:24 +01:00
Lari Lehtomäki
14be504b6a
boards/nucleo-f401: Add initial support
...
cpu: Add support for STM32F401xE cpu
boards: Add support for Nucleo-f401
boards/nucleo-f401: New line fixes and comment on green led pin
board/nucleo-f401: Added LED GPIO
board/nucleo-f401: Fixed LED GPIO
board/nucleo-f401: Minor fixes
2015-11-30 11:06:34 +02:00
04bc408931
cpu: msp430: add write() + needed libc header fixes
2015-11-28 22:09:37 +01:00
BytesGalore
529e83675e
cpp11: switched to use xtimer
...
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
2015-11-27 18:36:25 +01:00
28d9eab420
cpu: atmega_common_ add off_t to sys/types.h
2015-11-26 20:41:36 +01:00
René Kijewski
ab3345ac5a
Merge pull request #4321 from kaspar030/cleanup_posix
...
sys: cleanup posix compat code
2015-11-26 20:39:30 +01:00
c4e55a2e6d
cpu: msp430-common: add unistd.h
2015-11-25 14:36:45 +01:00
4769c3075d
cpu: avr_common: add unistd.h
2015-11-25 14:36:45 +01:00
Hauke Petersen
c389f5be02
cpu/cortexm_common: fixes to vectors_cortexm.c
...
- (optimization) only fill ISR stack with canary values if
DEVELHELP macro is set (as we don't use these values otherwise)
- (cosmetic) moved define before variable definitions
2015-11-23 12:13:17 +01:00
Hauke Petersen
3fc71ef694
Merge pull request #4307 from haukepetersen/opt_cortex_isrstack
...
cpu/cortexm_common: moved ISR stack definition
2015-11-20 12:11:19 +01:00
Hauke Petersen
476167a86c
cpu: fixed any doxygen warning realated to 'periph'
2015-11-19 16:08:38 +01:00
Hauke Petersen
cf11b073d6
cpu/cortexm_common: define ISR stacksize in cpu.h
2015-11-19 11:55:35 +01:00
Hauke Petersen
3d35c33cb2
cpu/stm32f1: fixed i2c driver
...
the _stop() function now blocks until the transfer
is complete. Not waiting can lead to concurrent bus
access and subsequent to bus errors.
2015-11-18 14:57:15 +01:00
Hauke Petersen
047f7544a4
Merge pull request #4198 from thomaseichinger/pr/fix_4197
...
stm32f1/i2c: Disable I2C module before initialization
2015-11-17 17:41:33 +01:00
Ludwig Knüpfer
a86866ea9f
cpu/native: malloc.h for osx: fix doxygen, move
2015-11-15 12:14:59 +01:00
Andreas "Paul" Pauli
e5b6566c9a
Merge pull request #4170 from haukepetersen/opt_sam3_uart
...
cpu/sam3: cleaned up UART driver
2015-11-11 16:21:10 +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
511539bb7a
Merge pull request #4247 from cgundogan/pr/stm32/remove_vtimer_include
...
cpu: stm32f[34]: remove unused vtimer include
2015-11-11 08:57:55 +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
Cenk Gündoğan
18427a8074
cpu: stm32f4: spi: remove unused vtimer include
2015-11-10 12:27:17 +01:00
Cenk Gündoğan
6e7f83a390
cpu: stm32f3: spi: remove unused vtimer include
2015-11-10 12:26:58 +01:00
Peter Kietzmann
745320dc41
Merge pull request #4232 from DipSwitch/fix_gpio_read
...
gpio: Pin direction readout of gpio_read was invalid
2015-11-09 13:18:13 +01:00
Oleg Hahm
4ef889f9ce
Merge pull request #4226 from DipSwitch/stm32f1_add_spi_12
...
cpu/stm32f1/spi: add SPI peripheral 1 and 2
2015-11-07 18:06:09 +09:00
DipSwitch
4186e38976
stm32f1/gpio: pin direction readout of gpio_read was invalid
2015-11-06 16:57: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
DipSwitch
2e2ec37846
cpu/stm32f1/spi: add SPI peripheral 1 and 2
2015-11-04 13:40:20 +01:00
René Herthel
13ae0ab979
atmega2560/cpu: Fixed wrong using of UART macros
2015-11-03 18:29:53 +01:00
Hauke Petersen
3ab389b1fd
Merge pull request #4134 from gebart/pr/cortexm-hardfault-naked-fix
...
cpu/cortexm_common: only set naked attribute on DEVELHELP hardfault handler
2015-11-02 18:04:57 +01:00
Thomas Eichinger
96b6d4b1dd
stm32f1/i2c: Disable I2C module before initialization
...
When initializing multiple drivers connected to the same
I2C bus, the bus should be disabled before pin toggeling
and reinitialization.
2015-11-01 11:51:51 +09:00
Ludwig Knüpfer
3b2d26b0dc
cpu/saml21: fix typo in gpio.c
2015-10-31 17:35:41 +01:00
Ludwig Knüpfer
406aea453c
cpu/samd21: fix typo in gpio.c
2015-10-31 17:28:16 +01:00
Joakim Nohlgård
76bddaf213
Merge pull request #3283 from gebart/pr/kinetis-errata-e4218
...
k60: Add workaround for errata e4218
2015-10-30 07:33:31 +01:00
Peter Kietzmann
6fcea29bdc
Merge pull request #4042 from gebart/pr/kinetis-gpio-periph-refactor
...
kinetis_common: Refactor GPIO implementation
2015-10-29 08:29:09 +01:00
Hauke Petersen
7d1c952734
Merge pull request #3571 from haukepetersen/add_board_wstk6220a
...
boards/cpu: added SLWSTK6220A and EZR32WG support
2015-10-28 20:58:43 +01:00
Hauke Petersen
b9707cd8f3
cpu/ezr32wg: added extern C to vendor headers
2015-10-28 17:33:44 +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
Martine Lenders
a370a12f75
msp430: fix doc to time.h
2015-10-28 13:59:52 +01:00
Martine Lenders
77b0ffffec
msp430: include missing types to time.h
2015-10-28 13:59:35 +01:00
Hauke Petersen
36646865f0
cpu: added support for SiLabs EZR32WG
2015-10-28 13:50:34 +01:00
Hauke Petersen
e1f028a859
cpu/sam3: reworked the UART driver
2015-10-28 12:05:35 +01:00
Hauke Petersen
85e05d411e
Merge pull request #4114 from haukepetersen/opt_periph_uart
...
drivers/periph/uart: remodeled UART interface
2015-10-28 10:50:03 +01:00
Joakim Nohlgård
3033738e30
Merge pull request #4126 from gebart/pr/cortexm-r7-O0-fix
...
cortexm-common: Workaround for error: r7 cannot be used in asm here
2015-10-28 07:01:32 +01:00
Joakim Nohlgård
c3340b7ccf
cpu/cortexm_common: Use PRIx32 for printing uint32_t in hard fault handler
...
fixes errors like:
error: format specifies type 'unsigned long' but the argument has
type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
2015-10-28 06:59:28 +01:00
Joakim Nohlgård
a5449bcbd4
cpu/cortexm_common: only set naked attribute on DEVELHELP hardfault handler
...
Fixes error on LLVM/Clang:
cpu/cortexm_common/vectors_cortexm.c:287:5: error: non-ASM statement in naked function is not supported
core_panic(PANIC_HARD_FAULT, "HARD FAULT HANDLER");
^
cpu/cortexm_common/include/vectors_cortexm.h:65:46: note: attribute is here
void hard_fault_default(void) __attribute__((naked));
^
1 error generated.
2015-10-28 06:51:51 +01:00
Peter Kietzmann
f5b2c80bd6
Merge pull request #4015 from daniel-k/pr/cortexm_hardfault_overflow
...
cortexm_common: check for possible stack overflow in hardfault handler
2015-10-27 19:19:32 +01:00
daniel-k
c5e220c140
cortexm_common: check for possible stack overflow in hardfault handler
2015-10-27 15:58:36 +01:00
Hauke Petersen
19cd4b32c4
cpu/stm32l1: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
1eb63f20a7
cpu/stm32f4: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
9741267d9d
cpu/stm32f3: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
59b935bd1e
cpu/stm32f1: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
b71d8ea750
cpu/stm32f0: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
65673663b5
cpu/saml21: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
a93f15b5cb
cpu/samd21: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
07a7d93690
cpu/msp430fxyz: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
fe249b9006
cpu/lpc2387: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
68670f038f
cpu/lpc1768: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
d31401ef1a
cpu/lpc11u34: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
14796f2351
cpu/lm4f120: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
c7d256d83e
cpu/kinetis_common: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
a58d577cb1
cpu/cc2538: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
1125f5feb3
cpu/atmega2560: adapted UART driver
2015-10-27 14:59:37 +01:00
Hauke Petersen
8044e457cb
cpu/atmega2560: adapted UART driver
2015-10-27 14:59:37 +01:00
Hauke Petersen
4c3a397f34
cpu/sam3: adapted UART driver
2015-10-27 14:59:37 +01:00
Hauke Petersen
d32c03932e
cpu/nrf51: adapted UART driver
2015-10-27 14:59:37 +01:00
Hauke Petersen
97af043227
cpu/stm32f4: adapted UART driver
2015-10-27 14:59:37 +01:00
Peter Kietzmann
59e2fd8a22
Merge pull request #4148 from LudwigKnuepfer/pr/nrf51-adc
...
cpu/nrf51 + boards: add ADC implementation
2015-10-27 14:49:32 +01:00
Peter Kietzmann
816bef6220
Merge pull request #4094 from danielamkaer/atmega2560_gpio_init_fix
...
cpu/atmega2560: fixes the configuration of pullup resistors in gpio.c
2015-10-26 08:45:34 +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
Peter Kietzmann
9f6cd49559
Merge pull request #4047 from danielamkaer/bugfix_atmega2560_gpio
...
cpu/atmega2560: gpio - fixes a bug where gpio_* behaves incorrect if …
2015-10-26 08:17:36 +01:00
Joakim Gebart
c404bd97ad
k60: Add workaround for errata e4218
...
e4218: SIM/FLEXBUS: SIM_SCGC7[FLEXBUS] bit should be cleared when the
FlexBus is not being used.
Errata type: Errata
Description:
The SIM_SCGC7[FLEXBUS] bit is set by default. This means that the
FlexBus will be enabled and come up in global chip select mode. With
some code sequence and register value combinations the core could
attempt to prefetch from the FlexBus even though it might not actually
use the value it prefetched. In the case where the FlexBus is
unconfigured, this can result in a hung bus cycle on the FlexBus.
Workaround:
- If the FlexBus is not being used, disabled the clock to the FlexBus
during chip initialization by clearing the SIM_SCGC7[FLEXBUS] bit.
- If the FlexBus will be used, then enable at least one chip select as
early in the chip initialization process as possible.
2015-10-25 15:12:22 +01:00
Ludwig Knüpfer
73d21efe7d
cpu/nrf51: add ADC driver
2015-10-25 14:30:14 +01:00
Ludwig Knüpfer
0b5918003f
cpu/nrf51 + boards: fix typo - TIEMER -> TIMER
2015-10-25 08:07:21 +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
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
Daniel Amkær Sørensen
6040531ae1
cpu/atmega2560: fixes the configuration of pullup resistors in gpio.c
2015-10-22 07:05:33 +02:00
Joakim Nohlgård
30584a49e5
cortexm-common: Workaround for error: r7 cannot be used in asm here
...
Fixes https://github.com/RIOT-OS/RIOT/issues/4125
2015-10-21 14:35:02 +02:00
Hauke Petersen
05ef9fee99
cpu/kinetis_common: removed i2c_init_slave()
2015-10-20 16:58:06 +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
Thomas Eichinger
79a3b05b42
Merge pull request #4092 from ks156/spi
...
cpu/lpc11u34 : Added SPI for NXP LPC11U34 (SPI_0 and SPI_1)
2015-10-16 17:48:23 +02:00
Paul Rathgeb
df68ac9f79
cpu/lpc11u34 : Added SPI for NXP LPC11U34 (SPI_0 and SPI_1)
...
make: Blacklisted 'weio' in driver_at86rf2xx and driver_kw2xrf due to insufficient memory
2015-10-16 17:28:09 +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
Thomas Eichinger
02e2d8c353
Merge pull request #4084 from ks156/adc
...
cpu/lpc11u34 : Added ADC support for LPC11U34
2015-10-14 10:22:09 +02:00
Paul Rathgeb
c2d8d27322
cpu/lpc11u34 : Added ADC support for LPC11U34
2015-10-13 21:45:17 +02:00
Thomas Eichinger
2b29abed8e
Merge pull request #4071 from thomaseichinger/hauke-fix-gpio-gpiodev
...
drivers/gpio: renamed GPIO(x,y) macro to GPIO_PIN
2015-10-13 16:05:19 +02:00
Hauke Petersen
d43dc9182f
cpu: s/GPIO(x,y)/GPIO_PIN(x,y)/
2015-10-13 14:59:54 +02:00
8c08c9f731
Merge pull request #4049 from thomaseichinger/pr/mega_gpio_oob
...
cpu/atmega2560: fix out of bounds array access
2015-10-13 13:00:07 +02:00
Thomas Eichinger
c0782d68e8
Merge pull request #4070 from thomaseichinger/hauke_fix_l1_uartpins
...
cpu/stm32l1: cleaned up UART pin configuration slightly
2015-10-13 11:37:12 +02:00
daniel-k
70c8f355c5
samd21: don't change priority of interrupts, this is really evil
2015-10-12 19:53:43 +02:00
Hauke Petersen
cdcdd185af
boards/nucleo-l1: adapted UART configuration
2015-10-10 13:24:28 +02:00
Paul Rathgeb
8b97ef12d5
cpu/lpc11u34 : Add CPUID support and added this capability to board/weio
2015-10-10 09:23:45 +02:00
Hauke Petersen
2e84fbf85e
cpu/stm32l1: optimized pin init in UART driver
2015-10-09 11:15:34 +02:00
Thomas Eichinger
89c0f42b00
Merge pull request #4029 from ks156/pwm
...
cpu/lpc11u34 : Peripheral addition : PWM
2015-10-08 17:00:52 +02:00
Cenk Gündoğan
05fe4a33d8
Merge pull request #3870 from cgundogan/pr/cpu/cortexm0plus
...
cpu/Makefile.include.cortexm_common: don't use cortex-m0plus for clang if unsupported
2015-10-08 16:50:39 +02:00
Paul Rathgeb
01e5c056d9
cpu/lpc11u34 : Added PWM support for the NXP LPC11U34
...
and added PWM capabilities to the board WeIO
2015-10-08 15:37:38 +02:00
Thomas Eichinger
11895d4f07
cpu/atmega2560: fix out of bounds array access
2015-10-05 13:55:16 +02:00
Daniel Amkær Sørensen
e500301f1c
cpu/atmega2560: gpio - fixes a bug where gpio_* behaves incorrect if PORTn address > 0xFF
2015-10-05 12:43:35 +02:00
Ludwig Knüpfer
dd3229aa62
native: dynamically load malloc
...
g++ 5.2.0 apparently requires malloc before startup is run.
2015-10-04 18:13:12 +02:00
Paul Rathgeb
53b6df3751
cpu/lpc11u34: Fixed typo
2015-10-02 14:56:52 +02:00
Paul Rathgeb
100bd51a64
cpu/lpc11u34 : Added a new CPU definition for NXP LPC11U34
...
This CPU is used in the WeIO (www.we-io.net)
board.
Peripheral included :
- timer
- uart
- gpio
2015-10-01 20:11:00 +02:00
5b0dc7641f
Merge pull request #4004 from sgso/used_attribute_for_lto
...
cpu/cortexm_common: add used attributes for LTO
2015-10-01 11:18:46 +02:00
Peter Kietzmann
4e05254eb7
Merge pull request #3893 from haukepetersen/opt_f1_baudcalc
...
cpu/stm32f1: optimized baudrate calculation
2015-09-30 17:20:08 +02:00
Sebastian Sontberg
bc1e6c815e
cpu/cortexm_common: add used attributes for LTO
2015-09-30 15:56:38 +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
Thomas Eichinger
053d2498fc
Merge pull request #3193 from locicontrols/cc2538-uart-fixes
...
cpu/cc2538: misc UART driver fixes
2015-09-30 00:30:31 +02:00
Peter Kietzmann
076cbb6c15
Merge pull request #3897 from haukepetersen/opt_l1_baudcalc
...
cpu/stm32l1: optimized baudrate calculation
2015-09-29 23:41:27 +02:00
Peter Kietzmann
c797117be1
Merge pull request #3896 from haukepetersen/opt_f4_baudcalc
...
cpu/stm32f4: optimized baudrate calculation
2015-09-29 23:30:35 +02:00
Peter Kietzmann
6dd73a0e70
Merge pull request #3895 from haukepetersen/opt_f3_baudcalc
...
cpu/stm32f3: optimized baudrate calculation
2015-09-29 22:24:23 +02:00
Peter Kietzmann
15b5e09d9f
Merge pull request #3894 from haukepetersen/opt_f0_baudcalc
...
cpu/stm32f0: optimized baudrate calculation
2015-09-29 21:01:37 +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
Ian Martin
40b93ea6ad
cpu/cc2538: uart init overhaul
2015-09-29 12:26:13 -04:00
Ian Martin
aca53006b0
cpu/cc2538: preserve UART_CTL flags when clearing an error condition
2015-09-29 12:26:13 -04:00
Ian Martin
b2c51bed6a
cpu/cc2538: eliminate unused macros UART_1_CTS_PORT and UART_1_RTS_PORT
2015-09-29 12:26:13 -04:00
Ian Martin
d70705f840
cpu/cc2538: round when computing the UART baudrate divisor
2015-09-29 12:26:13 -04:00
effb15a2cc
Merge pull request #3313 from gebart/pr/eINT-fixes
...
eINT/dINT fixes
2015-09-29 12:39:16 +02:00
Daniel Krebs
1c585688bc
Merge pull request #3700 from gebart/pr/cortexm-state-rebased
...
cortexm: Attempt to reconstruct state for debugging hard faults
2015-09-29 11:26:28 +02:00
Oleg Hahm
4cfb8140e4
Merge pull request #3978 from LudwigOrtmann/pr/namechange
...
documentation: update my name (Ortmann -> Knüpfer)
2015-09-28 10:38:41 +02:00
Ludwig Knüpfer
eda6328e21
documentation: update my name (Ortmann -> Knüpfer)
2015-09-27 18:58:30 +02:00
Oleg Hahm
f035bced0c
doc: put network devices and sensors in subgroups
2015-09-27 18:25:43 +02:00
d9414fdab4
cpu: msp430fxyz: switch back to uart_stdio
2015-09-25 11:09:19 +02:00
Hauke Petersen
f7057da00d
Merge pull request #3909 from gebart/pr/k60-delete-old-devio
...
cpu/k60: remove leftover files from old syscall implementation
2015-09-24 16:29:07 +02:00
Joakim Nohlgård
015098d2c2
kinetis: timer: return error if timer channel is not zero.
2015-09-24 06:46:34 +02:00
Hauke Petersen
ff84390627
Merge pull request #3939 from haukepetersen/fix_native_periph_timer
...
native/timer: fix return value for invalid channel
2015-09-23 22:54:05 +02:00
d0ff4946ea
cpu: lpc2387: add spi_conf_pins()
2015-09-23 19:00:55 +02:00
Hauke Petersen
1664bcbf59
native/timer: fix return value for invalid channel
2015-09-23 14:48:23 +02:00
Joakim Gebart
56c6d629f7
cpu/cortexm_common: Improve hardfault debug information
...
Print more relevant information and attempt to reconstruct the state for GDB before halting.
2015-09-23 13:50:06 +02:00
Cenk Gündoğan
32ff8e30e1
cpu/Makefile.include.cortexm_common: don't use cortex-m0plus for clang if unsupported
2015-09-22 21:19:59 +02:00
Hauke Petersen
1f02e7c86a
Merge pull request #3856 from haukepetersen/opt_l1_timer
...
cpu/stm32l1: optimized and fixed timer driver
2015-09-22 14:45:00 +02:00
Hauke Petersen
d7cf9b3912
cpu/stm32l1: optimized and fixed timer driver
2015-09-22 12:30:41 +02:00
483b59554a
cpu: msp430fxyz: fix usart ISR
2015-09-22 10:43:27 +02:00
c122571801
cpu: msp430-common: fix context save/restore
...
Previously, __restore_context was meddling with the to-be-restored
context SR on the stack, not correctly restoring GIE.
Now, we let the CPU restore the correct status register as saved in
__save_context.
Contains some simplification of the context save/restore logic.
2015-09-22 10:43:27 +02:00
Joakim Gebart
96528ea266
cpu/k60: remove leftover files from old syscall implementation
2015-09-21 08:45:07 +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
Oleg Hahm
d89ac480eb
atmega: added panic function
2015-09-20 21:44:26 +02:00
Joakim Nohlgård
98c465008b
all: Update @gebart family name, email
2015-09-20 13:47:39 +02:00
Oleg Hahm
d664f96e61
lm4f120: removed superfluous stellaris debug.h
2015-09-20 01:51:47 +02:00
Oleg Hahm
e15bdd257a
debug: replace __FILE__ by RIOT_RELATIVE_FILE
2015-09-20 01:51:47 +02:00
Joakim Gebart
27565a655e
cpu/native: remove dINT/eINT definitions
2015-09-19 10:38:18 +02:00
Joakim Gebart
6473fa77d4
cpu/arm7_common: remove dINT/eINT definitions
2015-09-19 10:37:20 +02:00
Joakim Gebart
b6a88cba5f
cpu/cortexm_common: remove dINT/eINT definitions
2015-09-19 10:37:17 +02:00
Joakim Gebart
199528d3fb
cpu/atmega: remove dINT/eINT definitions
2015-09-19 10:35:58 +02:00
Joakim Gebart
0d2efd5fe7
native/syscalls: Use restoreIRQ
2015-09-19 10:35:58 +02:00
Hauke Petersen
b3b7fe790f
cpu/stm32l1: optimized baudrate calculation
2015-09-18 12:25:21 +02:00
Hauke Petersen
d17973a060
cpu/stm32f4: optimized baudrate calculation
2015-09-18 12:21:46 +02:00
Hauke Petersen
b4e3c2849c
cpu/stm32f3: optimized baudrate calculation
2015-09-18 12:17:01 +02:00
Hauke Petersen
c0c277c49b
cpu/stm32f0: optimized baudrate calculation
2015-09-18 12:10:17 +02:00
Hauke Petersen
6b9ca4d5c0
cpu/stm32f1: optimized baudrate calculation
2015-09-18 12:04:25 +02:00
Hauke Petersen
b49eb93249
cpu/cc430: timer: s/TIMER_DEV/TIMER_BASE/
2015-09-17 13:57:58 +02:00
Hauke Petersen
35aaa62c38
cpu/kinetis_common: s/TIMER_DEV/TIMER_BASE/
2015-09-17 13:57:58 +02:00
Hauke Petersen
7957ce4d75
cpu/msp430fxyz: s/TIMER_DEV/TIMER_BASE/
2015-09-17 13:57:58 +02:00
Hauke Petersen
399e7c1c2e
cpu/msp430: added SPI periph driver
2015-09-17 11:32:38 +02:00
Thomas Eichinger
92cd6dfcba
Merge pull request #3866 from haukepetersen/opt_msp430_board_makefiles
...
boards: Makefile cleanup for MSP430 based boards
2015-09-17 11:30:40 +02:00
Sebastian Sontberg
8b4fcc2a14
cpu: let spi_init_slave() stubs return error codes
2015-09-17 11:19:31 +02:00
Martine Lenders
aaff370bc9
Merge pull request #3710 from authmillenon/cpu/feat/atmega-errno
...
atmega_common: give distinct numbers to errnos
2015-09-17 10:14:57 +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
Hauke Petersen
515d325c89
cpu/msp430xx: some Makefile cleanup
...
- removed redundancies
- optical cleanup
2015-09-16 17:07:26 +02:00
ca540c9d07
cpu: atmega2560: use double-read scheme for timer read
2015-09-16 11:13:42 +02:00
cbb7750202
boards: msba2: add xtimer tuning values, remove HW_TIMER define
2015-09-16 10:58:55 +02:00
a22f0a3c78
cpu: msp430*: remove obsolete hwtimer_compat dependency
2015-09-16 10:58:54 +02:00
832539fc88
cpu: cc430: remove hwtimer support, switch gpioint to xtimer
2015-09-16 10:58:53 +02:00
87d2596819
cpu: cc430: make adc use xtimer
2015-09-16 10:58:53 +02:00
9d088bb3d7
cpu: lpc2387: mci: use xwtimer
2015-09-16 10:58:53 +02:00
4e8bf2cb69
cpu: native: remove hwtimer traces
2015-09-16 10:58:53 +02:00
48b21f00c3
cpu: x86: remove obsolete hwtimer support
2015-09-16 10:58:53 +02:00
b0893a99ba
cpu: lpc2387: adc: use xtimer
2015-09-16 10:58:53 +02:00
2cd4a80054
cpu: native: minor timer-related doxygen updates
2015-09-16 10:58:53 +02:00
012d82ecaf
cpu: arm7_common: remove obsolete hwtimer support
2015-09-16 10:58:53 +02:00
8c147f1e3c
cpu: cc2538: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
d239f3c4fd
cpu: k60: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
c0d3524132
cpu: kinetis_common: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
16e19f3975
cpu: lm4f120: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
8b46d1dfc4
cpu: lpc1768: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
c3fa148256
cpu: msp430-common: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
ea2013ff16
cpu: nrf51: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
90c1e7ce74
cpu: sam3: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
889991503e
cpu: saml21: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
9d75b2f2d9
cpu: stm32f0: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
d7a4f90e69
cpu: stm32f1: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
3e0bcd45c5
cpu: stm32f3: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
01f87b9df0
cpu: stm32f4: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
8e475fa57d
cpu: stm32l1: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
41dff1052e
cpu: x86: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
d82ca16b5a
cpu: atmega2560: drop obsolete hwtimer support
2015-09-16 10:58:52 +02:00
a23169b831
cpu: stmf32f1: remove obsolete hwtimer_compat dependency
2015-09-16 10:58:51 +02:00
391bc02c06
cpu: cortexm_common: busywait before resetting
2015-09-16 10:58:51 +02:00
dd9de14e49
cpu: samd21: remove hwtimer support
2015-09-16 10:58:51 +02:00
fb773bf90a
cpu: native: remove hwtimer_compat dependency
2015-09-16 10:58:51 +02:00
Peter Kietzmann
0f740f611c
Merge pull request #3829 from DipSwitch/spi_set_pin_speed
...
cpu/stm32l1-f0/spi: Configure the SPI pins as highspeed
2015-09-16 10:23:43 +02:00
dd87073a60
Merge pull request #3826 from OlegHahm/netdev2_tap_buffer_size
...
netdev2_tap: set maximum buffer size correctly
2015-09-15 13:23:28 +02:00
Hauke Petersen
1a29163b63
cpu/samd21: optimized UART implementation
2015-09-14 17:20:01 +02:00
bd27feefec
cpu: atmega2560: simplify periph/timer implementation
2015-09-14 10:47:35 +02:00
7fcb2b718e
cpu: atmega: implement irq_arch_in
2015-09-14 10:47:28 +02:00
Martine Lenders
93f555ef69
Merge pull request #3782 from OlegHahm/RIOT_assert
...
core: RIOT's own assert macro
2015-09-12 13:12:34 +02:00
DipSwitch
1fe296d707
cpu/stm32l1-f0/spi: Configure the SPI pins as highspeed
2015-09-12 12:47:32 +02:00
Oleg Hahm
49917a5797
core: cpu: fix check for DEVELHELP
2015-09-12 12:43:15 +02:00
Oleg Hahm
fd121a94e6
netdev2_tap: set maximum buffer size correctly
2015-09-12 12:02:48 +02:00
Oleg Hahm
f3245cecac
core: panic: last instruction's address for assert
2015-09-11 23:23:31 +02:00
Oleg Hahm
d7161b6d4b
cpu: inline function to print instruction register
2015-09-11 23:23:31 +02:00
Oleg Hahm
143d613307
x86: added missing panic function
2015-09-11 16:09:28 +02:00
Martine Lenders
1c0cf3bf9c
native: netdev2_tap: fix NETOPT_IS_WIRED flag
2015-09-11 13:11:33 +02:00
Thomas Eichinger
5a6bc8c284
Merge pull request #3569 from authmillenon/msp430/enh/use-log
...
msp430: use assert instead of printf
2015-09-11 12:47:15 +02:00
Hauke Petersen
a4d393eea3
cpu/stm32f4: fixed typo in prescaler for timer1
2015-09-08 16:22:24 +02:00
Peter Kietzmann
b4bd18e220
Merge pull request #3792 from haukepetersen/fix_stm32f3_gpio_debug
...
cpu/stm32f3: disable debug in GPIO driver
2015-09-07 21:49:34 +02:00
Peter Kietzmann
4e47e909ba
Merge pull request #2799 from ReneHerthel/arduino_2560_gpio
...
Arduino-mega2560 GPIO implementation
2015-09-07 21:43:30 +02:00
Hauke Petersen
32cf5423a2
cpu/stm32f3: disable debug in GPIO driver
2015-09-07 18:13:00 +02:00
Hauke Petersen
92c8f279d9
Merge pull request #3725 from avmelnikoff/cpu/stm32f1
...
cpu/stm32f1: added stm32f103c8 linkerscript
2015-09-07 17:05:33 +02:00
René Herthel
d05151fdef
cpu/mega2560: initial import of a gpio driver
2015-09-07 14:48:15 +02:00
344b56bca8
Merge pull request #3167 from haukepetersen/fix_native_stacksizes
...
cpu/native: adjusted stacksizes
2015-09-05 23:17:45 +02:00
efbd5518f6
cpu: stm32f1: timer: fix race when combining two 16bit timer values
2015-09-05 12:43:37 +02:00
Hauke Petersen
7701aed546
Merge pull request #3164 from kaspar030/remove_uart0
...
sys: remove uart0
2015-09-04 18:54:30 +02:00
48baf5ddcf
Merge pull request #3683 from kaspar030/add_gnrc_netdev2_support
...
sys: net: add gnrc netdev2 support
2015-09-04 18:00:18 +02:00
fe594126e6
cpu: x86: remove obsolete uart0 code
2015-09-04 17:47:01 +02:00
f433c9a5c7
cpu: msp430-common: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
087f11db09
cpu: lpc2387: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
d3006b171a
cpu: cortexm_common: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
f2825d2b55
cpu: atmega2560: remove obsolete UART0_BUFSIZE define
2015-09-04 17:46:23 +02:00
ab863cf831
cpu: x86: remove obsolete uart0 header include
2015-09-04 17:46:23 +02:00
0e4386a46f
native: remove uart0
2015-09-04 17:46:23 +02:00
a13bc46f3e
sys: remove uart0
2015-09-04 17:46:23 +02:00
Oleg Hahm
e2639d7f83
core: use enums for panic
2015-09-04 16:14:35 +02:00
ef972735dc
sys: net: replace dev_eth with netdev2, adapt native tap driver
2015-09-04 15:39:04 +02:00
Hauke Petersen
56ffc5672c
cpu/lpc2387: use hwtimer_compat module
2015-09-04 15:32:50 +02:00
Hauke Petersen
342d292889
cpu/lpc2387: added low-level timer implementation
2015-09-04 15:32:50 +02:00
128d9db0a5
Merge pull request #3766 from haukepetersen/rm_econotag
...
boards: removed support for redbee-econotag
2015-09-04 12:35:41 +02:00
Peter Kietzmann
ef000d46af
Merge pull request #3426 from kaspar030/make_arduino-mega2560_use_uart_stdio
...
board: arduino-mega2560: use uart_stdio
2015-09-03 18:04:19 +02:00
Hauke Petersen
4f0bd75a99
cpu/msp430fxyz: added periph GPIO driver
2015-09-03 16:29:55 +02:00
Hauke Petersen
62d4981457
cpu/arm7_common: removed mc1322x code
2015-09-03 16:09:42 +02:00
Hauke Petersen
4e45d4640c
cpu: removed support for the mc1322x CPU
2015-09-03 16:07:20 +02:00
73e15bdde1
atmega2560: remove uart0, adapt to uart_stdio
2015-09-03 15:53:01 +02:00
Thomas Eichinger
fa11195e38
Merge pull request #3393 from thomaseichinger/pr/fix_osx_warnings_errors
...
native: fix warning error OS X
2015-09-03 14:04:45 +02:00
Hauke Petersen
ed71388532
cpu/msp430fxyz: make use of uart_stdio module
2015-09-03 12:00:33 +02:00
Hauke Petersen
2f63bac318
cpu/msp430fxyz: added low-level UART driver
2015-09-03 12:00:33 +02:00
Hauke Petersen
fb8d15d34a
Merge pull request #3724 from haukepetersen/add_msp430_periph_timer
...
cpu/[msp|cc]430: added peripheral timer driver
2015-09-03 12:00:07 +02:00
Thomas Eichinger
3fba38e47b
cpu/native: fix wrong type for _sigio_child()
2015-09-03 11:49:57 +02:00
Hauke Petersen
68e7965b50
cpu/msp43-common: re-added deprecated e|dINT defs
2015-09-03 10:31:30 +02:00
Thomas Eichinger
f841811a49
cpu/native: fix OS X includes and declarations
2015-09-02 17:34:47 +02:00
Thomas Eichinger
f10939c01e
cpu/native: add conditional include on OS X for IFNAMSIZ
2015-09-02 17:34:47 +02:00
Hauke Petersen
fd8c0de3d2
cpu/msp430-common: simplified hwtimer configuration
2015-09-02 17:10:28 +02:00
Hauke Petersen
c20af817c7
cpu/msp430fxyz: added peripheral timer driver
2015-09-02 17:10:27 +02:00
Hauke Petersen
335ec926de
cpu/cc430: added peripheral timer implementation
2015-09-02 17:10:27 +02:00
Hauke Petersen
69e83bbab3
cpu: removed hwtimer code from msp430 CPUs
2015-09-02 17:10:27 +02:00
Hauke Petersen
0cdda8bad6
boards/chronos: fixed after removing legacy header
2015-09-02 17:10:27 +02:00
Hauke Petersen
7d25b41610
cpu/msp430-common: removed legacymsp430.h code
2015-09-02 16:47:52 +02:00
6dec2efdd6
saml21: add lpm support
2015-09-02 16:46:42 +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
Alex V. Melnikov
8d47f83964
cpu/stm32f1: added stm32f103c8 linkerscript
...
Added stm32f103c8 memory definitions for cortexm common linkerscript
2015-08-27 11:52:44 +03:00
Martine Lenders
dc82939eb3
atmega_common: give distinct numbers to errnos
2015-08-25 22:07:22 +02:00
Emmanuel Baccelli
014939805e
Merge pull request #3062 from alignan/pull/remote-port
...
New Zolertia Re-Mote platform (CC2538 + CC1120)
2015-08-25 21:18:13 +02:00
Thomas Eichinger
82aff54a74
Merge pull request #3703 from DipSwitch/add_clock_selection_stm32l1
...
Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32L1 family
2015-08-25 12:22:46 +02:00
DipSwitch
148acc684b
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32L1 family
2015-08-25 10:12:48 +02:00
DipSwitch
04f49a1929
cpu: fix stm32l1 cpuid driver for cat 1/2
2015-08-24 21:46:36 +02:00
Lari Lehtomäki
1ecaadab4e
cpu/stm32f0: RTC implementation with external clock
...
tests: Tests for RTC clock
2015-08-20 13:09:43 +03:00
Peter Kietzmann
86af1969b5
Merge pull request #3666 from daniel-k/cortexm_r13_deprecated
...
cortexm_common: don't compare with r13/sp in assembly, fix #3664
2015-08-20 11:48:13 +02:00
Joakim Gebart
56b0beeebe
Merge pull request #3107 from gebart/pr/cppsupport
...
c++: Define some support functions required by GCC
2015-08-19 21:49:24 +02:00
Daniel Krebs
cb4aec676b
cortexm_common: don't compare with r13/sp in assembly, fix #3664
2015-08-19 20:56:43 +02:00
daniel-k
7a86344c4d
cpu/cortexm_common: gather addition information on hardfault
2015-08-19 14:24:54 +02:00
Martine Lenders
58ff31bfe9
gnrc: make all gnrc modules sub-modules of gnrc
2015-08-18 23:00:07 +02:00
Martine Lenders
87c222d2fa
Merge pull request #3595 from authmillenon/gnrc/api/mv
...
gnrc: rename ng_netbase to gnrc
2015-08-18 16:59:34 +02:00
Martine Lenders
b969eeb217
gnrc: rename ng_netbase to gnrc
2015-08-18 16:11:55 +02:00
Hauke Petersen
3922b6c852
Merge pull request #3530 from kaspar030/update_msba2
...
cpu: lpc2387: provide periph/* implementations, update to use newlib module.
2015-08-17 21:45:16 +02:00
Antonio Lignan
b8823b7afe
Zolertia Re-Mote platform (cc2538 + cc1120) port
2015-08-17 14:17:32 +02:00
Joakim Gebart
ff05007a6e
boards/mulle: cleanup
...
Remove old syscalls implementation from before cortexm_common unification and sys/newlib introduction.
2015-08-14 20:09:44 +02:00
3b94a0d497
lpc2387/msba2/avsextrem: fix doxygen warnings
2015-08-14 16:50:41 +02:00
a03ff202cf
cpu: lpc2387: switch to newlib module
2015-08-14 16:50:41 +02:00
4dd63dd24e
cpu: lpc2387: add periph/spi support
2015-08-14 16:50:41 +02:00
bd76626fb5
cpu: lpc2387: add periph/uart driver
2015-08-14 16:50:41 +02:00
3c5f31eb95
cpu: lpc2387: add periph/gpio imlementation
2015-08-14 16:50:41 +02:00
223ef9fe66
cpu: lpc2387: drop gpioint
2015-08-14 16:50:41 +02:00
0541d21f86
Merge pull request #3620 from kaspar030/add_generic_spi_fallbacks
...
drivers: periph: add generic spi fallbacks
2015-08-14 16:47:48 +02:00
6b2b5eb5e4
cpu: stm32l1: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
4b15cc635e
cpu: stm32f4: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
fa00154f2a
cpu: stm32f3: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
6c185655c8
cpu: stm32f1: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
336c5300cd
cpu: stm32f0: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
21c774fd82
cpu: saml21: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
0a859b91ee
cpu: samd21: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
626289b5c7
cpu: sam3: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
Martine Lenders
664f51e149
doc: adapt documentation on tapsetup script
2015-08-14 12:05:34 +02:00
Martine Lenders
5760f9042d
native: unify and simplify usage of tapsetup script
2015-08-14 12:05:34 +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
Peter Kietzmann
77ca7a50bc
Merge pull request #3509 from katezilla/LimiFrog-v1
...
board: limifrog-v1 initial commit
2015-08-13 15:45:27 +02:00
Katja Kirstein
c95612295e
cpu/stm32l1: remodel to new GPIO interface
2015-08-13 15:07:49 +02:00
Katja Kirstein
bda86cfcd3
boards: limifrog-v1 initial commit
2015-08-13 14:14:18 +02:00
Hauke Petersen
af10ab64a7
cpu/stm32f1: simplified pin init in periph drivers
2015-08-12 10:50:17 +02:00
Martine Lenders
f0cb1429f0
native: rename ng_nativenet to dev_eth_tap
2015-08-09 22:04:26 +02:00
Martine Lenders
ca71ae4f59
dev_eth: fix documentation
2015-08-09 22:02:10 +02:00
Joakim Gebart
62b1435646
cortexm: Remove __dso_handle from startup.c in favour of sys/cpp11-compat/cppsupport.cpp
2015-08-08 14:44:41 +02:00
Martine Lenders
472ee315f0
ethernet/ethertype: remove ng_ prefix
2015-08-07 17:09:19 +02:00
Hauke Petersen
97a19016cf
drivers: adapted to renamed NETOPT header
2015-08-06 15:36:56 +02:00
Oleg Hahm
f90032f94f
Merge pull request #3334 from kaspar030/remove_old_net
...
remove old network stack
2015-08-06 15:10:11 +02:00
Hauke Petersen
bcb9aebadd
cpu/stm32f1: modernized the GPIO driver
2015-08-06 13:48:25 +02:00
Hauke Petersen
75472eddf4
cpu: remove transceiver defines from cpu_conf files
2015-08-06 12:13:54 +02:00
723d0b2479
remove legacy board specific cc110x code
2015-08-06 12:13:19 +02:00
09fb612ceb
cpu: lpc2387: remove obsolete transceiver defines
2015-08-06 12:13:18 +02:00
5d8349298f
remove bulk of legacy network stack and drivers
2015-08-06 12:12:47 +02:00
Martine Lenders
cef0857992
msp430: use assert instead of printf
2015-08-05 19:43:51 +02:00
Martine Lenders
6d9b928818
Merge pull request #3536 from cgundogan/pr/doc/todo
...
Make use of doxygen todo
2015-08-05 15:59:01 +02:00
Benoît Canet
22da1f834b
native: ng: net: Close tap device and cleanup on reboot
2015-08-03 18:17:53 +02:00
Benoît Canet
008b105166
native: net: Take care of unregistering SIGIO on reboot
2015-08-03 18:17:53 +02:00
Benoît Canet
800b057fac
native: net: Make _native_tap_fd static
...
One global variable less is always good.
2015-08-03 18:17:52 +02:00
Hauke Petersen
3caa44ca95
cpu/lm4f120: included dev_enums.h in periph_cpu.h
2015-08-03 13:56:16 +02:00
Hauke Petersen
3d6661fa62
cpu/lpc1768: included dev_enums.h in periph_cpu.h
2015-08-03 13:56:16 +02:00
Cenk Gündoğan
6e1a593e28
cortexm_common: use doxygen todo
2015-08-03 11:00:21 +02:00
f584bd6921
cpu: stm32f1: fix timer auto reload value
...
Previously, the auto-reload register was set to TIMERx_MAXVALUE. This is
incorrect, as TIMERx combines two 16bit timers.
This commit fixes the assignment.
2015-07-30 14:35:27 +02:00
Benoît Canet
4893d4daea
native: irq: Get rid of dINT() and eINT()
...
Get rid of internal usage of the old IRQ
API and keep it's implementation while
waiting for other modules to kill it.
2015-07-29 16:51:22 +02:00
21238b2ccc
Merge pull request #3347 from benoit-canet/timer
...
native: timer: synchronize HWTIMER_SPIN_BARRIER with native timer min resolution
2015-07-29 10:14:58 +02:00
d359c86c60
cpu: cortexm_common: set pendSV to default priority
2015-07-28 20:02:45 +02:00
Oleg Hahm
03b7c7349a
Merge pull request #3457 from authmillenon/gnrc/api/rename-netconf
...
gnrc: rename ng_netconf to ng_netopt
2015-07-28 18:21:09 +02:00
Andreas "Paul" Pauli
82c16f2b93
cpu/stm32f3: corrected register and return value, edit comment
2015-07-28 14:52:52 +02:00
Martine Lenders
6f56b983f0
gnrc: replace all instances of ng_netconf with ng_netopt
2015-07-28 13:33:12 +02:00
Rakendra Thapa
da91eba1ca
Converting C++ style coding to C style
2015-07-24 08:59:55 +05:30
rakendrathapa
3761ebcc21
VariableScope fix: Reducing scope of local var
2015-07-24 08:59:54 +05:30
rakendrathapa
de98cdf8be
Modify: C++ compatible header files_3
2015-07-24 08:59:54 +05:30
rakendrathapa
e4c281a0ff
Modify: C++ compatible header files_2
2015-07-24 08:59:54 +05:30
rakendrathapa
d263a9b2c5
Modify: C++ compatible headers
2015-07-24 08:59:54 +05:30
rakendrathapa
2dc37817bc
Modify to have C++ compatible header
2015-07-24 08:59:54 +05:30
rakendrathapa
63cb5cee4e
Converting from DOS endings to UNIX _2
2015-07-24 08:59:54 +05:30
rakendrathapa
60fc3f2511
Convert from Windows to Dos endings
2015-07-24 08:59:54 +05:30
Raken
186041b553
Addition for doxygen documentation
2015-07-24 08:59:54 +05:30
Rakendra Thapa
aa30ecd04f
Interrupt file to include isr correctly.
2015-07-24 08:59:54 +05:30
Rakendra Thapa
38d70a3356
Remove trailing whitespace_3
2015-07-24 08:59:54 +05:30
Rakendra Thapa
1227cb30f6
Including CPU_MODEL_ guard in cpu config file.
...
Remove CC110X definitions.
Changes to be committed:
modified: cpu/lm4f120/include/cpu_conf.h
2015-07-24 08:59:54 +05:30
Rakendra Thapa
2d656b8732
Define CLOCK_SOURCE and move the clock defines to appropriate files.
2015-07-24 08:59:54 +05:30
Rakendra Thapa
c99de05d23
Remove Not yet supported ADC peripheral. ToDo task
2015-07-24 08:59:54 +05:30
Rakendra Thapa
dad274ccea
Makefile changes.
...
License edit in stellaris_common
2015-07-24 08:59:53 +05:30
Rakendra Thapa
8e24860266
Commits:
- Indentation Edits.
- Edit Header Files.
- Change comments to C-style indentation.
- Edit Periph_conf file to exclude not used peripherals.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
# modified: boards/ek-lm4f120xl/board.c
# modified: boards/ek-lm4f120xl/include/board.h
# modified: boards/ek-lm4f120xl/include/periph_conf.h
# modified: cpu/lm4f120/cpu.c
# modified: cpu/lm4f120/include/cpu_conf.h
# modified: cpu/lm4f120/include/hwtimer_cpu.h
# modified: cpu/lm4f120/include/lm4f120h5qr.h
# modified: cpu/lm4f120/lpm_arch.c
# modified: cpu/lm4f120/periph/adc.c
# modified: cpu/lm4f120/periph/cpuid.c
# modified: cpu/lm4f120/periph/timer.c
# modified: cpu/lm4f120/periph/uart.c
# modified: cpu/lm4f120/vectors.c
#
2015-07-24 08:59:53 +05:30
Rakendra Thapa
dc2bbffcc7
Formatting: Delete blank line at EOF
2015-07-24 08:59:53 +05:30
Rakendra Thapa
1165d91b6f
Remove trailing whitespace_2
2015-07-24 08:59:53 +05:30
Rakendra Thapa
be15d5c973
removing trailing whitespace
2015-07-24 08:59:53 +05:30
Rakendra Thapa
4757e30e10
Remove tabs to spaces
2015-07-24 08:59:53 +05:30
Rakendra Thapa
9c4a5f5d86
Applying Coding Conventions correction
2015-07-24 08:59:53 +05:30
Rakendra Thapa
8c1abd716d
Adding Files for Stellaris Porting
2015-07-24 08:59:53 +05:30
Rakendra Thapa
0b673e66da
Adding Support for Stellaris Launchpad LM4f120. This board is based on ARM Cortex M4 from TI.
2015-07-24 08:59:53 +05:30
Thomas Eichinger
e416937398
Merge pull request #3390 from thomaseichinger/pr/fix_warning_errors_freebsd
...
native: fix warning errors freebsd
2015-07-23 10:11:29 +02:00
Oleg Hahm
9922d2600c
native: removed dead code
...
num was never read, because native will exit before.
2015-07-22 14:36:21 +02:00
Thomas Eichinger
cbc9ddc639
native: add missing include for FreeBSD
2015-07-21 18:31:13 +02:00
Thomas Eichinger
0c15084db5
native: fix wrong pointer type warning
2015-07-21 18:31:13 +02:00
Oleg Hahm
75f38c026b
Merge pull request #3412 from OlegHahm/doxygen_fixes_ng
...
doxygen: documentation hierarchy fixes
2015-07-21 11:04:42 +02:00
Oleg Hahm
6a035fe910
doc: exclude sam3* completely from doxygen
...
Also remove doc.txt for sam3 (moved to cpu_conf.h)
2015-07-21 10:00:11 +02:00
Joakim Gebart
601c3002c3
cpu/kinetis_common: Cast device index enums to unsigned int before comparing for out of range values
...
Suppresses false warning in Clang:
warning: comparison of constant 42 with expression of type 'xxx_t'
is always false [-Wtautological-constant-out-of-range-compare]
See:
- https://llvm.org/bugs/show_bug.cgi?id=16154
- https://llvm.org/bugs/show_bug.cgi?id=22062
2015-07-21 07:21:51 +02:00
Joakim Gebart
70d59331b8
arm7_common: Build fixes after discovering an include guard overlap
2015-07-20 12:40:32 +02:00
Joakim Gebart
897f40fabe
cpu/msp430-common: Clean up Doxygen groups
2015-07-20 12:40:31 +02:00
Joakim Gebart
7ff26d12ea
cpu/arm7_common: Rename Doxygen group to cpu_arm7_common
2015-07-20 12:40:31 +02:00
Hauke Petersen
25abd13fb5
cpu/sam3: use hwtimer_compat module
2015-07-15 16:06:34 +02:00
Hauke Petersen
7173b41069
cpu/lpc1768: use hwtimer_compat module
2015-07-15 16:06:08 +02:00
Hauke Petersen
809b99f648
cpu/atmega2560: make use of hwtimer_compat
2015-07-15 16:05:28 +02:00
Hauke Petersen
86261e03e6
cpu/nrf51: make use of hwtimer_compat module
2015-07-15 16:02:43 +02:00
Hauke Petersen
696dff5da3
cpu/nrf51: fixedd cppcheck issue in spi.c
2015-07-14 18:22:03 +02:00
haukepetersen
1cd18f92c9
cpu/nrf51: updated CPU headers
2015-07-14 18:15:42 +02:00
haukepetersen
431ac7b3c5
cpu/nrf51: added linkerscript for 128kb variant
2015-07-14 18:15:42 +02:00
haukepetersen
987dbe983a
cpu/nrf51: generalized linkerscript
2015-07-14 18:15:42 +02:00
haukepetersen
9c46a40005
cpu: renamed nrf51822 to nrf51
2015-07-14 18:15:42 +02:00
Hauke Petersen
3be56ba97e
cpu/sam3: fixed vectors.c
...
This was an error introduced by merging #3194...
2015-07-14 16:32:06 +02:00
Hauke Petersen
3ec9c7b2cb
cpu/cc430: fixed missing include in adc driver
2015-07-14 16:15:13 +02:00
Oleg Hahm
c0d5d2e9b6
Merge pull request #2571 from haukepetersen/rm_msp430_edint
...
cpu/msp430-common: removed e|dINT calls
2015-07-14 15:46:33 +02:00
Thomas Eichinger
7e88358135
Merge pull request #3194 from haukepetersen/mv_sam3x
...
cpu: rename SAM3X8E to SAM3
2015-07-14 15:42:45 +02:00
Hauke Petersen
08c4732fba
cpu/native: adjusted stacksizes
...
The stacksizes for native were defined in a way, so that
DEBUG did not work inside of interrupt routines. The new
values should still be large enough but allow now for this.
2015-07-14 15:06:50 +02:00
Joakim Gebart
fa4e059588
Merge pull request #3319 from gebart/pr/warning-fixes-3
...
Makefile.cflags: Build with -Wall -Werror by default (including fixes to correct all existing warnings)
2015-07-14 08:50:31 +02:00
Joakim Gebart
499666f24a
cpu/msp430-common: Add getchar declaration
2015-07-14 08:11:19 +02:00
Joakim Gebart
153c97fc74
cpu/msp430-common: Add stdlib.h header to ensure malloc is defined.
...
Fixes warnings of the kind:
/data/riotbuild/riotbase/sys/bloom/bloom.c: In function 'bloom_new':
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:5: error: implicit declaration of function 'calloc' [-Werror=implicit-function-declaration]
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:22: error: incompatible implicit declaration of built-in function 'calloc' [-Werror]
2015-07-14 08:11:15 +02:00
Joakim Gebart
d8e9b62c75
cpu/cc430/flashrom.c: Fix warning about unused static function by declaring inline
2015-07-14 08:11:14 +02:00
Joakim Gebart
c274558e91
cpu/arm7_common/syscalls: Fix warnings and comment style
2015-07-14 08:11:14 +02:00
Joakim Gebart
32c213d0b0
cpu/cortexm_common: Fix signedness warning
2015-07-14 08:11:14 +02:00
Joakim Gebart
84bf05a0bd
cpu/cc430: fix unused-but-set-variable
2015-07-14 08:11:14 +02:00
Oleg Hahm
91da19d500
Merge pull request #3381 from gebart/pr/kinetis-spi-unused-byte-in
...
cpu/kinetis_common/spi: Fix byte_in unused.
2015-07-14 01:17:56 +02:00
Joakim Gebart
53d81bd58d
cpu/x86: rename stack_t -> stack_info_t
...
Avoids collision with libc defined stack_t in #include <sys/signal.h>
2015-07-13 19:57:55 +02:00
Joakim Gebart
624c241ec6
cpu/kinetis_common/spi: Fix byte_in unused.
...
Bug reported by the clang static analyzer.
Description: Value stored to 'byte_in' is never read
File: .../riot/cpu/kinetis_common/spi.c
Line: 1261
2015-07-13 17:24:00 +02:00
Johann Fischer
cb8ff544d5
cpu/kinetis_common/i2c.c: add _i2c_reset function, minor fixes
2015-07-09 23:19:56 +02:00
Joakim Gebart
eef8f25a44
kinetis: i2c: Handle ARBL flag in master mode.
...
The ARBL flag signals that bus master arbitration has been lost.
This may occur if devices on the bus misbehave, or in a multi-master
situation, or if devices are not powered and pull the SDA line down, or
if the communication wires are disconnected while communicating.
2015-07-09 23:19:55 +02:00
Joakim Gebart
cba6a81a73
kinetis: i2c: only send STOP in _i2c_stop()
2015-07-09 23:19:55 +02:00
d15f0990b3
Merge pull request #3344 from kaspar030/fix_native_timer_possible_underflow
...
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 22:17:44 +02:00
Benoît Canet
e01329796d
native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
...
This keeps the test/hwtimer_wait test duration correct.
2015-07-09 20:42:21 +02:00
Peter Kietzmann
f95aaa6bf6
Merge pull request #3327 from authmillenon/native/enh/address-sanitizer
...
native: add address sanitizer make target
2015-07-09 16:07:00 +02:00
ec441e9aa6
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 15:23:21 +02:00
Benoît Canet
e8e89d8ca9
native: timer: Do not cancel timer when setting it to 0
2015-07-09 15:08:47 +02:00
Martine Lenders
8a33a62914
native: add address sanitizer make target
2015-07-09 15:00:19 +02:00
Joakim Gebart
b949b5b539
Merge pull request #3335 from gebart/pr/kinetis-ldscript-cleanup
...
cpu/kinetis_common: refactor ldscripts
2015-07-09 12:59:02 +02:00
b2272fc016
Merge pull request #3282 from benoit-canet/timer
...
native: Resurect native/perif/timer and handle #715 (WIP)
2015-07-09 11:12:24 +02:00
Benoît Canet
dfbd4f946e
cpu: native: switch to hwtimer_compat
...
The hwtimer_wait test was tortured with the
following script which ran several hours.
----
make clean all-debug
while :
do
date
./bin/native/hwtimer_wait.elf > log &
pid=$!
sleep 20
success=$(cat log|grep success)
if [ "$success" != "success" ]
then
date
echo "BUG"
exit
fi
kill $pid
done
----
Closes #715 .
2015-07-09 02:43:04 +02:00
fe96d379f6
native: add periph/timer.h timer implementation
2015-07-09 02:43:04 +02:00
Benoît Canet
ced541cc67
native: irq_cpu: Rewrite IRQs (de)registration
2015-07-09 02:43:04 +02:00
Benoît Canet
4832a1a6b0
native: irq_cpu: Whitelist signals
2015-07-09 02:43:03 +02:00
Benoît Canet
a035d27414
native: irq_cpu: Make IRQ enabling/disabling safe
2015-07-09 02:43:01 +02:00
52599fde66
cpu: native: work around shared errno in _native_lpm_sleep
2015-07-09 00:31:31 +02:00
Joakim Gebart
ed81e35e4c
cpu/kinetis_common: refactor ldscripts
...
- Merged the two kinetis_common ldscripts into a single script.
- Updated cpus to use the new script
- Updated K60 to merge sram_l and sram_u into one segment
2015-07-08 19:20:00 +02:00
Joakim Gebart
ee4182b246
cpu/cortexm_common: Overwrite stack up until the current stack pointer only.
2015-07-07 18:04:30 +02:00
Joakim Gebart
63bde8906e
cpu/atmega_common/avr-libc-extra/inttypes.h: Correct format strings for 64 bit numbers
2015-07-07 00:53:26 +02:00
Peter Kietzmann
004a83c44d
Merge pull request #3028 from gebart/pr/cmsis-dsp
...
pkg/cmsis-dsp: Add CMSIS-DSP as a package
2015-07-04 09:39:22 +02:00
Lari Lehtomäki
85cf28451b
cpu/stm32f3: Split the RAM on STM32F334 into RAM and CCM RAM
2015-07-03 16:45:39 +03:00
Johann F
d614cbe066
cpu/k64f: initial import for the Freescale K64F Cortex-M4 MCU
2015-07-01 23:08:02 +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
Joakim Gebart
2f47ec6057
cortexm_common: Add CMSIS DSP defines
2015-06-25 08:00:59 +02:00
Joakim Gebart
fc4ab35140
Merge pull request #3116 from gebart/pr/lpc2387-extab
...
lpc2387: Add missing exception tables to linker script
2015-06-24 14:46:50 +02:00
Hauke Petersen
5a163b2e61
Merge pull request #3230 from benoit-canet/add_missing_addtogroup_brace
...
cpu/stm32f3: Add missing closing Doxygen braces for addtogroup
2015-06-23 09:56:23 +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
Benoît Canet
8c6c1114f3
cpu/stm32f3: Add missing closing Doxygen braces for addtogroup
...
The candidates locations for the closing braces were confirmed by looking at
cpu/stm32f0 headers.
The closing brace styles stick with the style of each file.
Closes #2956
2015-06-22 00:08:13 +02:00
Hauke Petersen
765c013834
Merge pull request #3155 from haukepetersen/opt_cortex_startup
...
cpu: centralized startup code for cortexm CPUs
2015-06-17 00:01:56 +02:00
Hauke Petersen
4ae5204b36
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-16 22:41:16 +02:00
Peter Kietzmann
666ad5da5f
Merge pull request #3165 from katezilla/nucleo-f303
...
board/Nucleo-f303: initial support for the Nucleo-f303
2015-06-16 09:17:10 +02:00
Peter Kietzmann
938d12c2d8
Merge pull request #3204 from haukepetersen/fix_f3_gpio
...
cpu/stm32f3: fixed init_af in GPIO driver
2015-06-16 08:05:42 +02:00
1172597594
cpu: samd21: fix synchronization loop in clk_init
2015-06-15 21:33:13 +02:00
Hauke Petersen
7216f21122
cpu/stm32f4: fix init_af in GPIO driver
2015-06-15 20:41:49 +02:00
Hauke Petersen
ad0e9c26b6
cpu/stm32f3: fixed init_af in GPIO driver
2015-06-15 20:40:40 +02:00
Hauke Petersen
88130fcb54
cpu/kw2x: optimization of startup code
2015-06-15 16:00:51 +02:00
Hauke Petersen
253e7ce715
cpu/kinetis_common: optimization of startup code
2015-06-15 16:00:51 +02:00
Hauke Petersen
8db0a57a81
cpu/k60: optimization of startup code
2015-06-15 16:00:51 +02:00
Hauke Petersen
983e8abd74
cpu/lpc1768: optimized startup code
...
- make use of common cortexm isr vectors
- use common cortexm startup code
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
d7e27c67c3
cpu/stm32f4: 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
bdb708a39e
cpu/stm32f3: 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
5eb9b73cd6
cpu/stm32f1: 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
38d38f6c79
cpu/stm32l1: 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
f30b7bf13d
cpu/stm32f0: 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
aa583f254d
cpu/saml21: 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
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
4ccbeeb6bf
cpu/sam3x8e: 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
db1ee85d8b
cpu/nrf51822: 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
37078856e7
cpu/cc2538: 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
4b65a07adc
cpu/make.cortexm: s/startup.o/vectors.o/
2015-06-15 16:00:51 +02:00
Hauke Petersen
c286da8d7f
cpu/cortexm: unified startup code and isr handlers
2015-06-15 16:00:51 +02:00
Hauke Petersen
9476c03550
cpu/sam3: adjusted name of doxygen group
2015-06-15 14:29:46 +02:00
Hauke Petersen
2588a62d89
cpu/sam3: made headers for sam3e8x exclusive
2015-06-15 14:29:46 +02:00
Hauke Petersen
6764f7abcd
cpu/sam3: moved pwm driver into correct position
2015-06-15 14:29:46 +02:00
Hauke Petersen
a819fd6474
cpu/sam3: fixed to remove cppcheck warnings
...
- fixed gpio driver
- fixed uart driver
2015-06-15 14:29:46 +02:00
Hauke Petersen
88c32664a8
cpu: s/sam3x8e/sam3/
2015-06-15 14:29:46 +02:00
Hauke Petersen
71995e7cde
cpu/stm32f4: added custom GPIO_UNDEF define
2015-06-14 16:16:39 +02:00
Hauke Petersen
8c690f1d6a
cpu/stm32f3: added custom GPIO_UNDEF define
2015-06-14 16:16:28 +02:00
Hauke Petersen
ac8ad5419d
cpu/saml21: added custom GPIO_UNDEF define
2015-06-14 16:16:04 +02:00
Hauke Petersen
138a6a7d1b
cpu/samd21: added custom GPIO_UNDEF define
2015-06-14 16:15:53 +02:00
Hauke Petersen
c7f54c1189
cpu/nrf51822: added custom GPIO_UNDEF define
2015-06-14 16:15:19 +02:00
Hauke Petersen
d748d4ba4f
cpu/atmega2560: removed empty gpio.c file
2015-06-14 16:14:48 +02:00
Hauke Petersen
4d34100585
cpu/atmega2560: adapted to changed GPIO driver IF
2015-06-12 19:10:49 +02:00
Hauke Petersen
5abd2ffc0a
cpu/native: added periph_cpu.h
2015-06-12 19:10:49 +02:00
Hauke Petersen
480d3c68d8
cpu/stm32l1: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
6284bbbbe4
cpu/stm32f1: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
f9bb383118
cpu/stm32f0: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
854730cfa4
cpu/sam3x8e: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
17c8640708
cpu/lpc1768: added periph_cpu.h
2015-06-12 19:10:49 +02:00
Hauke Petersen
d7f659db71
cpu/kinetis_common: adjusted to changed GPIO if
2015-06-12 19:10:49 +02:00
Hauke Petersen
47e8472949
cpu/cc2538: adjusted to changed GPIO interface
2015-06-12 19:10:49 +02:00
Hauke Petersen
55db7008d8
cpu/nrf51822: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
368f5fb64f
cpu/samd21: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
aeecb09883
cpu/saml21: remodeld GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
3a2d89f88d
cpu/stm32f3: remodeled GPIO driver implementation
2015-06-12 19:10:48 +02:00
Hauke Petersen
69d16af81c
cpu/stm32f4: remodeled GPIO implementation
2015-06-12 19:10:48 +02:00
Katja Kirstein
4abb2bbfc6
Nucleo-f303 initial commit
2015-06-12 18:45:25 +02:00
Peter Kietzmann
98312452ce
Merge pull request #3170 from A-Paul/sam3x8e-periph-pwm
...
cpu/sam3x8e: Add pwm implementation
2015-06-12 16:09:08 +02:00
Andreas "Paul" Pauli
ba66a3d63f
cpu/sam3x8e: add pwm peripheral driver
2015-06-12 11:15:23 +02:00
ce8b47b75c
cpu: cortexm_common: set default value for CPU_MODEL
2015-06-11 20:41:21 +02:00
haukepetersen
e32b6c9504
cpu/native: improved error msg for netivenet
2015-06-11 15:40:40 +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
bapclenet
217815c48d
Merge pull request #3034 from haukepetersen/opt_samr21
...
cpu/samd21: added cpu clock configuration code
2015-06-05 09:35:58 +02:00
Joakim Gebart
65f088a246
kinetis: hwtimer refactor/rewrite
...
- Use hwtimer_set for hwtimer_set_absolute()
- Collect hwtimer statistics with #if ENABLE_STATS
- Assembler optimized functions for CNR handling
- Correct off-by-1 after counter reset
- Defer CMR update from hwtimer_unset until ISR fires
2015-06-04 14:25:29 +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
Joakim Gebart
7a9f6f9796
Merge pull request #3140 from gebart/pr/kinetis-hwtimer-isr-off-by-1
...
kinetis: hwtimer fix off-by-1 in LPTMR ISR
2015-06-02 19:23:10 +02:00
Hauke Petersen
401adb8b58
Merge pull request #3018 from kaspar030/saml21_add_rtt
...
saml21: add periph rtt support
2015-06-02 16:21:23 +02:00
369a47aa35
Merge pull request #3099 from jfischer-phytec-iot/pr@kinetis-use-common-makefile
...
kinetis: adaption for common makefiles
2015-06-02 14:07:55 +02:00
Joakim Gebart
06c41108c7
kinetis: hwtimer fix off-by-1 in LPTMR ISR
2015-06-02 11:21:49 +02:00
Joakim Gebart
6e12503937
mulle: remove device map
2015-05-31 18:31:17 +02:00
Johann F
14542765a5
cpu/k60: use cortex common makefile and newlib module
2015-05-31 18:25:57 +02:00
Johann Fischer
002ba9b334
cpu/kw2x: use cortex common makefile and newlib module
2015-05-31 18:24:15 +02:00
Johann Fischer
072d0a80c7
cpu/kinetis_common/ldscripts: adapt for newlib module
2015-05-31 18:24:05 +02:00
Johann Fischer
7bc468a54e
Makefile.include.cortex_common: enhancement for kinetis_common
...
Add a exception for common startup
2015-05-31 18:24:05 +02:00
Joakim Gebart
fc92ec98bf
cortexm: CMSIS: Add extern "C" to CMSIS headers
2015-05-31 17:27:24 +02:00
Joakim Gebart
1cfb11bcde
cortexm: CMSIS: Suppress cppcheck error about uninitialized result
...
False positive, the variable result is assigned from within inline assembly
2015-05-31 17:27:24 +02:00
Joakim Gebart
9511027946
cortexm: CMSIS: Replace tabs by spaces
2015-05-31 17:27:24 +02:00
Joakim Gebart
5bfed6c3f7
cortexm: Update CMSIS to v4.3
...
found at www.arm.com/cmsis
2015-05-31 17:27:23 +02:00
Peter Kietzmann
6dc0e789e1
Merge pull request #3101 from gebart/pr/warning-fixes
...
Various warning fixes
2015-05-31 17:03:49 +02:00
Hauke Petersen
19ef9dbe4e
cpu/cortexm: raised ISR stack size to safer value
...
256 Byte were not enough for some boards (not sure why, yet).
So go back to 512 byte as a save (and known working value).
2015-05-31 12:00:17 +02:00
Joakim Gebart
79ca190666
lpc2387: Add missing exception tables to linker script
...
Copied from kinetis_common
2015-05-31 09:55:49 +02:00
Hauke Petersen
744ec88a74
cpu: use cortexm common linkerscript
2015-05-30 13:43:19 +02:00
Hauke Petersen
8752894cc9
cpu/cortexm: added base 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
68ee0f7c77
Merge pull request #3112 from haukepetersen/fix_cortex_fpu
...
cpu/cortexm: disabled hard floats for M4F CPUs
2015-05-30 09:30:39 +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
9ecaea4038
Merge pull request #2848 from haukepetersen/fix_samr21_optimization
...
cpu/samd21: remove -O0 override
2015-05-29 16:49:55 +02:00
Hauke Petersen
f48ea33805
cpu/stm32l1: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
0e61ec097c
cpu/stm32f1: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
79d9391d3b
cpu/stm32f4: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
c6d65fec8b
cpu/stm32f3: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
cb476daff0
cpu/stm32f0: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
dfb717c308
cpu/samd21: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
3c48722e0f
cpu/saml21: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Hauke Petersen
4d3b147122
cpu/sam3x8e: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
a97cdaaf8d
cpu/nrf51822: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
aa728e0506
cpu/lpc1768: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
6102896f7a
cpu/kw2x: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
de31e1f9e8
cpu/kinetis_common: fixes to fault_handlers
2015-05-29 16:42:05 +02:00
Hauke Petersen
d4d34a782e
cpu/k60: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
52e51bfea1
cpu/cc2538: adapted to centralized cpu conf
2015-05-29 16:42:05 +02:00
Hauke Petersen
78d65a4dec
cpu/cortexm_common: centralized init and defines
...
- added a centralized core implementation for all cortex CPUs
- moved default stack size defines to cpu.h in cortexm_common
- moved uart0 bufsize define to cpu.h in cortexm_common
- moved typed of panic_t to cpu.h in cortexm_common
2015-05-29 16:42:05 +02:00
Joakim Gebart
ea597a3bf3
stm32f4: random fix sign-compare
2015-05-29 14:23:02 +02:00
Joakim Gebart
18ea5561f8
stm32f4: spi_transfer_bytes fix sign-compare, reduce scope
2015-05-29 14:23:02 +02:00
Joakim Gebart
13bdc21c9e
stm32f4: i2c_init_slave fix unused-parameter
2015-05-29 14:23:01 +02:00
Joakim Gebart
12cfb8deef
k60: fix unused-parameter warnings
2015-05-29 14:23:01 +02:00
Joakim Gebart
697b85c182
kinetis: fix SPI double initialization warnings
2015-05-29 14:23:01 +02:00
Joakim Gebart
ec3679fd13
kinetis: spi_init_slave add missing callback assignment
2015-05-29 14:23:01 +02:00
Joakim Gebart
d4c1436de9
kinetis: fix warnings
...
- find_closest_x: sign-compare
- hwtimer_arch: unused-parameter
- i2c_init_slave: unused-parameter
- rnga: sign-compare
- rngb: sign-compare
- spi_transfer_bytes: sign-compare
- spi_transfer_regs: sign-compare
- timer: unused-parameter
2015-05-29 14:21:52 +02:00
Joakim Gebart
8a34b15964
cortexm_common: Conditionally define __set_FPSCR
...
It is an error to call __set_FPSCR if no FPU is present in the CPU.
2015-05-29 14:16:35 +02:00
Hauke Petersen
f3a7515d34
cpu/cortexm: disabled hard floats for M4F CPUs
2015-05-29 13:56:41 +02:00
Hauke Petersen
bca23c410b
cpu/saml21: use core_panic in startup.c
2015-05-29 12:55:13 +02:00
Hauke Petersen
93fe62f975
cpu/saml21: removed non-existent exception handlers
2015-05-29 12:55:13 +02:00
Hauke Petersen
c91a0983c0
cpu/saml21: fixed some formatting in startup.c
2015-05-29 12:52:30 +02:00
Hauke Petersen
32410bbfe5
cpu/samd21: set optimization level to -Os
2015-05-29 12:15:40 +02:00
haukepetersen
36a99a0c70
cpu/msp430-common: removed e|dINT calls
2015-05-29 12:07:57 +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
b8dd144e03
cpu: unified cortexm_common folder
...
- removed coretx-m[0|3|4]
- moved their content to cortexm_common
- adjusted cortex Makefiles to this new name
- adjusted cortex Makefiles new structure
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
Peter Kietzmann
6e8096c4ea
Merge pull request #3079 from haukepetersen/opt_stm_hwtimercompat
...
cpu: use hwtimer_compat module for STM CPUs
2015-05-28 14:55:22 +02:00
Peter Kietzmann
8e5541757d
Merge pull request #2911 from neumodisch/driver_i2c_stm32f3
...
boards: Implemented i2c functionality for the stm32f3discovery board
2015-05-27 15:12:11 +02:00
Johann Fischer
d1566254d9
Merge pull request #2982 from gebart/pr/openocd-verify-watchdog
...
kinetis_common: Disable watchdog between flashing and verifying image
2015-05-27 14:45:09 +02:00
Oleg Hahm
e857ca7f51
Merge pull request #2933 from gebart/pr/atomic-set-return-deprecated
...
core: remove atomic_set_return
2015-05-27 12:33:39 +02:00
Jan Pohlmann
50b8a96322
cpu/stm32f3: Initial import of the i2c driver.
2015-05-27 11:37:15 +02:00
Johann Fischer
c56afd9575
kinetis: Add check-fcfield-elf.sh
...
Checks an ELF file for a correctly set flash configuration field.
2015-05-27 10:30:33 +02:00
Joakim Gebart
5afd93f29e
kinetis: Add check-fcfield-hex.sh
...
Checks a .hex file for a correctly set flash configuration field.
2015-05-27 10:30:33 +02:00
Joakim Gebart
a745de3ef5
kinetis: Add watchdog disable code snippet
2015-05-27 10:30:21 +02:00
Hauke Petersen
b56ed06a5e
cpu/stm32l1: make use of hwtimer_compat module
2015-05-27 10:02:37 +02:00
Hauke Petersen
669544daaa
cpu/stm32f4: make use of hwtimer_compat module
2015-05-27 10:02:37 +02:00
Hauke Petersen
5112eb874c
cpu/stm32f3: make use of hwtimer_compat module
2015-05-27 10:02:36 +02:00
Hauke Petersen
c51ba47c87
cpu/stm32f1: make use of hwtimer_compat module
2015-05-27 10:02:36 +02:00
Hauke Petersen
f6d4efae13
cpu/stm32f0: make use of hwtimer_compat module
2015-05-27 10:02:30 +02:00
e2aa1051bc
Merge pull request #3076 from haukepetersen/opt_saml21_makefiles
...
board/cpu saml21: cleaned Makefiles and unused files
2015-05-26 22:21:06 +02:00
haukepetersen
286a8f2aad
cpu/saml21: removed not needed files
...
- removed hwtimer_arch.c
- removed syscalls.c
2015-05-26 21:39:03 +02:00
4872e7c1ab
saml21: add RTT support
2015-05-26 21:31:45 +02:00
haukepetersen
c9b371bb7f
cpu/saml21: simplified Makefiles
...
- made use common Makefiles
- changed name of linkerscript
2015-05-26 21:31:42 +02:00
Joakim Gebart
8b6308d89b
x86: Remove atomic_set_return
2015-05-26 21:28:31 +02:00
Joakim Gebart
dc6ab7a3a0
arm7: Remove atomic.s
2015-05-26 21:28:31 +02:00
acd9c14ddb
Merge pull request #2776 from kaspar030/add_dev_eth_netdev2
...
sys: net: add netdev device driver using dev_eth low-level ethernet driver API
2015-05-26 21:24:56 +02:00
Hauke Petersen
42f38122c5
Merge pull request #2849 from kaspar030/saml21
...
cpu: saml21 initial commit
2015-05-26 21:13:55 +02:00
1c91baed8b
sys: net: add ng_netdev_eth netdev driver for dev_eth based ethernet devices
2015-05-26 21:05:19 +02:00
bd479a5564
cpu: saml21: adapt to new THREAD_ stacksize defines
2015-05-26 20:58:51 +02:00
cfd9a5905a
Merge pull request #2766 from kaspar030/add_dev_eth
...
sys: net: introduce low-level ethernet driver API
2015-05-26 19:28:14 +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
Hauke Petersen
569f28f6d9
Merge pull request #2711 from haukepetersen/ng_nrf51prop
...
cpu/nrf51822: added minimal radio driver implementation
2015-05-26 15:39:34 +02:00
fbfb0954eb
cpu: native: add tap implementation of dev_eth (ng_nativenet)
2015-05-26 15:37: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
302699eb02
make: move cpu specific CFLAGS into cpu makefile
2015-05-26 10:46:34 +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
b6a92bc8f3
cpu: stm32l1: use cortex common makefile and newlib module
2015-05-26 10:46:29 +02:00
8a8d547711
cpu: stm32f4: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
2d680776ba
cpu: stm32f3: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
8ef7c5eaac
cpu: stm32f1: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
45d588c167
cpu: stm32f0: use cortex common makefile and newlib module
2015-05-26 10:46:19 +02:00
cad9cb42f6
cpu: sam3x8e: use cortex common makefile and newlib module
2015-05-26 10:46:19 +02:00
c0bdebd164
cpu: nrf51822: use cortex common makefile and newlib module
2015-05-26 10:46:11 +02:00
484c3e3697
cpu: lpc1768: use cortex common makefile and newlib module
2015-05-26 10:46:03 +02:00
6e6e1eb2b3
cpu: cc2538: use cortex common makefile and newlib module
2015-05-26 10:46:03 +02:00
b89a58fdb5
cpu: add common cortex Makefile.include
2015-05-26 10:45:40 +02:00
aff25936d1
cpu: samd21: fix gpio irq handling compile handling
2015-05-26 10:23:43 +02:00
Martine Lenders
b11eb90042
Merge pull request #3005 from authmillenon/od/fix/PRI.64
...
od: add PRI.64 for unsupported boards
2015-05-23 10:05:59 +02:00
Oleg Hahm
7be7e00ab9
Merge pull request #3042 from gebart/pr/doxygen-@file-remove-filename
...
everything: Remove filename from @file Doxygen command
2015-05-22 17:10:04 +02:00
Hauke Petersen
bac6b7fa97
Merge pull request #2954 from d00616/cpu_nrf51_lpm
...
cpu/nrf51822/lpm_arch: add __WFI
2015-05-22 13:45:44 +02:00
Martine Lenders
6d13c899c5
od: add PRI.64 for unsupported boards
2015-05-22 11:54:23 +02:00
af63254f4e
cpu: saml21 initial commit
...
basic port, uart, one timer, gpio, spi working.
2015-05-22 11:47:51 +02:00
Johann Fischer
31c0ea7358
Merge pull request #2994 from gebart/pr/kinetis-pwm-refactor
...
kinetis: Refactor PWM periph
2015-05-22 09:51:47 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Oleg Hahm
d0790ad034
Merge pull request #2993 from gebart/pr/kinetis-bitband-reg
...
kinetis: remove ambiguous BITBAND_REG macro
2015-05-21 19:18:33 +02:00
Lucas Jenß
742c39e838
Merge pull request #2881 from x3ro/clarify-stacksize-constants
...
Clarify and unify naming of thread-related constants (stacksize and priority)
2015-05-21 16:55:30 +02:00
Joakim Gebart
af3263b0a2
k60: Use BITBAND_REG32
...
- Use BITBAND_REG32 instead of BITBAND_REG for improved code readability.
- Remove BITBAND_PERIPH* from cpu-conf.h
- Remove BITBAND_REG from MK60D10.h, MK60DZ10.h
2015-05-21 11:00:50 +02:00
Joakim Gebart
e82ba82dc3
kinetis: Use BITBAND_REG32 instead of BITBAND_REG in random_rngb.c
2015-05-21 11:00:49 +02:00
Joakim Gebart
82d1432e07
k60: Add BITBAND_REG8,16,32 macros to MK60DZ10.h
...
For specifying the register access width. Copied from MK60D10.h.
2015-05-21 11:00:49 +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
Frank Holtz
ece408a96c
cpu/nrf51822/lpm_arch: add power modes
2015-05-20 20:30:12 +02:00
Oleg Hahm
8cb0e59283
Merge pull request #3030 from gebart/pr/tab-fixes2
...
Tab indentation fixes
2015-05-20 18:27:28 +02:00
Joakim Gebart
c85cc83a5a
kinetis: Refactor PWM periph implementation
...
- Set the proper prescaler value depending on requested frequency
- Return the actual achieved frequency in pwm_init
- Handle 1-8 channels depending on periph_conf.h instead of 4 fixed
- Perform function argument verification before touching the hardware
- Turn on PORT clock gate before touching PORT registers
- Eliminate some magic numbers
2015-05-20 06:16:42 +02:00
Hauke Petersen
f0d9574de1
cpu/samd21: fixed broken spi_transfer_byte function
2015-05-19 18:05:36 +02:00
Peter Kietzmann
b393e530da
Merge pull request #3024 from haukepetersen/fix_stm32f1_uart
...
cpu/stm32f1: fixed uart_init()
2015-05-19 14:43:03 +02:00
Joakim Gebart
ae5098bb9b
cpu/stm32f0/include/stm32f091xc.h: Replace tabs by spaces
2015-05-19 12:25:46 +02:00
Hauke Petersen
9878f78050
cpu/nrf51822: added minimal radio driver
...
This driver aims to behave like 802.15.4 devices do, supporting
short addressing, PAN ID and address broadcasts.
2015-05-19 10:02:57 +02:00
BytesGalore
369e7bbf43
Merge pull request #2540 from josephnoir/topic/cpp-stl-compatibility
...
Add replacement headers for std thread, mutex and condition_variable
2015-05-19 07:56:54 +02:00
haukepetersen
84be07f2ab
cpu/stm32f1: fixed uart_init()
...
- added linebreak to funtion declaration
- fixed saving of callback argument
2015-05-18 21:12:23 +02:00
Peter Kietzmann
b3e78ddc33
Merge pull request #3016 from gebart/pr/tab-indentation
...
Inconsistent indentation in some files
2015-05-18 15:45:15 +02:00
df7deccd25
Merge pull request #2976 from gebart/pr/cortex-m-initial-stack-alignment
...
cortex-m: initial stack alignment to 64bit
2015-05-18 15:01:30 +02:00
Joseph Noir
bddaee751d
Add replacement headers for thread, mutex and cond
...
These headers do not provide full stl functionality,
but a small subset:
* thread and this_thread
* condition_variable (some timed functions are missing)
* mutex, lock_guard and unique_lock
2015-05-18 13:57:02 +02:00
Martine Lenders
e53cdbb1b5
Merge pull request #3015 from gebart/pr/cppcheck-warnings
...
cppcheck drive-by fixes
2015-05-18 11:51:22 +02:00
Hauke Petersen
9e92ad5e89
Merge pull request #2948 from d00616/cpu_nrf51_poweropt_random
...
cpu/nrf51822/periph/random Power optimization
2015-05-18 10:41:44 +02:00
Joakim Gebart
273481455b
stm32l1: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
6000b29440
stm32f4: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
d0709d914e
stm32f1: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
04c445c17e
mc1322x: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
a595ab00af
lpc2387: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
dbb4ff1744
kw2x: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
0f23a9a599
cortex-m4: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
a0e6cc7504
cortex-m3: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
b39b4fc6d1
cortex-m0: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
01c5120039
cortex-m: Suppress cppcheck error about uninitialized result
...
False positive, the variable result is assigned from within inline assembly
2015-05-18 06:29:35 +02:00
Frank Holtz
85248ddec8
cpu: nrf51822/periph/random Power optimization
2015-05-16 10:39:30 +02:00
Joakim Gebart
43b9150460
stm32f4: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Joakim Gebart
018b6a73d4
stm32f3: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Joakim Gebart
8619bdec63
lpc2387: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Johann F
1d60d9870d
add support for Freescale MKW2x family devices
2015-05-15 08:05:43 +02:00
Joakim Gebart
76a49bc3d2
cortex-m3: Align initial stack pointer to 64 bits
...
AAPCS requires stack pointers to be aligned on a double word boundary.
In addition, Clang-3.6 assumes the stack pointer is always aligned to
a 8 byte boundary upon function entry, at least in armv7-m, causing
hard-to-find errors in the compiled code.
This is the same implementation as for the Cortex-M4
2015-05-13 09:17:07 +02:00
Joakim Gebart
eddd3177a5
cortex-m4: Align initial stack pointer to 64 bits
...
AAPCS requires stack pointers to be aligned on a double word boundary.
In addition, Clang-3.6 assumes the stack pointer is always aligned to
a 8 byte boundary upon function entry, at least in armv7-m, causing
hard-to-find errors in the compiled code.
2015-05-13 09:15:56 +02:00
Oleg Hahm
5079446beb
Merge pull request #2937 from gebart/pr/kinetis-unsuppress-cppcheck
...
kinetis: unsuppress variable scope warnings in rnga.c
2015-05-12 23:24:09 +02:00
bapclenet
3f2afcd596
Merge pull request #2918 from daniel-k/samd21_rtt
...
cpu/samd21: Add RTT driver
2015-05-11 10:31:13 +02:00
Oleg Hahm
68ab3aa046
Merge pull request #2958 from mryndzionek/ret_status_fix
...
Propagate the return status
2015-05-10 21:54:53 +02:00
Oleg Hahm
69f07c601f
Merge pull request #2949 from OlegHahm/crash_panic_foobar
...
core: panic unification
2015-05-10 21:54:43 +02:00
daniel-k
a31848ceb8
cpu/samd21: implement peripheral real time timer (periph/rtt)
2015-05-10 21:09:31 +02:00
mryndzionek
37f03c6f52
lpc1768: propagate the timer setting result up
2015-05-10 15:44:19 +02:00
Oleg Hahm
cb1f047f59
core: unified core_panic implementation
2015-05-10 11:58:43 +02:00
Oleg Hahm
828839316b
core: renamed crash.h to panic.h
2015-05-09 18:44:10 +02:00
Joakim Gebart
cc27846ac3
cpu/stm32f4/include/stm32f415xx.h: Trailing whitespace
2015-05-09 09:17:27 +02:00
Joakim Gebart
12554b1537
cpu/stm32f3/include/stm32f334x8.h: Unix line endings
2015-05-09 09:16:56 +02:00
Joakim Gebart
03745f7884
cpu/nrf51822: Unix line endings
2015-05-09 09:13:26 +02:00
Joakim Gebart
7a84faf8bc
cpu/lpc2387/linkerscript.x: Tabs->Spaces
2015-05-09 09:11:37 +02:00
Joakim Gebart
9ae63bac0b
cpu/atmega_common/avr-libc-extra/time.h: trailing whitespace
2015-05-09 09:10:41 +02:00
Joakim Gebart
e9c567107d
all: remove extra blank lines at the end
2015-05-09 09:10:08 +02:00
Joakim Gebart
64d7a5f55a
kinetis: unsuppress variable scope warnings in rnga.c
2015-05-08 21:25:55 +02:00
bapclenet
bfaa4ea1e3
Merge pull request #2929 from bapclenet/samr21/rtc_isr
...
samd21/rtc_safety_isr
2015-05-08 14:39:14 +02:00
bapclenet
fa571013ee
samr21/rtc safety isr
2015-05-07 20:18:49 +02:00
Joakim Gebart
f15fc173b9
arm7: Add ARCH_HAS_ATOMIC_SET_RETURN
2015-05-07 18:52:13 +02:00
René Kijewski
96ca6a6bef
x86: Add atomic_cas implementation
2015-05-07 18:52:13 +02:00
Joakim Gebart
afc1dd3a6d
cortex-m4: Add atomic_cas implementation
2015-05-07 18:52:13 +02:00
Joakim Gebart
b7db351400
cortex-m3: Add atomic_cas implementation
2015-05-07 18:52:13 +02:00
Joakim Gebart
46b9358e84
native: Remove generic atomic_set_return implementation
...
The removed implementation is the same as the generic implementation in core/atomic.c
2015-05-07 18:52:13 +02:00
Joakim Gebart
215ccc1213
core: Introduce atomic counters
...
- Move generic implementation of atomic_set_return to core/atomic.c
- Generic implementation of atomic compare and swap in core/atomic.c
- atomic_cas is used to implement atomic counters in core/include/atomic.h
- atomic_int_t is an atomic integer type
- ATOMIC_INIT can be used as an initializer for atomic_int_t
- ATOMIC_VALUE gets a reference to the value of an atomic integer
2015-05-07 18:52:13 +02:00
Joakim Gebart
988ae54e4f
cortex-m3_common: Homogenize documentation tags against Cortex-M0, Cortex-M4.
2015-05-07 18:52:13 +02:00
df3ed49305
cpu: samd21: switch to hwtimer compat wrapper
2015-05-06 12:04:53 +02:00
Peter Kietzmann
19425f56b0
Merge pull request #2872 from gebart/pr/kinetis-spi-slave-warnings
...
kinetis: Add SPI_[2-7] to spi_transmission_begin
2015-04-29 13:24:56 +02:00
Joakim Gebart
fd46cb2364
kinetis: Add SPI_[2-7] to spi_transmission_begin
...
Fix compiler warning about unhandled switch cases.
2015-04-28 22:21:57 +02:00
Hauke Petersen
6bf31c6e01
cpu/nrf51822: fixed spi_transfer_bytes
2015-04-28 16:01:48 +02:00
Oleg Hahm
3dd3bbb461
transceiver: use transceiver specific broadcast
2015-04-19 20:35:11 +02:00
Hauke Petersen
4a734d51ca
Merge pull request #2798 from FrancescoErmini/extend_sam3x_gpio
...
cpu/sam3x: extend gpio implementation
2015-04-17 11:52:50 +02:00
Peter Kietzmann
3922f6e04c
Merge pull request #2817 from jfischer-phytec-iot/pr@kinetis-enable-hwcs
...
kinetis_common: add a option to enable hardware CS for kinetis spi
2015-04-17 10:54:52 +02:00
Johann Fischer
36e89175b8
cpu/kinetis_common/spi.c: add a option to use hardware cs (PCS0 only)
...
minor fixes:
- get rid of compiler warning "value 'SPI_1' not handled in switch"
- add a giant macro to avoid redundant code in spi_init_master
2015-04-17 09:05:37 +02:00
Francesco Ermini
ca743ae97b
cpu/sam3x: extend gpio implementation
...
fix functions arguments
extended sam3x GPIO from 16 to 31
fix GPIO_NUMOF to 32
add GPIOs
extend GPIO 16-31 for ArduinoDue/UDOO
fix white space at the end gpio_clear
2015-04-15 17:56:00 +02:00
Hauke Petersen
5893ca8851
cpu/stm32f1: fixed GPIO interrupt cb arg handling
2015-04-15 15:39:57 +02:00
Peter Kietzmann
7c870f8730
Merge pull request #2767 from bapclenet/samr21/RTC
...
samr21/RTC
2015-04-10 11:11:00 +02:00
Oleg Hahm
c1ecccfbd8
Merge pull request #2282 from gebart/pr/k60-initial
...
Add support for Kinetis K60 CPUs and Eistec Mulle IoT board
2015-04-10 00:22:21 +02:00
Peter Kietzmann
33133c677e
Merge pull request #2701 from gebart/pr/kinetis-gpio-lut
...
kinetis: Refactor GPIO to use a look-up-table
2015-04-09 16:10:12 +02:00
Joakim Gebart
7f64920cd7
kinetis: Refactor GPIO to use a look-up-table
...
Saves a bunch of ROM space
mulle, gcc-4.9.2:
text data bss dec hex filename
20800 216 65320 86336 15140 /data/riotbuild/riotproject/tests/periph_gpio/bin/mulle/periph_gpio.elf
18992 216 65320 84528 14a30 /data/riotbuild/riotproject/tests/periph_gpio/bin/mulle/periph_gpio.elf
diff = 1808
36080 272 65264 101616 18cf0 /data/riotbuild/riotproject/examples/default/bin/mulle/default.elf
34296 272 65264 99832 185f8 /data/riotbuild/riotproject/examples/default/bin/mulle/default.elf
diff = 1784
2015-04-09 13:53:21 +02:00
bapclenet
edfb255a5d
samr21/RTC
...
Solve issue #2261 by using the external 32,768KHz Oscillator
2015-04-09 10:05:09 +02:00
d0dfbf0079
cpu: stm32f3: periph: gpio: fix possibly uninitialized variable access
2015-04-08 19:52:14 +02:00
8653e685bc
stm32f3: gpio: fix isr2
2015-04-08 19:52:14 +02:00
bcb206be61
cpu: stm32f3: add myself as author
2015-04-08 19:52:03 +02:00
bb6b04bfaf
cpu: stm32f3: SPI: remove empty line
2015-04-08 19:52:03 +02:00
cfcd06964a
cpu: stm32f3: SPI: force 8bit transfers
2015-04-08 19:52:03 +02:00
333dae4c57
stm32f3: spi: ifdef stm32f303vc specific de/initialization
2015-04-08 19:52:03 +02:00
Cenk Gündoğan
4fae22bf3d
cpu/native: do not exit when real_read returns 0
2015-04-06 10:18:46 +02:00
José Roberto de Souza
684b081a16
x86: fix FPU lazy swap
...
The ucontext->x86_fxsave is initialize as 512 bytes of zeros, but it
is not a valid value to be set onto FPU registers, causing a General
Protection Fault:
Interrupt 0x0d (General Protection Fault) while handling 0x07 (Device not available)
EAX=0012f4c0 ECX=001336e4 EDX=001334ac EBX=001336e0
ESP=00123784 EBP=001237c8 ESI=00000200 EDI=00000000
Error code=00000000
CR0=80010031 CR2=00000000 CR3=0012d000 CR4=000001e0
EIP=0000:80010031 EFLAGS=0012d000
<stack trace>
00000000
???
</stack trace>
Halting.
So lets copy the initial state of FPU registers before FPU is used
and set it as the initial state of FPU to new threads(coroutine).
2015-04-02 19:27:17 -03:00
Joakim Gebart
de486ff79f
k60: Initial commit of K60 CPU.
...
Tested on the following Freescale Kinetis K60 CPUs:
- MK60DN512VLL10
The port should with a high probability also support the following variations of the above CPUs (untested):
- MK60DN256VLL10
And possibly also:
- MK60DX256VLL10
- MK60DX512VLL10
- MK60DN512VLQ10
- MK60DN256VLQ10
- MK60DX256VLQ10
- MK60DN512VMC10
- MK60DN256VMC10
- MK60DX256VMC10
- MK60DN512VMD10
- MK60DX256VMD10
- MK60DN256VMD10
Currently not working on the following CPUs (Missing PIT channel
chaining necessary for kinetis_common/periph/timer implementation):
- MK60DN256ZVLL10
- MK60DN512ZVLL10
- MK60DX256ZVLL10
- MK60DX512ZVLL10
- MK60DN512ZVLQ10
- MK60DN256ZVLQ10
- MK60DX256ZVLQ10
- MK60DN512ZVMC10
- MK60DN256ZVMC10
- MK60DX256ZVMC10
- MK60DN512ZVMD10
- MK60DX256ZVMD10
- MK60DN256ZVMD10
Regarding header files from Freescale:
dist/tools/licenses: Add Freescale CMSIS PAL license pattern
Redistribution is OK according to:
https://community.freescale.com/message/477976?et=watches.email.thread#477976
Archive copy in case the above link disappears:
https://web.archive.org/web/20150328073057/https://community.freescale.com/message/477976?et=watches.email.thread
Applies to:
- MK60DZ10.h (K60 variant)
2015-03-28 08:30:13 +01: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
Hauke Petersen
ad69413d22
Merge pull request #2669 from gebart/pr/cortex-thread-arch-asm
...
cortex-m4_common: Refactor context save/restore
2015-03-25 18:21:11 +01:00
Joakim Gebart
791c57720a
cortex-m4_common: Refactor context save/restore
...
Clang 3.6 is stricter than GCC and previous releases of Clang regarding
naked functions and now only allows inline asm inside naked functions.
This is a refactoring of the functions isr_pendsv, isr_svc,
context_save, context_restore to still be naked functions but allow
building with Clang 3.6
2015-03-21 18:43:01 +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
James Hollister
93cff5613f
cpu/native: Fix for missing malloc.h in OSX
2015-03-21 01:41:54 -07:00
Hauke Petersen
66e7646091
cpu/nrf51822: added SPI driver implementation
2015-03-17 10:37:47 +01:00
Hauke Petersen
4ad36a799e
cpu/stm32f0: added support for stm32f091rc
2015-03-16 16:23:44 +01:00
Thomas Eichinger
c633c083db
Merge pull request #2597 from haukepetersen/add_stm32f0_corepanic
...
cpu/stm32f0: included core_panic module
2015-03-16 15:15:33 +01:00
Hauke Petersen
3436a10039
cpu/stm32f0: included core_panic module
2015-03-13 17:40:37 +01:00
Hauke Petersen
ec17730c38
cpu/stm32f0: fixed gpio interrupt routines
...
- guarded calls in case no interrupt is defined
- eneabled detection of multiple, simoultaneous events
2015-03-13 15:32:48 +01:00
Thomas Eichinger
1eac81b562
Merge pull request #2593 from haukepetersen/fix_stm32f0_timerdef
...
cpu/stm32f0: cleanup for timer IRQ macro
2015-03-13 14:23:41 +01:00
Thomas Eichinger
64410350bd
Merge pull request #2552 from jhollister/add_cpuid
...
Added cpuid_get for STM boards
2015-03-13 10:59:09 +01:00
Hauke Petersen
49491cf66d
cpu/stm32f0discovery: fixed timer irq prio macro
2015-03-13 10:21:18 +01:00
Joakim Gebart
f8eb76caec
kinetis: Enable UART hardware FIFO buffers.
2015-03-10 17:52:07 +01:00
kushalsingh007
390e030f84
Removing the warnings after running static code analyser.
...
-Changes to fix all the clarifyCalulation warnings.
-Fixes a part of issue number 480
2015-03-10 04:08:43 +05:30
James Hollister
722835989d
cpu/stm32f4: added cpuid_get to stm32f4
2015-03-08 12:18:37 -07:00
James Hollister
10f4aacf6c
cpu/stm32f3: added cpui_get for stm32f3
2015-03-08 12:14:19 -07:00
James Hollister
3d6ab85bb3
cpu/stm32f0: added cpuid_get for stm32f0
2015-03-08 12:13:10 -07:00
Hauke Petersen
d19515d590
cpu/stm32f3: set cpu specific hwtimer spin barrier
2015-03-04 10:44:26 +01:00
Joakim Gebart
f317cf42a8
kinetis: Add configuration macros for I2C bus speed parameters.
2015-03-04 08:55:06 +01:00
Thomas Eichinger
bc378dbb23
Merge pull request #2378 from locicontrols/vtor
...
cpu/cc2538: set the VTOR register to the actual address of the vector table
2015-03-03 18:25:47 +01:00
Ludwig Ortmann
4f29a7757e
Merge pull request #2285 from authmillenon/pktbuf/api/use-pkt
...
pktbuf: port to use pkt_t instead of void*
2015-02-19 14:46:15 +01:00
Martine Lenders
41f60aca4c
pktbuf: port to use ng_ version
2015-02-19 13:51:27 +01:00
Lotte Steenbrink
f08a371f1f
Merge pull request #2466 from LudwigOrtmann/pr/trailing_whitespace
...
cpu, drivers, boards, tests: remove trailing whitespace
2015-02-18 19:10:22 +01:00
Ludwig Ortmann
51a4f8a43c
cpu/kinetis_common/i2c: fix indent, trailing space
2015-02-18 13:52:48 +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
Ludwig Ortmann
88f1dc5cbc
cpu/native: improve daemonization
...
- detach from working directory
- detach from process group
- set umask
2015-02-17 22:01:02 +01:00
Ludwig Ortmann
9a130e2e84
cpu/native: add some syscall wrappers
...
Add wrappers for chdir, setsid, and umask.
2015-02-17 22:00:14 +01:00
Joakim Gebart
b6eeb65f70
Merge pull request #2420 from gebart/pr/cortex-m4-crash-bkpt
...
cortex-m4_common: Add debugger break in crash.c + minor string handling fix
2015-02-17 16:06:33 +01:00
Joakim Gebart
5a09e54e1b
cortex-m0_common: Update crash.c with changes from Cortex-M4.
2015-02-17 13:16:40 +01:00
Joakim Gebart
2605b57a35
cortex-m3_common: Update crash.c with changes from Cortex-M4.
2015-02-17 13:16:26 +01:00
Joakim Gebart
972e61529c
cortex-m4_common: Update crash.c author and copyright after recent changes.
2015-02-17 13:15:40 +01:00
Joakim Gebart
f6ce0561ed
Merge pull request #2412 from jfischer-phytec-iot/pr@kinetis-startup
...
Add common startup.c for Kinetis MCUs.
2015-02-15 18:48:19 +01:00
haukepetersen
28655049a5
cpu/sam3x8e: use core_panic for fault ISRs
2015-02-15 11:20:59 +01:00
Johann Fischer
8afc8dfdc3
cpu/kinetis_common: add common startup.c
...
cpu/kinetis_common/wdog.c: move wdog disable code to initial wdog driver
cpu/kinetis_common/wdog.c: add COP WDOG
cpu/kinetis_common/include/wdog.h: add configuration example
cpu/kinetis_common: add fault handlers
cpu/kinetis_common: add .ramcode and ISR vector relocation to startup.c
2015-02-15 10:28:13 +01:00
Joakim Gebart
a745c018da
kinetis: Refactor RTC into RTT, add RTC wrapper.
2015-02-14 14:20:26 +01:00
Martine Lenders
9077299d06
msp430: add assert header
2015-02-12 14:24:06 +01:00
Ian Martin
c3417d151a
cpu/cc2538: vector table address and alignment
...
Enforce the 512-byte vector table alignment and set the
VTOR register to the actual address of the vector table.
2015-02-11 11:09:19 -05:00
Fabian Nack
36025280de
cpu/stm32f4: Add low power mode implementation
2015-02-11 10:04:26 +01:00
Joakim Gebart
7829a55a8c
cortex-m4_common: Minor fixes for string handling in core_panic()
2015-02-10 13:33:30 +01:00
Joakim Gebart
0b7a929ec6
cortex-m4_common: Add debugger break in crash.c
2015-02-10 13:09:43 +01:00
Hauke Petersen
02831e325f
cpu/nrf51822: use of core_panic in startup code
2015-02-10 09:40:35 +01:00
Joakim Gebart
bf730c1c60
Merge pull request #2415 from haukepetersen/add_m0_crash
...
cpu/cortex_m0_common: added crash.c
2015-02-10 09:18:01 +01:00
Joakim Gebart
4d47e652dc
Merge pull request #2416 from haukepetersen/add_m4_crash
...
cpu/cortex-m4_common: added crash.c
2015-02-10 08:07:19 +01:00
Hauke Petersen
68b167ca77
cpu/cortex-m4_common: added crash.c
2015-02-09 18:28:32 +01:00
Hauke Petersen
7a11301451
cpu/cortex_m0_common: added crash.c
2015-02-09 18:27:42 +01:00
Joakim Gebart
29d3959b10
kinetis: Add shared Kinetis linker script.
2015-02-09 17:52:04 +01:00
Ludwig Ortmann
dd2da2fb71
Merge pull request #2405 from cgundogan/restrict_with_leading_underscores
...
Use `__restrict` instead of `restrict`
2015-02-08 22:07:23 +01:00
Cenk Gündoğan
432f0014c0
cpu: restrict => __restrict
2015-02-08 19:15:14 +01:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
Hauke Petersen
21dd39249f
cpu/nrf51822: raised default stack size
2015-02-07 13:22:18 +01:00
Joakim Gebart
890262e6ff
Merge pull request #2265 from jfischer-phytec-iot/pr@kinetis_common
...
Support for Freescale Kinetis MCUs, kinetis_common
2015-02-05 10:00:02 +01:00
Thomas Eichinger
304d3b13eb
Merge pull request #2371 from gebart/pr/cmsis-hal-4.0
...
Update CMSIS HAL to version 4.0
2015-02-04 15:50:17 +01:00
Johann F
c0628a3058
cpu/kinetis_common: initial import for kinetis_common
...
add peripheral drivers for Freescale Kinetis MCUs:
adc driver
cpuid driver
gpio driver
hwtimer_arch driver (hwtimer used Low Power Timer)
i2c driver (master mode only)
mcg driver
pwm driver
random_rnga driver
random_rngb driver
rtc driver
spi driver
timer driver (timer used Periodic Interrupt Timer)
uart driver
add doc.txt (configuration examples)
random_rnga: Update RNGA driver in preparation for RNGB driver.
random_rngb: Add RNGB driver.
spi: refactor SPI to work for multiple CTARS, add spi_acquire, spi_release
gpio: Add gpio_irq_enable, gpio_irq_disable. Refactor GPIO.
gpio: Add gpio_irq_enable, gpio_irq_disable.
gpio: Refactor ISR functions to work with all GPIOs (0-31) and all ports (PORTA-PORTH)
adc: Refactor ADC, add calibration and scaling.
Added integer scaling of results in adc_map.
Handle precision setting in adc_init.
Set ADC clock divider depending on module clock.
Add ADC_1 as a possible device.
Add ADC calibration procedure according to K60 ref manual.
Handle ADC pins which are not part of the pin function mux.
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-02-04 14:50:54 +01:00
Joakim Gebart
45dbbd18ae
stm32f0: Remove Doxygen from already documented functions.
2015-02-01 08:09:46 +01:00
Joakim Gebart
f977448d18
cortex-m0: Add extern "C" to core_cmInstr.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
ae8c7607ea
cortex-m0: Add extern "C" to core_cmFunc.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
8c00ee0d7b
cortex-m0: Update to CMSIS HAL 4.0
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
068dfdff4b
cortex-m3: Add extern "C" to core_cmInstr.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:29 +01:00
Joakim Gebart
489caf0be0
cortex-m3: Add extern "C" to core_cmFunc.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
463d4a1cf4
cortex-m3: Update to CMSIS HAL 4.0
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
53b29f40e7
cortex-m4: Add extern "C" to core_cmInstr.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
0d8aaf86a8
cortex-m4: Add extern "C" to core_cmFunc.h
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 10:18:28 +01:00
Joakim Gebart
fe43bb2b7a
cortex-m4: Update to CMSIS HAL 4.0
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-29 09:38:31 +01:00
haukepetersen
bb1288b775
cpu/stm32f3: added support for stm32f334r8
2015-01-27 23:14:10 +01:00
BytesGalore
714ee38355
boards: core: cpu: drivers: sys: added missing header guards
2015-01-27 19:10:57 +01:00
Fabian Nack
870a695a38
cpu/stm32f4: Adapt PWM implementation to allow timers with < 4 channels
2015-01-22 02:24:00 +01:00
Peter Kietzmann
eaf9cc32e6
Merge pull request #2308 from haukepetersen/fix_stm32f0_gpioclks
...
cpu/stm32f0: fixed port clk en for GPIO driver
2015-01-21 10:20:10 +01:00
haukepetersen
0f746047d7
cpu/stm32l1: repaired doxygen group
2015-01-21 09:34:31 +01:00
Hauke Petersen
3976554f12
cpu/stm32f0: fixed port clk en for GPIO driver
2015-01-21 08:14:31 +01:00
Ludwig Ortmann
e03596f9d6
Merge pull request #2324 from LudwigOrtmann/native-random-warnings
...
cpu/native: warn about uninitialized random module
2015-01-20 09:28:51 +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
Peter Kietzmann
0c3083200d
Merge pull request #2317 from gebart/pr/spi-locking
...
drivers/periph/spi: Implement thread safety for all SPI devices
2015-01-20 07:27:49 +01:00
Joakim Gebart
d68b4ef6c2
stm32l1: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:37 +01:00
Joakim Gebart
3292987516
stm32f3: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:34 +01:00
Joakim Gebart
f64c54bf66
stm32f1: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:31 +01:00
Joakim Gebart
98c88b0549
stm32f0: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:23 +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
Joakim Gebart
b20f21f2c5
sam3x8e: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:15 +01:00
Thomas Eichinger
830b2b2312
cpu/stm32l1: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
8821e0edcf
cpu/stm32f4: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
30040fa311
cpu/samd21: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
fe643f7077
periph/i2c: added means to make I2C thread-safe
...
As discussed in #2289 this changes provide means to
use the i2c interface safely within multible threads.
2015-01-19 12:18:03 +01:00
Thomas Eichinger
5ae38d6dc7
Merge pull request #1927 from kaspar030/add_lto_flags
...
make: optionally build with gcc's link time optimization
2015-01-19 11:33:32 +01:00
Ludwig Ortmann
3465213118
cpu/native: warn about uninitialized random module
2015-01-19 11:21:01 +01:00
Hauke Petersen
70a5df67a5
cpu/stm32f4: made SPI driver thread safe
2015-01-17 15:13:51 +01:00
Hauke Petersen
c3cdfe7ef7
Merge pull request #2315 from fnack/spi_clock
...
cpu/stm32f4: Fix SPI baud rate control settings
2015-01-16 11:19:18 +01:00
Fabian Nack
672a362f2e
cpu/stm32f4: Corrected wrong spi baud rate control settings
2015-01-16 09:24:48 +01:00
Hauke Petersen
23ecb09f12
cpu/stm32f4: added lost port clock eanble
2015-01-15 14:23:06 +01:00
Ludwig Ortmann
c4d4458651
Merge pull request #2243 from LudwigOrtmann/native-calloc
...
native: fix real_calloc, _native_in_calloc initialization
2015-01-14 14:05:06 +01:00
Ludwig Ortmann
88fa49ab38
cpu/native: add high-quality random implementation
...
Per default random data is read from `/dev/random` now.
If specified (e.g. `-s 4711`), data is generated by calls to POSIX
random function like before. The POSIX random API is initialize with
the given seed (`srandom(4711);` in this example).
2015-01-14 11:51:23 +01:00
Hauke Petersen
b435a488fa
Merge pull request #2026 from thomaseichinger/stm32l1
...
stm32l1: initial port for the nucleo-l1 board and stm32l1 cpu
2015-01-12 21:33:21 +01:00
Thomas Eichinger
07d76d7127
stm32l1: initial port for the nucleo-l1 board and stm32l1 cpu
2015-01-12 15:13:19 +01:00
Troels Hoffmeyer
29b0e73350
samr21: cpuid implemented by reading 128 bits from flash
2015-01-12 13:50:16 +01:00
Ludwig Ortmann
3ab73bc633
cpu/native: init _native_in_calloc explicitly
2015-01-11 10:59:49 +01:00
Ludwig Ortmann
f5cfda977a
cpu/native: fix real_calloc initialization
2015-01-11 10:59:49 +01:00
Thomas Eichinger
2ea028dd51
Merge pull request #2011 from haukepetersen/add_stm32f3_spi
...
cpu/stm32f3: added SPI driver
2015-01-09 11:46:06 +01:00
9fffd99493
stm32f1: mark interrupt vector table as __attribute__((used))
...
Enables gcc LTO for stm32f1 based boards
2015-01-08 15:59:54 +01:00
Oleg Hahm
9bddd61115
Merge pull request #2207 from gebart/pr/lpc2387-gc-sections
...
msba2: Use --gc-sections when linking.
2015-01-08 14:05:27 +01:00
Hauke Petersen
a365619854
cpu/stm32f3: added SPI driver
2015-01-07 20:18:25 +01:00
Hauke Petersen
905a7f2f56
Merge pull request #1867 from haukepetersen/fix_stm32f0_uartremodel
...
cpu/stm32f0: optimizations to UART driver
2015-01-07 20:11:59 +01:00
Hauke Petersen
3987f528f4
cpu/stm32f0: optimizations to UART driver
2015-01-07 20:11:15 +01:00
Joakim Gebart
99319f4e28
[SQUASH ME] lpc2387: Add missing *(data.*) to linker script.
2015-01-07 19:10:58 +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
Oleg Hahm
6dac96ad1b
Merge pull request #1904 from LudwigOrtmann/native_bufferbloat
...
native: increase buffer size, set defaults conditionally
2015-01-07 03:00:01 +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
Thomas Eichinger
e6c4181c94
Merge pull request #2229 from LudwigOrtmann/issue-2228
...
cpu/samd21: increase default stack size
2014-12-28 02:26:46 +01:00
Ludwig Ortmann
5e0973ca89
Merge pull request #2150 from OlegHahm/more_doc_cleanup
...
doc: More documentation cleanup
2014-12-22 11:58:59 +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
Oleg Hahm
db58a8b226
Merge pull request #2214 from rousselk/msp430-fix-intr
...
Msp430 misc interrupt-related fixes
2014-12-19 16:35:39 +01:00
Hauke Petersen
6a35845203
Merge pull request #2223 from kaspar030/stm32f1_fix_function_definition
...
stm32f1: make function definition match declaration
2014-12-19 15:58:43 +01:00
547ddddad2
stm32f1: make function definition match declaration
2014-12-19 15:15:00 +01:00
Hauke Petersen
1bd63978a8
Merge pull request #2222 from haukepetersen/fix_lpc1768_uartclk
...
cpu/lpc1768: fixed UART PCLK selection
2014-12-19 14:21:08 +01:00
Hauke Petersen
31a6e81bd9
cpu/lpc1768: fixed UART PCLK selection
2014-12-19 13:47:58 +01:00
Kévin Roussel
892268d74b
Ensure only GIE bit is touched in splx_()
2014-12-19 11:11:15 +01:00
Kévin Roussel
07b170595c
Ensure interrupts are enabled before going in low-power mode
2014-12-19 11:11:14 +01:00
Kévin Roussel
91fd567c8f
Use custom assembly code instead of MSP GCC primitives for dINT()/eINT()
...
and all other functions that enable or disable interrupts
2014-12-19 11:11:14 +01:00
Kévin Roussel
f9b0df7e4b
Use TimerB for 'hwtimer' module implementation
2014-12-19 10:53:12 +01:00