Thomas Eichinger
d0b0af6d81
stm32f*: rename STDIO buffer and enable getchar with UART0
2014-09-26 14:16:59 +02:00
Thomas Eichinger
c83e4cb361
stm32f1: unify UART0 use
2014-09-26 14:16:59 +02:00
Thomas Eichinger
fc3864756f
stm32f3: be UART0 aware
2014-09-26 14:16:31 +02:00
Thomas Eichinger
aefa818338
stm32f4: be UART0 aware
2014-09-26 14:16:31 +02:00
Thomas Eichinger
8fc2e61e20
stm32f0: be UART0 aware
2014-09-26 14:16:31 +02:00
René Kijewski
4e50d74272
core: Provide ssize_t in a common place
...
Now you can include `kernel_types.h` if you need the `ssize_t`, without
facing problems due to the terrible MSP toolchain.
2014-09-26 14:04:30 +02:00
Thomas Eichinger
bf256f63a3
samr21-xpro: initial import for the samr21-xpro board
2014-09-25 14:37:47 +02:00
Hauke Petersen
d7741efa03
cpu/stm32f1: added missing spi function
2014-09-25 14:25:04 +02:00
Hauke Petersen
934eb44c13
Merge pull request #1488 from haukepetersen/add_stm32f0_spi
...
board/cpu: added SPI driver for the stm32f0discovery
2014-09-25 11:59:11 +02:00
Ludwig Ortmann
bd0ff3712e
Merge pull request #1706 from locicontrols/sam3x8e-break
...
cpu/sam3x8e bug: missing break statements in gpio_set() and gpio_clear()
2014-09-25 01:42:46 -07:00
René Kijewski
d4f144eb47
Add license statement to {msp430_types,net_help}.h
2014-09-25 10:14:58 +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
3d797d8f4b
cpu/stm32f4: fixed doxygen
2014-09-24 17:51:37 +02:00
Hauke Petersen
127095ada0
[SQUASH ME] cpu: removed slave mode
2014-09-24 15:41:48 +02:00
Hauke Petersen
cdb335e21d
[SQUASH ME] stm32f0: substantial fixes to SPI driver
2014-09-24 15:41:48 +02:00
Hauke Petersen
7904076668
cpu: mini cleanup to spi driver
2014-09-24 15:41:48 +02:00
Hauke Petersen
7d5b3263d5
SPI: more fixes including DEBUG info
2014-09-24 15:41:48 +02:00
Hauke Petersen
ff4854341a
[SQUASH ME] finished 0.1 of spi driver
2014-09-24 15:41:47 +02:00
Hauke Petersen
c494e3ab09
board/cpu: added SPI driver for stm32f0discovery
2014-09-24 15:41:47 +02:00
Hauke Petersen
34aaa61eb0
Merge pull request #1486 from haukepetersen/fix_sam3x_finish_gpio
...
cpu/boards: completed GPIO driver for sam3x8e
2014-09-19 13:21:09 +02:00
Hauke Petersen
4411b6b53f
cpu/nrf51822: adjusted default stack sizes
2014-09-19 13:02:23 +02:00
Ludwig Ortmann
d7cdc85758
Merge pull request #1677 from LudwigOrtmann/headers
...
doc: add license headers to some .h files
2014-09-18 10:47:30 -07: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
Ludwig Ortmann
289c4c0ee4
doc: add license headers to some .h files
2014-09-18 17:45:11 +02:00
Hauke Petersen
c9c7bfad38
cpu/nrf51822: some fixes and clean up
...
- enabled power for uart and timer
- outsourced timer config values to periph_conf.h
- made linkerscript better readable
- adjusted default stack-sizes
- let RED_LED blink on hard_fault
2014-09-17 14:44:13 +02:00
Hinnerk van Bruinehsen
d5fe9de5e5
cpu: change __ASM to asm (cppcheck uninitvar error)
2014-09-17 00:20:20 +02:00
Ludwig Ortmann
651cb6ca9f
doc: tailor CMSIS doxygen for license checker
...
Remove '@par' within the license header to allow the existing regular
expression to match it.
2014-09-15 08:27:59 +02:00
René Kijewski
ba07d6a5a2
Merge pull request #1664 from N8Fear/unsignedLessThanZero
...
lint: _sbrk_r: change parameter type from size_t to ptrdiff_t
2014-09-14 23:33:17 +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
9933dd0b78
cpu: arm/cortex-mX/atmega: use uintptr_t for sp cast
2014-09-14 02:34:04 +02:00
Hinnerk van Bruinehsen
4d2ca13fcf
lint: lpc1768/msp430: remove arith ops on void ptrs
2014-09-14 02:33:44 +02:00
Hinnerk van Bruinehsen
68e3e68ce1
Merge pull request #1657 from N8Fear/scope
...
lint: reduce scope (2)
2014-09-13 20:06:45 +02:00
Hinnerk van Bruinehsen
57b998e4a1
cpu/examples/sys/drivers: reduce scope of variables
2014-09-13 19:03:40 +02:00
Oleg Hahm
fa8c70bbb8
Merge pull request #1618 from rousselk/msp430-fix-thread-yield
...
Fix thread_yield() on MSP430 platforms
2014-09-12 20:14:18 +02:00
Hinnerk van Bruinehsen
5aa9b8449b
cpu: lpc_common: reduce indentation level in iap.c
2014-09-12 11:50:12 +02:00
René Kijewski
0cc699c0ce
lint: reduce scope
...
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Kévin Roussel
a691d0798a
Fixed comments
2014-09-09 13:18:39 +02:00
Hinnerk van Bruinehsen
3d686c7cf1
cpu: atmega: doxygen: blacklist upstream headers
2014-09-06 12:38:04 +02:00
Ludwig Ortmann
3d29a9e3d3
native: add support for Linux on ARM
2014-09-04 16:39:33 +02:00
Joakim Gebart
21fc1bd7a6
cpu/stm32f1: Reduce scope of ret variable in spi_transfer_bytes.
...
Reduced scope to inside the while loop as per comments in RIOT-OS/RIOT#1630
Signed-off-by: Joakim Gebart <joakim@gebart.se>
2014-09-03 10:28:33 +02:00
Joakim Gebart
a12b879027
cpu/stm32f1: spi_transfer_bytes proper counting.
...
The transferred bytes were being counted more than once because of a +=
when calling spi_transfer_byte().
This patch should also handle errors from spi_transfer_byte() better
since it is now possible to detect errors _after_ the first byte has
been successfully sent.
Signed-off-by: Joakim Gebart <joakim@gebart.se>
2014-09-02 17:17:21 +02:00
Fabian Nack
edb6a4ddf4
cpu - stm32f4: added support for more channels/devices in periph impls
2014-09-01 21:29:56 +02:00
Fabian Nack
47657ac7d9
cpu - stm32f4: add support for stm32f415rg
2014-09-01 21:29:56 +02:00
Kévin Roussel
4421de003b
Fix the race condition when an interruption occured at the beginning
...
of thread_yield(), i.e.: just after SR(R2) was pushed but before
the rest of the suspended thread's context was pushed!
2014-08-29 15:09:23 +02:00
Kévin Roussel
3df5a2745f
Prevent the compiler to add an unwanted prologue in thread_yield()
2014-08-29 15:09:22 +02:00
Kévin Roussel
cf683d9866
Fix thread_yield by avoiding the (too) early re-enablement of IRQ,
...
that is: before the newly selected thread's context is totally restored
2014-08-29 15:09:22 +02:00
Martine Lenders
752fe547ca
Merge pull request #1624 from LudwigOrtmann/headacheheaders
...
doc: fix more license headers
2014-08-28 12:34:55 +02:00
Ludwig Ortmann
2439bd839c
doc: fix more license headers
...
Remove some cruft, set correct lgpl versions, update to lgpl where
this had been overlooked in the past, fix odd comment style...
2014-08-27 19:20:49 +02:00
Hauke Petersen
ae23d813b1
Merge pull request #1621 from haukepetersen/add_nrf_cpuid
...
cpu/nrf51822: added cpuid driver
2014-08-27 19:11:04 +02:00
Hinnerk van Bruinehsen
223e22ac1e
board: arduino-mega2560: Initial import
2014-08-27 16:39:40 +02:00
Hinnerk van Bruinehsen
7b70f64d84
cpu: atmega2560: Initial import
2014-08-27 16:39:23 +02:00
Hinnerk van Bruinehsen
a6b77b4745
cpu: atmega_common: Initial import
2014-08-27 16:22:48 +02:00
Hauke Petersen
1de3deff81
cpu/nrf51822: added driver to get CPUID
2014-08-27 15:12:59 +02:00
Ludwig Ortmann
fc0b0bcc29
Merge pull request #1608 from LudwigOrtmann/fixmorelicenseheaders
...
Fix more license headers
2014-08-26 13:48:59 +02:00
Thomas Eichinger
6f83609107
Merge pull request #1607 from haukepetersen/add_nrf_random
...
cpu/nrf51822: added random number generator driver
2014-08-25 14:51:18 +02:00
Hauke Petersen
373e69e5c9
cpu/stm32f4: added random number generator driver
2014-08-25 13:54:15 +02:00
Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
2014-08-23 16:16:26 +02:00
Hauke Petersen
82eebeb2cc
cpu/nrf51822: added RNG driver
2014-08-23 13:29:14 +02:00
Hauke Petersen
addfaefe8a
Merge pull request #1598 from haukepetersen/add_nrf_rtt
...
cpu/board: added RTT driver for NRF51822
2014-08-22 02:13:43 +02:00
003dd1969c
Merge pull request #1566 from Kijewski/undef_is_null
...
core: let PIDs begin with 1
2014-08-22 00:43:04 +02:00
Hauke Petersen
744ce78e12
cpu/nrf51822: added RTT driver implementation
2014-08-22 00:40:50 +02:00
Hauke Petersen
bd86eb28c9
cpu/sam3x8e: added random number generator driver
2014-08-21 20:18:02 +02:00
René Kijewski
639dae4a1d
Merge pull request #1575 from Kijewski/use-sched_active_pid
...
all over the place: use sched_active_pid
2014-08-21 19:09:40 +02:00
Thomas Eichinger
0e79a01cd2
stm32f1: SPI: implement speed setting properly
2014-08-21 17:53:38 +02:00
Thomas Eichinger
6b43b3f587
stm32f1: implement new cpuid_get
2014-08-21 17:53:38 +02:00
Thomas Eichinger
c28aebf105
at86rf231: handle rx tx state changes correctly
2014-08-21 17:53:38 +02:00
Thomas Eichinger
b6abdc9519
stm32f1: implement SPI register access functions
2014-08-21 17:53:38 +02:00
Thomas Eichinger
e59bc2eb9d
iot-lab_M3: refactor at86rf231 driver
2014-08-21 17:53:37 +02:00
Thomas Eichinger
b86b78bcb2
stm32f1: implement missing UART0 parts
2014-08-21 17:53:37 +02:00
Thomas Eichinger
aaa2c2e8ba
boards: initial import of iot-lab_M3
2014-08-21 17:53:37 +02:00
Thomas Eichinger
37611db41c
cpu: initial import of stm32f1
2014-08-21 17:53:37 +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
René Kijewski
427a5fbaef
core: let valid PIDs start with 1
2014-08-17 19:51:03 +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
ea96af4d53
cpu/stm32f3: let LD3 blink on hardFault
2014-08-15 10:38:34 +02:00
René Kijewski
a79d9c8562
native: remove redeclarations of sched_active_thread
2014-08-14 13:21:17 +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
1de5c2b4a0
fixed remaining variables to kernel_pid_t
2014-08-07 17:29:53 +02:00
Oleg Hahm
aa2ecf6216
initialize kernel_pid_t correctly
2014-08-07 16:31:27 +02:00
Oleg Hahm
c2b0423918
core: renamed KERNEL_PID_NULL to KERNEL_PID_UNDEF
...
As @authmillenon pointed out the "null" in the old name is somewhat
misleading, since the actual value is -1.
2014-08-07 16:31:27 +02:00
Hauke Petersen
cc6ee1dc05
board/cpu: added pwm driver for stm32f4discovery
2014-08-07 16:15:39 +02:00
Hauke Petersen
9a90eae1ba
cpu: adjusted pwm driver impl for lpc2387
2014-08-07 16:14:09 +02:00
Ludwig Ortmann
14e8abed05
Merge pull request #1525 from LudwigOrtmann/morning-cleanup
...
doc, boards/cpu: cleanup
2014-08-05 19:28:24 +02:00
Hauke Petersen
d9b0927b57
Merge pull request #1547 from haukepetersen/fix_cortex_threadarch
...
cpu/cortex-mX_common: bugfix to arch_stack_init
2014-08-05 18:59:17 +02:00
Ludwig Ortmann
1df6505db9
boards/cpu: fix some warnings
2014-08-05 18:52:26 +02:00
Ludwig Ortmann
c883c33d83
doc: fix flashrom doxygen
2014-08-05 18:52:26 +02:00
Hauke Petersen
be46f2047a
cpu/cortex-mX_common: bugfix to arch_stack_init
...
- fixed cortex-[m0|m3|m4]
2014-08-05 18:38:06 +02:00
Ludwig Ortmann
1c3f481702
tests, native: fixup for cpuid
...
- adopt test name to new scheme
- make cppcheck happy / dont overwrite the target memory location twice
- fix license header
- don't redefine define if it already exists
- don't write more cpuid than is defined as size
2014-08-05 16:55:42 +02:00
epiktet
1154bd5a50
cpu/nrf51822: squash added support for nrf51822 cpu
2014-08-04 13:42:06 +02:00
Cenk Gündoğan
5429035b1c
cpu: removing tabs from asm files ( #1439 )
...
```find . -name "*.[sS]" -exec grep -l $'\t' {} \;``` and ```ack --asm -l "\t"```
revealed three more files with tabs.
2014-08-02 12:47:02 +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
Hauke Petersen
938c61a5a2
Merge pull request #1456 from haukepetersen/board_stm32f3discovery
...
board/cpu: Added support for the stm32f3discovery board and stm32f3 cpu
2014-07-31 23:55:05 +02:00
Martine Lenders
b1bc11c7fc
native: cpu: Add documentatiton for CPUID_ID_LEN
2014-07-31 23:27:38 +02:00
Martine Lenders
7516c94dd8
Merge pull request #854 from authmillenon/cpu-id
...
drivers/cpu: add function to get CPU id/serial number
2014-07-31 23:23:21 +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
Martin Lenders
239f2e0f24
Implement CPU id getter for native
2014-07-31 23:05:15 +02:00
Hauke Petersen
19ab93cadc
Merge pull request #1509 from haukepetersen/fix_cortexmcommon_cppcheck
...
cpu/cortex-mX_common: fixed type issues in thread_arch
2014-07-31 23:04:42 +02:00
Hauke Petersen
c54594632f
Merge pull request #1505 from haukepetersen/add_stm32f0_adc
...
cpu/board: added ADC driver for stm32f0discovery
2014-07-31 23:01:21 +02:00
Oleg Hahm
8890470783
Merge pull request #1514 from cgundogan/remove_tabs_cpu
...
converting tabs to spaces in cpu (#1439 )
2014-07-31 22:58:17 +02:00
Ludwig Ortmann
5fdce06b3b
doc: use lgplv2.1-short license header instead of lgplv2-short-v1
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
73aa3739d2
doc: use lgplv2.1-short license header instead of lgplv2-short-v2
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
c40b281873
doc: use lgplv2.1-short license header instead of lgplv2-short-v3
2014-07-31 22:57:20 +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
Ludwig Ortmann
1200c3bc46
doc: fix comment indentation
2014-07-31 22:57:19 +02:00
Martine Lenders
107ef28705
Merge pull request #1470 from haukepetersen/add_stm32f4_adc
...
cpu/board: added ADC driver for stm32f4discovery
2014-07-31 22:56:41 +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
275e8f0278
cpu - cortex-m4_common: fixes to thread_arch.c
2014-07-31 19:42:05 +02:00
Hauke Petersen
c5c860f435
cpu: Initial import of stm32f3
2014-07-31 19:38:26 +02:00
Hauke Petersen
14e65fc48d
cpu/cortex-mX_common: fixed type issues
...
- added explicit cast for stack pointer
- fixed printf type inconsistency
2014-07-31 19:17:23 +02:00
Ludwig Ortmann
249b3085cd
lpc2387: change comment style for license checker
2014-07-31 18:58:06 +02:00
Hauke Petersen
b451de05e4
cpu/board: added ADC driver for stm32f4discovery
2014-07-31 17:51:01 +02:00
Hauke Petersen
3a45a062d1
cpu/board: added ADC driver for stm32f0discovery
...
- added ADC implementation for the stm32f0 cpu
- added ADC pin/device configuration for stm32f0discovery board
2014-07-31 17:04:48 +02:00
Ludwig Ortmann
3d6124c905
native: reenable compilation on osx
2014-07-30 10:23:28 +02:00
Ludwig Ortmann
b3b6cff587
doc: some more author fixes
...
fix all occurences of INRIA as an author
correct Oliver Hahms authorship and indentation
2014-07-29 18:17:48 +02:00
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
Ludwig Ortmann
13bd2a2b3b
native: increase rtc realism
...
Prevent rtc enabling when not initialized.
2014-07-28 09:36:53 +02:00
Ludwig Ortmann
3cda0369cb
native: cleanup
...
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
c6bcc344ca
native: uart reconnect buffer replay
...
When using socket stdio, add option to replay what has been written to
stdout while not connected (`-r`).
The implementation is to simply use the existing log file (which is
implicitly created when the option is used), and read from it until
EOF upon reconnect.
closes #476
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
Ludwig Ortmann
2aa9f6b045
native: clean up and clarify help
...
- reorder option details to mirror the order given in usage
- list option arguments in option details
- clarify option arguments
2014-07-22 16:25:00 +02:00
Hauke Petersen
29e70c14d6
cpu: Initial import of cortex-m4_common
2014-07-16 17:20:50 +02:00
Hauke Petersen
2fa9b4de82
cpu: Initial import of stm32f4
2014-07-16 17:20:46 +02:00
Hauke Petersen
7904af1ac5
cpu: Initial import of stm32f0
2014-07-16 15:21:28 +02:00
Hauke Petersen
8169e9276b
cpu: Initial import of cortex-m0_common
2014-07-16 15:21:23 +02:00
Simon Gene Gottlieb
519ed7163c
board/flash: changing flashrom_write signature
...
→ changing all flashrom_write() function to the same signature
→ adding const keyword to signature
2014-07-14 02:11:38 +02:00
René Kijewski
a0c435458e
Merge pull request #1410 from LudwigOrtmann/issue-787
...
native: enable reboot with tap
2014-07-14 00:33:03 +02:00
Ludwig Ortmann
aaaccf9d87
native: enable reboot with tap
...
partially fixes #787
2014-07-13 16:40:32 +02:00
Ludwig Ortmann
df36f6304a
native: remove stale TODOs and blank line
...
The values are quite OK.
2014-07-13 07:24:01 +02:00
Ludwig Ortmann
c8612a055e
cpu/lpc2387: fix unused parameter warning
...
mark 'mode' as unused in pwm_init
2014-07-12 07:56:22 +02:00
Hauke Petersen
9001e0c2fb
core: removed duplicated hwtimer_arch.h
2014-07-09 21:08:13 +02:00
René Kijewski
ba1a15535b
core: remove extra thread_create_arg() function
2014-07-09 10:28:23 +02:00
René Kijewski
867246a09f
Add argument to thread_create
2014-07-09 10:07:54 +02:00
René Kijewski
54047c72d3
native: override INCLUDES w/ NATIVEINCLUDES
...
Currrently native overrides the object file targets, because it needs
the different include paths to interact with libc and the OS.
This PR simplifies their makefiles to only override the variable
INCLUDES, instead of overriding the targets.
2014-07-07 23:09:14 +02:00
Ludwig Ortmann
34c2283d5e
Merge pull request #1351 from LudwigOrtmann/native_hwtimer
...
native: implement hwtimer removal
2014-07-07 11:01:48 +02:00
Oleg Hahm
451cc61965
Merge pull request #1187 from Kijewski/mbed_lpc1768-makefile-cleanup
...
lpc1768: cleanup Makefile
2014-07-03 16:27:59 +02:00
Hauke Petersen
10d2879dc5
Merge pull request #1358 from haukepetersen/fix_sam3x_vtimer
...
cpu - sam3x8e: fixed vtimer, added timer_set_absolute
2014-07-03 16:21:36 +02:00
Thomas Eichinger
d56e90a3f0
Merge pull request #1357 from haukepetersen/fix_cortexm3_threading
...
cpu: cortex-m3_common: cleanup thread_arch.c
2014-07-02 16:54:33 +02:00
Hauke Petersen
306d97d488
cpu - sam3x8e: fixed vtimer, added timer_set_absolute
2014-07-02 12:41:54 +02:00
René Kijewski
63dd8546af
Merge pull request #1335 from Kijewski/fix-all-warnings-for-native-and-qemu-i386
...
Fix all warnings for native and qemu-i386
2014-07-02 10:58:48 +02:00
Hauke Petersen
264634e90d
cpu cortex-m3_common: cleanup thread_arch.c
2014-07-01 23:08:30 +02:00
Oleg Hahm
44e5d8cfd0
nativenet: change max packet size to 127
...
Real IEEE 802.15.4 transceivers have a payload of 127. Hence, for
testing - particular 6lowpan - it would make sense to have the same
limitation in nativenet. Especially to test fragmentation this is
helpful.
2014-07-01 18:31:40 +02:00
Ludwig Ortmann
6567de634f
native: implement hwtimer removal
2014-06-30 11:25:05 +02:00
Oleg Hahm
1ab4ab39be
Merge pull request #1348 from SGSSGene/bugfix_writetorom
...
msp430: fix writing more than one byte to flash
2014-06-26 10:39:50 +02:00
Simon Gene Gottlieb
b8ef2b90b6
bugfix: msp430 can write now more then one byte to flash
2014-06-25 20:53:32 +02:00
René Kijewski
3063e3c2b1
Fix all warnings for native and qemu-i386
...
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
René Kijewski
2ae0c1b149
make: use abspath for better error messages
2014-06-23 15:50:10 +02:00
René Kijewski
a9a76cb2c2
make: create dependencies as side effect
2014-06-23 15:50:10 +02:00
Oleg Hahm
fde1c106ab
Merge pull request #1259 from Kijewski/x86-heap-check
...
x86: add read-before-write check at runtime
2014-06-23 00:12:03 +02:00
Hauke Petersen
749d6a7446
Merge pull request #1318 from haukepetersen/msba2_pwm
...
cpu: added low-level PWM driver for the lpc2387
2014-06-22 13:07:48 +02:00
René Kijewski
17d89cee7e
lpc1768: cleanup Makefile
...
`cpu/lpc1768/Makefile` contains many lines that don't belong into this
file, but the maybe `Makefile.include`. Either way, this Makefile is
never called with these goals.
2014-06-21 01:17:09 +02:00
Ludwig Ortmann
741d9beeb0
Merge pull request #1332 from Kijewski/native-fix-warnings-in-default
...
native: remove some warnings about undef functions
2014-06-19 17:28:16 +02:00
Martine Lenders
6d1365c5d8
Merge pull request #1324 from Kijewski/make-automatic-module-name
...
make: much less clutter for "standard layout" modules
2014-06-18 23:52:49 +02:00
René Kijewski
2f871ca885
native: remove some warnings about undef functions
...
This PR implements `real_X` for `X in (fork, dup2, unlink, execve)`.
These function caused warnings while making the default example.
2014-06-18 20:34:12 +02:00
Hauke Petersen
407e36ec5f
cpu - cortex-m3: moved crash.c to cortex-m3_common
2014-06-18 11:49:45 +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
René Kijewski
2e9a1773e9
native: use real_pipe()
and read_close()
2014-06-14 00:39:02 +02:00
Hauke Petersen
09e3ac20f1
cpu: added low-level pwm driver impl for lpc2387
2014-06-11 19:54:11 +02:00
Thomas Eichinger
b4fceaca89
Merge pull request #1313 from thomaseichinger/cortexm_crash
...
cpu:cortex_common: add core_panic function
2014-06-11 15:02:46 +02:00
Thomas Eichinger
3639ae9b25
cpu:cortex_common: add core_panic function
2014-06-11 14:43:02 +02:00
Hauke Petersen
ebb496cc26
cpu: renamed cortexm_common->cortex-m3_common and cleanup
2014-06-11 00:24:10 +02:00
René Kijewski
ce428a8937
Merge pull request #1292 from Kijewski/issue-1288
...
core/cortex-m: add missing NORETURNs to thread_arch
2014-06-09 22:11:29 +02:00
Ludwig Ortmann
dbc36fc2c5
native: add id option
2014-06-06 16:30:54 +02:00
René Kijewski
b6dc5c9b76
core/cortex-m: add missing NORETURNs to thread_arch
2014-06-05 21:01:35 +02:00
Ludwig Ortmann
1e5e19bc23
native: set optional path with unix socket option
...
fixes #1045
2014-06-03 16:46:40 +02:00
Ludwig Ortmann
e36590cda7
native: fix coding style
2014-06-03 16:46:40 +02:00
René Kijewski
abdb3ef2a4
x86: add read-before-write check at runtime
...
Finding read-before-writes statically is quite difficult. In native we
can use valgrind, but on boards without an MMU we are out of luck.
x86 has an MMU, let's use it.
If `-DDEBUG_READ_BEFORE_WRITE` was set, then pages on the heap get
initialized upon first use. If the page was read before written, then a
debug message with the virtual and physical address of the memory
location is printed, as well as the address of the offending instruction.
2014-05-31 19:45:19 +02:00
Thomas Eichinger
c70ae14ff0
cleanup licenses to fix #392
2014-05-27 11:54:55 +02:00
Martin Lenders
2362623490
Fix trailing whitespaces
...
Fixes #1138
2014-05-26 14:54:23 +02:00
Thomas Eichinger
1e983c9670
s/PROJECT/APPLICATION/g
...
fixes #548
2014-05-26 13:21:09 +02:00
René Kijewski
4e4f908379
Initial import of the x86 port
...
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
Oleg Hahm
ad28f4f1c0
cosmetics: converted tabs into spaces for lpc1768 header
2014-05-24 15:57:29 +02:00
Oleg Hahm
ef4fe6616c
documentation: unified descriptive text for cpu
2014-05-24 15:56:57 +02:00
Oleg Hahm
a2db556139
cosmetics: cleaned up arm_common.h
...
* converted tabs to white spaces, fixed indentation, and removed SVN clutter
2014-05-24 15:16:26 +02:00
Oleg Hahm
de6e70c594
copyriot: fixed copyriot header for arm_common
2014-05-24 15:12:36 +02:00
René Kijewski
1b89f334e3
msp430: provide oneway-malloc implicitly
...
For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
included. The problem is that `malloc.h` is not a standard header, even
though it is common. `stdlib.h` in the right place to look for
`malloc()` and friends.
This change removes this discrepancy. `malloc()` is just named like
that, without the leading underscore. The symbols now are weak, which
means that they won't override library functions if MSP's standard
library will provide these functions at some point. (Unlikely, since
using `malloc()` on tiny systems is less then optimal ...)
Closes #1061 and #863 .
2014-05-22 15:40:25 +02:00
Oleg Hahm
bf00b019e4
documentation: CMSIS cleanup
...
Put all CMSIS documentation into a dedicated subgroup of cpu.
2014-05-22 13:01:36 +02:00
René Kijewski
06eb95d687
Merge pull request #1216 from LudwigOrtmann/issue-1215
...
native: set _native_pid correctly in daemon mode
2014-05-20 14:09:44 +02:00
Ludwig Ortmann
c9f68e79b9
native: set _native_pid correctly in daemon mode
...
This fixes a bug that leads to all unix sockets being created as
`/tmp/riot.tty.0`.
2014-05-20 08:53:26 +02:00
Oleg Hahm
31351a0dc0
msp430: workaround: define errno values if not provided by MSP430 lib
2014-05-19 18:54:20 +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
cbf39bf012
native: add missing include
...
crash.c was missing native_internal.h
2014-05-16 17:24:45 +02:00
Oleg Hahm
5d7f7dd686
Merge pull request #1079 from BytesGalore/add_NORETURNs
...
core: and cpu: Added NORETURN to functions that should not return
2014-05-16 00:33:20 +02:00
Ludwig Ortmann
9b47af0b54
Merge pull request #1184 from LudwigOrtmann/native_license_unification
...
Native license unification
2014-05-15 18:36:15 +02:00
Ludwig Ortmann
98bbb80571
documentation: append my email to my name everywhere
2014-05-15 18:07:17 +02:00
Ludwig Ortmann
3a3c04e66e
native/tramp.S: add missing license header
2014-05-15 18:07:17 +02:00
Jan S
ba907471f3
fixed printf specifiers
2014-05-15 17:42:57 +02:00
René Kijewski
0b9c0fb475
Merge pull request #1154 from Kijewski/issue-1150
...
msp430: fix missing members in `struct tm`
2014-05-15 14:59:24 +02:00
Ludwig Ortmann
b43fa2327e
native/tramp.S: use ret instead of manual return
2014-05-15 11:38:24 +02:00
Ludwig Ortmann
e0a1217f20
native: refactor one debug/errx use in irq_cpu.c
2014-05-15 11:37:18 +02:00
René Kijewski
55b12034a9
msp430: fix missing members in struct tm
...
Closes #1150 .
2014-05-14 19:57:41 +02:00
Thomas Eichinger
7a031e5669
net: handle macro redefinitions for OS X
...
undefine macros and reorder header includes to get rid of system
defined macros on OS X
fixes #1165
2014-05-14 19:43:58 +02:00
René Kijewski
d98ebf62cd
native: fixup #1145 : function declaration
2014-05-14 16:54:34 +02:00
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
2014-05-14 13:31:30 +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
Ludwig Ortmann
a109968112
Merge pull request #1156 from LudwigOrtmann/license_header_fix
...
license: fix license header grammar
2014-05-14 10:22:19 +02:00
Thomas Eichinger
1ab77eea4d
fix license to LGPL
...
fixes #1155 needs @haukepetersen to review
2014-05-14 10:20:32 +02:00
Thomas Eichinger
60b03ab7c1
Merge pull request #1157 from thomaseichinger/fix_licenses
...
mc1322x: redbee-econotag: fix licenses to LGPL
2014-05-14 10:05:17 +02:00
Thomas Eichinger
38f3ea6d78
fix licenses to LGPL fixes #1148
2014-05-14 10:04:34 +02:00
Ludwig Ortmann
2314915ff2
license: fix license header grammar
...
insert missing "is"
2014-05-14 09:49:09 +02:00
Ludwig Ortmann
166b88f1ae
native: internal getpid syscall
2014-05-14 09:13:57 +02:00
Ludwig Ortmann
4c961bfb6e
native: refactor getpid calls
2014-05-14 09:13:57 +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
Hauke Petersen
27133d25fe
cpu: Initial import of cortexm_common files
...
- fixes to cortexm-common
- Added ARM CMSIS headers to cortexm_common
- thread_exit fixes to cortexm-common
- cortexm-common adjusted documentation
- cortexm_common added eINT dINT defines for now
2014-05-13 21:19:18 +02:00
Ludwig Ortmann
27eb2aedc1
native: update README
...
Move README to to README.md
Fix spelling and markup
2014-05-13 11:25:34 +02:00
René Kijewski
628419eb11
Exterminate old-style function declaration/prototypes
2014-05-12 21:57:09 +02:00
René Kijewski
9a9caf2c68
Exterminate old-style function definitions
2014-05-12 21:57:09 +02:00
Jan S
e7cf6bf745
removed unreachable code
2014-05-09 23:45:07 +02:00
Jan S
350e34f924
typo fix
2014-05-09 23:38:38 +02:00
Martin
4e73169b38
added NORETURNs to functions that should not return
...
and added `UNREACHABLE();` to hint the compiler unreachable lines
added right signature for first parameter of `thread_stack_init()`
added `UNREACHABLE();` macro to `cpu/lpc1768/atom.c` and `cpu/msp430-common/cpu.c`
2014-05-08 06:25:25 +02:00
René Kijewski
6f3d0871aa
core/cpu: put __builtin_unreachable() into one place
2014-05-07 19:24:55 +02:00
Hauke Petersen
7545eff784
core/cpu/board: moved F_CPU define to board
2014-05-06 10:36:09 +02:00
René Kijewski
d19e885fb9
arm_common: no needless _gettimeofday()
warning
...
The `arm_common` syscalls implement `_gettimeofday()` for the benefit of
newlib. The syscall call only work if the `rtc` module or the `vtimer`
modules is transcluded. If neither module is used, a warning is printed
by means of `#warning`.
This warning is useless if the user does not invoke `gettimeofday()`.
Further this warning prevents the use of `-Werror`.
This PR puts the function in its own file, that will only be linked if
it was used. And if the function was used, then a link time error occur
if neither `rtc` nor `vtimer` was transcluded.
2014-05-05 14:45:11 +02:00
Christian Mehlis
8c63eccb1a
ARM: fix several warnings
2014-04-30 20:39:35 +02:00
Oleg Hahm
162d9b0008
Merge pull request #1006 from Kijewski/issue-967
...
msp430: Fix variable usage in cc430-rtc.c
2014-04-30 18:27:27 +02:00
Martin
619039e0e2
add pthread condition variable implementation
2014-04-29 18:39:03 +02:00
René Kijewski
2793426c89
msp430: Fix variable usage in cc430-rtc.c
...
Closes #967 .
2014-04-29 00:04:38 +02:00
René Kijewski
4c66f72ba3
Merge pull request #1022 from LudwigOrtmann/issue_505
...
native: update support for FreeBSD
2014-04-26 15:51:54 +02:00
Thomas Eichinger
d89faccc78
Merge pull request #1031 from LudwigOrtmann/issue_676
...
redbee-econotag: fix maca
2014-04-24 10:19:22 +02:00
Ludwig Ortmann
c2b9d94a0c
native: add tapsetup-freebsd.sh
2014-04-20 07:31:40 +02:00
Ludwig Ortmann
42aa3d9f5b
native: update support for FreeBSD
...
works with FreeBSD 10.0 amd64/i386
fixes : #505
2014-04-20 07:31:40 +02:00
Ludwig Ortmann
6044dc28dc
native: add help option
...
Closes : #840
2014-04-19 12:44:11 +02:00
René Kijewski
542a2e5d9d
Merge pull request #995 from Kijewski/issue-993
...
Make: exterminate 'clean' buildtarget clutter
2014-04-18 16:11:15 +02:00
Ludwig Ortmann
3a1980af36
redbee-econotag: fix maca
...
I suspect that the transceiver will still not work as there are many
many warnings, but at least it builds now.
closes : #676
2014-04-18 16:05:23 +02:00
900db3436a
native: optionally exit() after last thread has ended
...
Used when compiled with NATIVE_AUTO_EXIT defined.
2014-04-12 15:47:01 +02:00
René Kijewski
300d6b3e35
Make: exterminate 'clean' buildtarget
...
Closes #993 .
We do not need to descend into the modules to know what to do on
`make clean BOARD=blub`. We can just invoke `rm -rf bin/blub`.
This PR only keeps the descending into the USEPKGs, since they might
want to delete cached/downloaded/extracted data.
2014-04-09 23:07:52 +02:00
Ludwig Ortmann
9f24ae2e62
Merge pull request #946 from Kijewski/native-write
...
native: don't use RIOT read/write in UART
2014-04-09 18:17:09 +02:00
Ludwig Ortmann
b9ffc1a99e
fixup for #710 : use subfolder in bin dirs (native)
...
Update native Makefiles to provide changed object target paths
Fixes #989
2014-04-09 15:25:05 +02:00
Oleg Hahm
aeb54158f6
cpu: satisfy compiler in crash.c
2014-04-09 12:27:53 +02:00
Ludwig Ortmann
ab08fbb5a6
Merge pull request #957 from rousselk/hwtimer-msp430-handle-overflow
...
Handle race conditions preventing MSP430 timers to be set correctly
2014-04-09 11:21:37 +02:00
Kévin Roussel
b6fbe33539
Handle race conditions preventing timers to be set correctly on MSP430 MCUs
...
when the counter is incrementing and/or overflowing
2014-04-09 10:28:39 +02:00
René Kijewski
3f59eefbaf
Use subfolders in bin dir
...
Creating all object files in one directory is bound to produce name
clashes. RIOT developers may take care to use unique file names, but
external packages surely don't.
With this change all the objects of a module (e.g. `shell`) will be
created in `bin/$(BOARD)/$(MODULE)`.
I compared the final linker command before and after the change. The
`.o` files (e.g. `startup.o`, `syscall.o` ...) are included in the same
order. Neglecting the changed path name where the `.o` files reside, the
linker command stays exactly the same.
A major problem could be third party boards, because the location of the
`startup.o` needs to the specified now in
`boards/$(BOARD)/Makefile.include`, e.g.
```Makefile
export UNDEF += $(BINDIR)msp430_common/startup.o
```
2014-04-09 00:28:14 +02:00
Oleg Hahm
1e9a43d0f8
Merge pull request #778 from LudwigOrtmann/dependency_files
...
Make: Prepend path to dependency info files with sed
2014-04-08 23:22:21 +02:00
René Kijewski
2749531324
Merge pull request #789 from LudwigOrtmann/native_gprof
...
native profiling tools support
2014-04-05 02:26:15 +02:00
Ludwig Ortmann
91814e52ae
make: replace MAKEBASE with RIOTBASE
...
closes https://github.com/RIOT-OS/RIOT/issues/959
2014-04-01 16:40:28 +02:00
Ludwig Ortmann
b2930113ef
remove some newlines
2014-04-01 10:47:12 +02:00
Ludwig Ortmann
a1aa0df9ae
change new/overlooked Makefiles
2014-04-01 10:44:10 +02:00
Ludwig Ortmann
1bd3f7bb86
pipe through sed instead
...
addresses: https://github.com/RIOT-OS/RIOT/pull/778#discussion_r10041955
2014-04-01 10:44:10 +02:00
René Kijewski
0b75a11291
native: don't use RIOT read/write in UART
2014-03-30 22:33:50 +02:00
Oleg Hahm
c25b785984
msp430: don't enable Timer 0 by default
2014-03-26 15:00:56 +01:00
Oleg Hahm
c8bf4efbb4
msp430: cc430: handle hwtimer interrupts correctly
...
TAIFG should count the overflows, instead of using the first CCR for this purpose.
Without this commit ARCH_MAXTIMERS returns the wrong number as
effectively one timer less can be used.
Additional fixed comment style and added timer debug.
2014-03-26 15:00:51 +01:00
Oleg Hahm
ef8bfb38a1
msp430: show overflow counter in hwtimer debug
2014-03-26 14:09:16 +01:00
Oleg Hahm
e93b44e8b5
msp430: remove expensive modulo call
2014-03-26 14:09:16 +01:00
Hauke Petersen
28f267f8f6
Merge pull request #923 from haukepetersen/mbed_enableIRQ
...
cpu: added enableIRQ implementation to cpu/lpc1768
2014-03-26 13:55:43 +01:00
Hauke Petersen
8a937e1a1c
hwtimer: clean up of interfaces to board/cpu
2014-03-26 13:19:18 +01:00
Hauke Petersen
d3678ca9dd
cpu: added enableIRG implementation to cpu/lpc1768
2014-03-25 19:54:06 +01:00
Ludwig Ortmann
f490a7065d
Merge pull request #700 from LudwigOrtmann/sniper_700
...
kernel_init: config_load, native: config_load: set id/address to PID
2014-03-19 15:04:19 +01:00
Ludwig Ortmann
0501fe8980
native: config_load: set PID as id, net address
2014-03-18 08:07:30 +01:00
Oleg Hahm
a427cce09b
Merge pull request #881 from rousselk/msp430-stackptr-align
...
Ensure that stack pointer is correctly aligned during thread creation on MSP430
2014-03-17 17:37:49 +01:00
Oleg Hahm
3c54edf4d6
Merge pull request #822 from LudwigOrtmann/reboot_signature
...
core: change reboot signature.
2014-03-16 18:42:23 +01:00
Ludwig Ortmann
8ef02d3b9d
native profiling support
...
only works with Linux for now
2014-03-14 12:50:50 +01:00
Kévin Roussel
054367c23a
Ensure that stack pointer is correctly aligned during thread creation on MSP430
2014-03-13 12:40:57 +01:00
Ludwig Ortmann
9b61d95545
make: don't ignore failures in for loops
...
Add `|| exit 1` to all constructs like `@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;`, so that compilation stops on the first error.
2014-03-12 11:09:04 +01:00
Ludwig Ortmann
063a15ce9b
Change reboot signature.
...
Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.
Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2 )
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.
2014-03-10 11:14:27 +01:00
Martin Lenders
49b1f44b2e
Merge pull request #804 from LudwigOrtmann/native_include_separation
...
native/make: Don't use INCLUDES for building any native at all.
2014-03-03 15:12:56 +01:00
Ludwig Ortmann
05dc8ec1cb
Merge pull request #790 from LudwigOrtmann/fixup_685
...
core: fixup for 685
2014-02-28 10:43:14 +01:00
Ludwig Ortmann
2cd3f04fc6
Don't use INCLUDES for building any native at all.
...
native modules will never need the dynamic INCLUDES, so we define our
own NATIVEINCLUDES. Due to the current make structure, the only way to
not use INCLUDES is to redefine the build rules.
2014-02-27 10:30:30 +01:00
Oleg Hahm
72966fec39
adding sys/time.h for msp-430
2014-02-27 00:17:14 +01:00
Ludwig Ortmann
470bd7f17f
Fixup for #685
...
- use DEVELHELP for native as well
- fix function name in documentation
- improve documentation language/spelling
2014-02-26 21:49:54 +01:00
Oleg Hahm
0c14597ec2
Merge pull request #685 from rousselk/panic
...
Panic
2014-02-26 16:26:27 +01:00
Oleg Hahm
b4a8788210
fixed typo
2014-02-26 08:18:17 +01:00
Oleg Hahm
07b0cd8863
added gettimeofday syscall
...
RIOT's gettimeofday needs to be called from syscalls.c to assure that gcc actually links it.
If an RTC if available and enabled it will be used instead.
2014-02-25 17:41:45 +01:00
Kévin Roussel
f4f2519a58
LPC1768 implementation of 'core_panic()'
...
copied from 'arm_common', for make-related reasons...
2014-02-25 10:50:51 +01:00
Kévin Roussel
4f8a29d892
Implemented the crash-handling/reboot mechanism for ARM-based MCUs
2014-02-25 10:50:51 +01:00
Kévin Roussel
03fe9de135
Implemented crash-handling mechanism for 'native' platform
2014-02-25 10:50:51 +01:00
Kévin Roussel
1183555cc3
Implement the crash-handling/reboot mechanism for MSP430 MCUs
2014-02-25 10:50:51 +01:00
Christian Mehlis
261d414649
native: removed unreachable code
2014-02-25 09:02:39 +01:00
Ludwig Ortmann
86812c2abb
make calloc "usable" early on
...
closes #741
Old versions of the gnu libc uses calloc to allocate dymanic memory
when some error occurs in dlsym.
This results in a segfault as natives calloc wrapper has not been
initialized yet.
As this is a circular dependency and the libc can cope with this, we
just return NULL from the calloc wrapper and hope for the best.
Recent libc versions use a static buffer instead.
2014-02-22 13:08:45 +01:00
Christian Mehlis
0309fecc19
fix warning: invalid suffix on literal
...
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Oleg Hahm
b42496475a
Merge pull request #724 from rousselk/reboot
...
Reboot
2014-02-18 13:33:49 +01:00
Christian Mehlis
6578669e46
Merge pull request #718 from Kijewski/issue-693
...
"Exterminate `} else {`"
2014-02-18 12:42:54 +01:00
Christian Mehlis
cb9c5d00de
repace project by application in documentation
2014-02-18 12:28:32 +01:00
Kévin Roussel
dc6f920f33
Merge remote-tracking branch 'origin/reboot' into reboot
2014-02-17 12:00:19 +01:00
René Kijewski
2349d0806e
"Exterminate } else {
"
2014-02-16 23:29:47 +01:00
Oleg Hahm
6c0482b976
Merge pull request #701 from Kijewski/issue-672
...
Use `filter` instead of `findstring`
2014-02-16 12:33:29 +01:00
Oleg Hahm
0467181093
replaced tabs with spaces
2014-02-15 17:29:49 +01:00
Oleg Hahm
85a05dd794
added reboot and reset handler for lpc1768
2014-02-15 17:29:49 +01:00
Christian Mehlis
38529e3296
replace all endless for loops by while
2014-02-14 17:47:33 +01:00
Kévin Roussel
4eee19f32c
Merge pull request #1 from LudwigOrtmann/native_reboot
...
implement rudimentary native reboot
2014-02-14 16:35:58 +01:00
Kévin Roussel
f6d7910352
Added while(1) to ensure GCC valids NORETURN; fixed indentation
2014-02-14 16:33:47 +01:00
Ludwig Ortmann
561eefab07
implement rudimentary native reboot
2014-02-14 16:20:36 +01:00
René Kijewski
102dc45382
Eliminate findstring in more places
2014-02-14 14:30:16 +01:00
Kévin Roussel
7ad37edb82
Added while(1) to ensure GCC valids NORETURN; fixed indentation
2014-02-14 12:13:10 +01:00
Kévin Roussel
c33087bdcd
Implemented reboot() function for ARM-based MCUs
2014-02-14 11:56:18 +01:00
Kévin Roussel
7073489dac
Implemented reboot() function for MSP430 MCUs
2014-02-12 15:26:02 +01:00
Christian Mehlis
d794900386
Merge pull request #666 from LudwigOrtmann/native_valgrind_config
...
Native valgrind config
2014-02-12 11:01:34 +01:00
Ludwig Ortmann
114aaa65e5
Merge pull request #626 from LudwigOrtmann/issue_621
...
add EUI-64 support for nativenet
2014-02-11 19:30:23 +01:00
Ludwig Ortmann
336c5159b2
use pkg-config to add valgrind include path
...
makes knowledge of VALGRIND_VALGRIND_H vs. VALGRIND_H optional
2014-02-11 19:22:39 +01:00
Ludwig Ortmann
2525920426
remove trailing whitespace and newlines
2014-02-11 18:45:06 +01:00
Ludwig Ortmann
d5d3bbcd44
add EUI-64 support for nativenet
2014-02-10 08:33:57 +01:00
Martin
6a29d18324
changed assignment to const char*
2014-02-10 08:29:22 +01:00
Martin
174a75102b
changed clonedev assignment according to const string
2014-02-10 08:21:32 +01:00
Ludwig Ortmann
85c6b6587e
replace uint16_t with radio_address_t in maca
...
adpots includes and makes them adhere to the coding conventions
2014-02-07 18:56:04 +01:00
Oleg Hahm
355f6610d5
Merge pull request #482 from OlegHahm/driver_includes
...
Driver includes
2014-02-07 17:21:45 +01:00
Oleg Hahm
62046d6ea0
Merge pull request #649 from BytesGalore/fix_missing_typecasts
...
Fix added missing typecasts to stack (arm/msba2) and send/receive buffer (native)
2014-02-07 12:25:08 +01:00
Martin
22b777300d
added typecasts for the used send/receive buffer pointer buff
2014-02-07 09:26:56 +01:00
Martin
b4f36f4af9
added typecast for starck_start in arm_cpu to ensure correct calculation
2014-02-07 09:17:21 +01:00
Martin
f19ec9649f
added typecast for starck_start in native
2014-02-07 09:14:58 +01:00
Oleg Hahm
70747d8bb4
streamlined driver include pathes
2014-02-05 18:56:47 +01:00
Ludwig Ortmann
5681fcc481
native readme update
2014-02-04 18:41:38 +01:00
Oleg Hahm
fb423e2c48
Merge pull request #606 from OlegHahm/license_issues
...
added license headers and doxygen file information
2014-02-04 03:01:23 -08:00
Oleg Hahm
d9c31a01e5
addressed comments from @mehlis
2014-02-03 00:47:38 +01:00
Oleg Hahm
4bc6dfbf69
added license headers and doxygen file information
...
plus replaced tabs with spaces
2014-02-02 22:22:03 +01:00
Ludwig Ortmann
f04eaa3d20
update native readme
2014-02-01 12:10:08 +01:00
Ludwig Ortmann
fd083c95a6
check for active_thread != NULL in syscalls.c before using it
...
fixes #498
2014-01-31 09:31:22 +01:00
Ludwig Ortmann
f0340b90a2
guard pre-err() warn() calls
2014-01-29 19:13:49 +01:00
Ludwig Ortmann
176f379c7a
dont err() but warn() if no thread exists in native_isr_entry
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
796b656e31
force-debug (eINT && in_isr) in DEVELHELP
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
6f5d4dcdb4
block all signals per default
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
bdd4252961
guard setitimer
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
0766b92f7b
Don't unblock signals again.
...
A late signal could kill the process otherwise.
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
2c80f68d62
handle more errors and remove race condition in native_isr_entry
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
a55e85f8d0
guard swapcontext in _native_syscall_leave
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
7f1db86ae2
handle some should-be impossible paths
2014-01-29 18:44:41 +01:00
Ludwig Ortmann
573b154f44
handle select errors EAGAIN | EWOULDBLOCK in lpm
2014-01-29 18:44:18 +01:00
Ludwig Ortmann
3c087107f2
fix call to err()
2014-01-29 16:54:36 +01:00
56ee585c81
update Kaspar's email address
...
kaspar.schleiser@fu-berlin.de is obsolete.
(2nd try, first try was overwritten by some overzealous documenter)
2014-01-28 11:53:19 +01:00
Ludwig Ortmann
f04c3dc433
Merge pull request #559 from LudwigOrtmann/native_syscall_guards
...
Native syscall guards
2014-01-24 09:36:26 -08:00
Ludwig Ortmann
d8745e2861
add local debug macro
...
addresses https://github.com/RIOT-OS/RIOT/pull/559#issuecomment-33241773
2014-01-24 18:26:44 +01:00
Ludwig Ortmann
b22380990f
fix DEBUG in syscalls
2014-01-24 17:30:47 +01:00
Ludwig Ortmann
4939473afb
guard malloc/free family
2014-01-24 17:30:47 +01:00
Ludwig Ortmann
7685357990
Merge pull request #547 from LudwigOrtmann/native_hwtimer_fix
...
Native hwtimer fix
2014-01-24 08:10:42 -08:00
Ludwig Ortmann
7148f1db23
change wording
...
addresses https://github.com/RIOT-OS/RIOT/pull/555#discussion_r9118361
2014-01-23 17:25:41 +01:00
Ludwig Ortmann
f58b312129
improve error messages when tap ioctls fail
2014-01-23 17:16:00 +01:00
Ludwig Ortmann
e32bfa53d0
fix overdue mitigation
2014-01-23 00:03:23 +01:00
Ludwig Ortmann
91ebc1d0b5
improve debug messages
2014-01-22 22:19:53 +01:00
Ludwig Ortmann
332cf8807f
fix callback offset
2014-01-22 22:19:53 +01:00
Oleg Hahm
8de53e2b78
Merge pull request #530 from thomaseichinger/msp430-intrinsics.h-fix
...
safeguard intrinsics.h include in lpm_cpu.c
2014-01-22 10:59:11 -08:00
Ludwig Ortmann
855eea6a53
add missing newlines
2014-01-22 18:26:53 +01:00
Ludwig Ortmann
ca53203f1f
Merge pull request #539 from LudwigOrtmann/native_signal_patches
...
Native signal patches
2014-01-21 08:40:30 -08:00
Ludwig Ortmann
2b4a323a18
unclutter native_isr_entry a bit
...
remove heap_address - hopefully superflous, does not work in valgrind
remove stale TODO
2014-01-21 17:39:43 +01:00
Ludwig Ortmann
7789bbca16
fix signal trampoline
...
save and use the program counter on stack
removes race condition in trampoline
also push/pop full memory words explicitly
2014-01-21 17:39:15 +01:00
Oleg Hahm
0409d4b3a1
Merge pull request #521 from OlegHahm/fix_includes_for_msp430
...
Fix includes for msp430
2014-01-21 04:49:06 -08:00
Ludwig Ortmann
98a2d554b5
osx fixes
2014-01-21 12:30:53 +01:00
Thomas Eichinger
eff2c9aea3
safeguard intrinsics.h include since it is only provided by msp430-gcc >= 4.6
2014-01-21 11:27:21 +01:00
Oleg Hahm
a57b853401
removed own implementation of errno headers
2014-01-20 14:05:47 +01:00
Oleg Hahm
9eebc532ef
Merge pull request #459 from rousselk/msp430-lpm-freq
...
Msp430 lpm freq
2014-01-16 04:57:27 -08:00
Ludwig Ortmann
fc6cd24ece
reduce HWTIMERMINOFFSET
2014-01-15 12:40:55 +01:00
Ludwig Ortmann
dbcc898bcc
update internal timer on hwtimer_arch_set
2014-01-15 12:40:03 +01:00
Ludwig Ortmann
d3a1c1bda7
add comment
...
addresses https://github.com/RIOT-OS/RIOT/pull/501#discussion_r8881054
2014-01-15 11:24:59 +01:00
Ludwig Ortmann
921b70d5e8
fix pre-init
...
set the internal relative time - don't rely on hwtimer_now() being
called externally
2014-01-14 17:23:15 +01:00
Ludwig Ortmann
396f6c2819
fix debug msg
2014-01-14 17:23:03 +01:00
Ludwig Ortmann
6fe1ecd1b4
Merge pull request #479 from LudwigOrtmann/nativenet_lenchck
...
Nativenet length check and cleanup
2014-01-10 01:47:35 -08:00
Oleg Hahm
fe575d52df
Merge pull request #364 from OlegHahm/float_stack_sizes
...
added a dedicated stacksize for float printfs
2014-01-09 10:48:38 -08:00
Thomas Eichinger
dadd64e2f9
Merge pull request #473 from LudwigOrtmann/nativenet_osx_xmas
...
add io signal generating child for nativenet in osx
2014-01-09 07:14:34 -08:00
Ludwig Ortmann
83db6f6364
remove superflous include
2014-01-09 12:33:02 +01:00
Ludwig Ortmann
76b017aefd
check payload length validity
...
make sure the payload does not exceed the amount of data received
2014-01-08 14:58:57 +01:00
Ludwig Ortmann
ac0ec1f6b3
nativenet clean up
...
Make nativenet tap payload type consistent with radio_packet_t
Also remove a trailing space
2014-01-08 14:57:11 +01:00
Kévin Roussel
32a6e168ff
function 'lpm_get()' now returns LPM_UNKNOWN by default
2014-01-08 09:59:05 +01:00
Ludwig Ortmann
98d1136761
update native README
2014-01-07 10:20:58 +01:00
Oleg Hahm
775c0dee5c
added missing mute prefixes in nativenet and shell
2014-01-05 16:11:08 +01:00
Oleg Hahm
9df07f9238
muting compiler and binutils optionally
...
Instead of muting all compiler and other binutils output by default,
introduce a variable to make this behaviour configurable.
2014-01-05 16:11:08 +01:00
Oleg Hahm
02612ff0ca
further Makefile cleanup
2014-01-05 16:11:08 +01:00
Oleg Hahm
c7d985d371
removed redundant include pathes from Makefiles
2014-01-05 16:11:08 +01:00
Oleg Hahm
26c50522d5
simplified and unified cpu build structure
2014-01-05 16:11:07 +01:00
Kévin Roussel
5d393d270b
Sets MCU frequency in 'board.h', instead of the common 'cpu.h' file
2013-12-24 15:41:32 +01:00
Kévin Roussel
2b4febf8df
Basic implementation of LPM-related functions for MSP430 MCUs
2013-12-24 15:38:26 +01:00
Ludwig Ortmann
ea8b735232
fix nativenet_send documentation
2013-12-24 11:57:54 +01:00
Ludwig Ortmann
648bdaeed6
add io signal generating child for nativenet in osx
2013-12-24 11:54:00 +01:00
Ludwig Ortmann
1ac1646837
further clean up / filtering for cpu
2013-12-23 00:18:21 +01:00
Ludwig Ortmann
cf87e647c0
make native includes RIOT posix compatible
2013-12-22 23:26:54 +01:00
Ludwig Ortmann
ef315ed662
improve nativenet send functions return type
2013-12-21 16:56:42 +01:00
Ludwig Ortmann
751cfe6475
fix native hwtimer
...
The hardware timer used relative offsets that were never updated
before. This leads to two problems:
a) later timers will get pushed into the future by the amount of
previous timers
b) if a short timer is set continuously, a longer timer will never be
called
Example:
a)
Timer a with 500 ms is set, timer b with 600 ms is set.
timer a expires after 500 ms, timer b will be set to expire in 600 ms
which totals to 1100 ms.
b)
Timer a is set to 500 ms, timer b is set to 600 ms.
Timer a expires and is set again. Now timer a will expire in 500 ms
and timer b will be pushed further into the future. Repeating this
will lead to b never expiring.
2013-12-20 18:55:47 +01:00
Martin Lenders
69809928d3
Make UART0_BUFSIZE configurable by CPU
2013-12-20 11:10:42 +01:00
Oleg Hahm
1cc2767bb4
Merge pull request #318 from OlegHahm/lpc1768
...
initial support for the mbed NXP LPC168
2013-12-19 09:03:22 -08:00
Oleg Hahm
cdb77c2392
Merge pull request #437 from OlegHahm/include_directives
...
making include directives consistent
2013-12-19 08:38:14 -08:00
Thomas Eichinger
aa84138531
Merge pull request #451 from OlegHahm/mc1322x_check
...
Fixes check for Mc1322x CPU in arm_common
2013-12-19 06:34:58 -08:00
Oleg Hahm
903ec54a43
making include directives consistent
2013-12-19 15:31:37 +01:00
Oleg Hahm
aabef88d20
fix check for used cpu in arm_common
2013-12-19 15:25:12 +01:00
Ludwig Ortmann
50d488e6bc
remove suprerfluous thread_yield declaration
2013-12-19 13:05:53 +01:00
Ludwig Ortmann
437c0ee5c9
msp430 lpm stub
2013-12-19 13:04:08 +01:00
Ludwig Ortmann
76cfdc33b1
stack alignment workaround
...
Should be fixed in thread.c instead, this is just a temporary
workaround to enable msp-430 threads in the mean time.
2013-12-19 13:04:08 +01:00
Ludwig Ortmann
2a8411b6a3
fix main return for msp430
...
mspgcc handles main specially, this introduces code to make main
behave normally
2013-12-19 13:04:08 +01:00
Ludwig Ortmann
69f6748a7c
clean up msp430 cpu-conf.h
2013-12-19 13:04:08 +01:00
Oleg Hahm
37a7393a6b
Merge pull request #408 from rousselk/simplify-msp430-headers
...
Simplify msp430 headers
2013-12-19 02:23:21 -08:00
Kévin Roussel
c1f8106138
Quoted (instead of brackets) the custom header files #includes
2013-12-19 10:22:44 +01:00
Oleg Hahm
ead2e117a1
Merge pull request #439 from OlegHahm/thread_yield_prototype
...
put prototype for thread_yield() in core/include
2013-12-18 13:36:55 -08:00
Christian Mehlis
2a9aac7f0b
Merge pull request #423 from OlegHahm/fix_warnings
...
Fix warnings
2013-12-18 12:02:37 -08:00
Thomas Eichinger
cfa8879760
Merge pull request #435 from OlegHahm/fix_assembler_ifdef
...
macros are not handled by the preprocessor in ASM
2013-12-18 11:53:27 -08:00
Oleg Hahm
2cdfc5b585
Merge pull request #382 from OlegHahm/transceiver_return
...
transceiver return signed values for sending
2013-12-18 09:33:32 -08:00
Oleg Hahm
d87d827d88
transceiver return signed values for sending
...
negative values indicate an error value
2013-12-18 18:22:59 +01:00
Oleg Hahm
227c847135
put prototype for thread_yield() in core/include
2013-12-18 17:47:49 +01:00
Oleg Hahm
856548c63d
macros are not handled by the preprocessor in ASM
2013-12-18 16:56:13 +01:00
Thomas Eichinger
0afb992fc7
changed copyright statement
2013-12-18 11:16:41 +01:00
Thomas Eichinger
1d2f1479b6
hwtimer_wait issue fixed
2013-12-18 11:11:15 +01:00
Thomas Eichinger
1fcb47f9ed
fixed interrupt handling for hwtimer
2013-12-18 11:11:15 +01:00
Thomas Eichinger
1e39e7e486
change to the mc1322x IRQ handling
...
since mc1322x lacks a VIC this is a kind of SW VIC with low latency and
compatibility to the VIC API in mind.
2013-12-18 11:11:14 +01:00
Thomas Eichinger
a1cd29d68e
added basic install_irq function
2013-12-18 11:10:21 +01:00
Thomas Eichinger
a26b7ac4ba
remove isr.c to change interrupt handling to VIC model
2013-12-18 11:10:20 +01:00
Thomas Eichinger
8aeaea6fdc
changed CFLAGS to CFLAGS_BASIC (no -mthumb flag)
2013-12-18 11:10:20 +01:00
Thomas Eichinger
39c69166c5
fixes startup code and adds proper irq handler for mc1322x
2013-12-18 11:10:20 +01:00
Kévin Roussel
c6e43adb62
Removed 'flashrom.c' from the 'msp430-common' directory
...
since flash management differs with the MSP430 family
2013-12-18 10:51:46 +01:00
Kévin Roussel
63d78a231c
Made the headers of files in 'cpu/msp430x16x' and 'cpu/cc430' generic
2013-12-18 10:49:23 +01:00
Kévin Roussel
6428daf9c7
Removed all references to a specific MCU in "generic" files
...
Inclusion of generic <msp430.h> file is done in cpu.h
2013-12-18 10:49:23 +01:00
Hauke Petersen
edcabf7cb6
Fixed a lot of comments by removing tabs and correcting format.
2013-12-16 14:00:33 +01:00
Hauke Petersen
3785fe956b
Fixed doxygen comments, focused on file headers and group definitions
2013-12-16 14:00:24 +01:00
Ludwig Ortmann
0817675f5e
fix native hwtimer unsetting
...
reverts bug introduced by 2bfb062
2013-12-14 00:12:47 +01:00