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

50 Commits

Author SHA1 Message Date
haukepetersen
28655049a5 cpu/sam3x8e: use core_panic for fault ISRs 2015-02-15 11:20:59 +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
Oleg Hahm
c5395342dc doc: use @false instead of 0 2014-11-30 21:36:04 +01:00
BytesGalore
a4d2ee307c cpu: added extern "C" to headers 2014-11-24 19:10:15 +01:00
Hauke Petersen
2220a9fab0 core/cpu/boards: removed fw_puts from RIOT 2014-11-21 13:09:02 +01:00
Hauke Petersen
62b6522e01 cpu: moved reboot_arch for cortex cpus 2014-11-20 17:22:39 +01:00
9ce0b676b4 core: sys: move ringbuffer to core 2014-11-19 14:18:39 +01:00
Hauke Petersen
e7f2e04a6a cpu/sam3x8e: made _kill(_r) syscalls weak 2014-11-18 18:10:15 +01:00
Thomas Eichinger
2b0d49c8b1 Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-14 10:50:51 +01:00
Hauke Petersen
dc79675888 cpu/sam3x8e: made UART0 work by editing syscalls 2014-11-11 13:05:43 +01:00
Hauke Petersen
3c9c95f7b1 cpu/sam3x8e: added interrupt mode to uart driver 2014-11-11 13:05:02 +01:00
Ian Martin
7bbdbcc7cb Allow the application's makefile to specify a custom linker script, for example:
LINKERSCRIPT = custom-linkerscript.ld
2014-11-10 14:28:35 -05:00
Hauke Petersen
72b68bc9f0 cpu: adjusted IRQ stack sizes for Cortex CPUs 2014-11-06 15:16:33 +01:00
Benjamin Valentin
879768397e malloc: check if the requested memory is really available 2014-11-05 12:11:24 +01:00
Hauke Petersen
e7fbaf3815 cpu: removed NAKED attribute from ISRs
- removed the __attribute__((naked)) from ISRs
- removed ISR_ENTER() and ISR_EXIT() macros

Rationale: Cortex-Mx MCUs save registers R0-R4 automatically
on calling ISRs. The naked attribute tells the compiler not
to save any other registers. This is fine, as long as the
code in the ISR is not nested. If nested, it will use also
R4 and R5, which will then lead to currupted registers on
exit of the ISR. Removing the naked will fix this.
2014-10-30 19:33:32 +01:00
Hauke Petersen
4d97f1752b cpu/sam3x8e: fixed style in startup.c 2014-10-30 13:53:44 +01:00
Hauke Petersen
e71d37ba05 cpu/sam3x8e: added output to isr_hard_fault 2014-10-30 13:52:56 +01:00
Hauke Petersen
8b992d03c2 cpu/sam3x8e: put PendSV IRQ to lowest prio 2014-10-30 13:50:12 +01:00
Hauke Petersen
a4d7ee8d4d cpu/sam3x8e: fixes to timer driver
- renamed config variable
- placed thread_yield() correctly
2014-10-30 13:50:12 +01:00
Oleg Hahm
481d4f2ee3 doc: fix ambiguous file name warnings
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Fabian Nack
45b3da9be7 cpu - multiple: adapt spi drivers to interface extension 2014-10-16 17:47:10 +02:00
PeterKietzmann
502ceaf508 cpu: Implement SPI driver for sam3x8e 2014-10-08 12:20:23 +02:00
Ian Martin
ab3b731ca8 cpu/sam3x8e bug: missing break statements in gpio_set() and gpio_clear() 2014-09-24 14:26:36 -04:00
Hauke Petersen
50ba74b7dc cpu/boards: completed GPIO driver for sam3x8e
- adjusted peripheral conf for udoo and arduino-due
- added gpio_init_int()
- added interrupt service routines
- fixed gpio_read()
- added clock enable for gpio_init_in()
2014-09-18 18:29:02 +02:00
Hinnerk van Bruinehsen
129e9b0bfa cpu: multiple: change size_t to ptrdiff_t for_sbrk_r 2014-09-14 22:07:05 +02:00
Hinnerk van Bruinehsen
57b998e4a1 cpu/examples/sys/drivers: reduce scope of variables 2014-09-13 19:03:40 +02:00
Ludwig Ortmann
b7992922ce fix license headers in non-.c files 2014-08-23 16:16:26 +02:00
Hauke Petersen
bd86eb28c9 cpu/sam3x8e: added random number generator driver 2014-08-21 20:18:02 +02:00
René Kijewski
2cb4166c3e all over the place: use sched_active_pid
In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.

`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.
2014-08-17 21:04:25 +02:00
Hauke Petersen
13894fa70c cpus: adjusted uart implementations for changed IF
- adjusted stm32f0
- adjusted stm32f3
- adjusted stm32f4
- adjusted sam3x8e
- adjusted nrf51822
2014-08-15 12:23:39 +02:00
Hauke Petersen
037820d6a6 board/cpu: adjusted uart driver implementations
for
- sam3x8e
- stm32f0
- stm32f4
- sam3x8e
- nrf51822
2014-08-11 15:08:20 +02:00
Oleg Hahm
983d056c75 core: harmonizes the data type for the process ID
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
Ludwig Ortmann
d55da67fb6 Merge pull request #1329 from LudwigOrtmann/riot_license
RIOT default license header change
2014-07-31 23:12:47 +02:00
Ludwig Ortmann
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
Cenk Gündoğan
3989945679 converting tabs to spaces in cpu (#1439)
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:46:28 +02:00
Hauke Petersen
9001e0c2fb core: removed duplicated hwtimer_arch.h 2014-07-09 21:08:13 +02:00
Hauke Petersen
306d97d488 cpu - sam3x8e: fixed vtimer, added timer_set_absolute 2014-07-02 12:41:54 +02:00
René Kijewski
467b41ad49 make: easifier usage of module subdirectories
Many modules have subdirectories. Often these subdirectories should only
be included under certain circumstances. Modules that use submodules
currently need to use this pattern:

```make
DIRS = …

all: $(BINDIR)$(MODULE).a
   @for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;

include $(RIOTBASE)/Makefile.base

clean::
   @for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
```

This PR moves the `all:` and `clean::` boilerplate into `Makefile.base`.
2014-06-17 15:49:32 +02:00
René Kijewski
840c0f0a57 make: detect their module name automatically
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.

This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
Hauke Petersen
ebb496cc26 cpu: renamed cortexm_common->cortex-m3_common and cleanup 2014-06-11 00:24:10 +02:00
Martin Lenders
2362623490 Fix trailing whitespaces
Fixes #1138
2014-05-26 14:54:23 +02:00
Oleg Hahm
ef4fe6616c documentation: unified descriptive text for cpu 2014-05-24 15:56:57 +02:00
Oleg Hahm
9bef59cc55 documentation: fix CMSIS doxygen for SAM3x8e 2014-05-19 10:45:05 +02:00
Oleg Hahm
ef5ec344fd core: prefix API functions correctly
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Ludwig Ortmann
aa4e61fab2 documentation: clean up doxygen mess after cortex
fixes #1190
2014-05-16 19:47:54 +02:00
Ludwig Ortmann
ba00bdb853 Merge pull request #1159 from thomaseichinger/fix_license_sam3x8e
sam3x8e: fix license to LGPL
2014-05-14 11:53:52 +02:00
Thomas Eichinger
1ab77eea4d fix license to LGPL
fixes #1155 needs @haukepetersen to review
2014-05-14 10:20:32 +02:00
Ludwig Ortmann
2314915ff2 license: fix license header grammar
insert missing "is"
2014-05-14 09:49:09 +02:00
Hauke Petersen
3cc435c074 board: Initial import of arduino-due
- switched to flashing using the programming port
- fixed Makefile.include
- fixes some documentation

- removed newlib nano.specs

- added OSX flashing support

- fixed flasher and port for OSX

- fixed port on OSX

- fixed bossac linux tool

- added license header
2014-05-13 21:20:09 +02:00
Hauke Petersen
31915bfe61 cpu: Initial import of SAM3X8E
- fixed spelling in uart driver
- marked cortexm-common a phony target
- fixed Makefiles
- added reboot interface implementation
- fixed documentation

- added UART0_BUFSIZE define

- added license header

- fixed documentation issues
2014-05-13 21:19:38 +02:00