Commit Graph

136 Commits (a188d7670b0a133c8fd15483d510e7247f7f12a6)

Author SHA1 Message Date
kYc0o 699410efc8 Merge pull request #5124 from locicontrols/fixes
cpu/cc2538: fix build errors when UART1 or the 32 kHz crystal is enabled
7 years ago
Cenk Gündoğan 8b7512f0bf Merge pull request #5187 from Yonezawa-T2/i2c_debug
i2c: add missing #ifdef block
7 years ago
Yonezawa-T2 7271c928cc i2c: add missing #ifdef block 7 years ago
Yonezawa-T2 dc9f769835 NEEDS SQUASHING i2c: revert partially 7 years ago
Yonezawa-T2 1ce140d910 debug: fix compilation error for %p formatter 7 years ago
Ian Martin a553fe0f84 cpu/cc2538: fix build errors when UART1 or the 32 kHz crystal is enabled 7 years ago
Ian Martin a2ac92b2bd cpu/cc2538: add periph/spi driver 7 years ago
Ian Martin 7b8c86ec16 cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e3 7 years ago
Hauke Petersen cfed0e33cc cpu/cc2538: adapted to GPIO inerface changes 7 years ago
Joakim Nohlgård 30ed36b236 cpu/cc2538: i2c: Make WARN_IF use {} to silence Clang warning when ENABLE_DEBUG=0 7 years ago
Ian Martin 705879741c cpu/cc2538: use the MCU's default UART FIFO interrupt levels 7 years ago
Ian Martin 5f05a956db cpu/cc2538: clear only the latched UART interrupt flags
Otherwise incoming bytes can remain in the receive FIFO indefinitely.
7 years ago
Kaspar Schleiser a6a98dc5a9 cpu: cc2538: add missing include to periph_cpu.h 7 years ago
kYc0o 740635daaa Merge pull request #3765 from locicontrols/cc2538-i2c
cpu/cc2538: add periph/i2c driver
7 years ago
Kaspar Schleiser 6881f65f46 cpu: cortexm*: move cpu_conf.h stuff from cpu.h into cpu_conf_common.h 7 years ago
Ian Martin 4936edb80f cpu/cc2538: initialize the GPIO controller to a default state 7 years ago
Ian Martin 9642f2531a cpu/cc2538: add periph/i2c driver 7 years ago
kYc0o e730f1bdc3 Merge pull request #4878 from locicontrols/cc2538-periph-timer
cpu/cc2538/periph/timer overhaul
7 years ago
kYc0o ec1bea389b Merge pull request #2753 from locicontrols/baudrate-fix
cpu/cc2538: avoid using bitfields with the LCRH register
7 years ago
Ian Martin b6fbdb2f79 Avoid rounding errors during frequency scaling. 7 years ago
Ian Martin 4176d04b02 cpu/cc2538/periph/timer overhaul
* Use the 32-bit counter mode.
 * Apply frequency scaling for non-16 MHz frequencies.
7 years ago
Ian Martin 92a16a50dd cc2538 gptimer corrections. 7 years ago
Ian Martin c91ae645a5 cpu/cc2538: break-out the bitfields in the GPTimer IMR register. 7 years ago
Hauke Petersen b11a3ad74b cpus: adapted timer implementations to API changes 7 years ago
Ian Martin 04bd6e5f7c cpu/cc2538: avoid using bitfields with the LCRH register
Otherwise the UART ignores the new baudrate divisor.
7 years ago
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
7 years ago
Hauke Petersen 216a4cb432 cpu/cc2538: adapted HWRNG implementation 7 years ago
Joakim Nohlgård 943c106461 cpu/cc2538: Update to match timer_init API change 7 years ago
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
7 years ago
Hauke Petersen ad0abdcadd cpus: use default isr_ctx struct in GPIO drivers 7 years ago
Hauke Petersen e1df626a9b cpu/cc2538: doxgen fixes
- added missing documentation
- repaired doxygen groups
7 years ago
Hauke Petersen ad23d0dcea cpu/cc2538: harmonized naming of vendor headers 7 years ago
Oleg Hahm 4780b5cba1 cc2538: fix pedantic compiler warnings 7 years ago
Hauke Petersen a58d577cb1 cpu/cc2538: adapted UART driver 8 years ago
Joakim Nohlgård cbaeccdb90 periph/timer: Drop timer_reset 8 years ago
Ian Martin 40b93ea6ad cpu/cc2538: uart init overhaul 8 years ago
Ian Martin aca53006b0 cpu/cc2538: preserve UART_CTL flags when clearing an error condition 8 years ago
Ian Martin b2c51bed6a cpu/cc2538: eliminate unused macros UART_1_CTS_PORT and UART_1_RTS_PORT 8 years ago
Ian Martin d70705f840 cpu/cc2538: round when computing the UART baudrate divisor 8 years ago
Kaspar Schleiser 8c147f1e3c cpu: cc2538: remove obsolete hwtimer support 8 years ago
Emmanuel Baccelli 014939805e Merge pull request #3062 from alignan/pull/remote-port
New Zolertia Re-Mote platform (CC2538 + CC1120)
8 years ago
daniel-k 7a86344c4d cpu/cortexm_common: gather addition information on hardfault 8 years ago
Antonio Lignan b8823b7afe Zolertia Re-Mote platform (cc2538 + cc1120) port 8 years ago
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
8 years ago
Hauke Petersen 47e8472949 cpu/cc2538: adjusted to changed GPIO interface 8 years ago
Joakim Gebart c09a8484e2 cortexm: Move ldscripts into separate directory
Less clutter inside the cpu/* directories by placing linker scripts
under cpu/*/ldscripts/CPUNAME.ld
8 years ago
Hauke Petersen 52e51bfea1 cpu/cc2538: adapted to centralized cpu conf 8 years ago
haukepetersen 0d5c8546f3 cpu: adapted Makefiles to unified cortexm module 8 years ago
Hauke Petersen 9943f51080 global: renamed cpu-conf.h into cpu_conf.h 8 years ago
Kaspar Schleiser 6e6e1eb2b3 cpu: cc2538: use cortex common makefile and newlib module 8 years ago
Joakim Gebart 13832d8e62 everything: Remove filename from @file Doxygen command 8 years ago
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
8 years ago
Joakim Gebart e9c567107d all: remove extra blank lines at the end 8 years ago
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.
8 years ago
Oleg Hahm a5dc951ef2 doc: fix doxygen group for cc2538 memory map 8 years ago
Oleg Hahm 000450c894 Merge pull request #2117 from OlegHahm/doxygen_eliminate_warnings
Doxygen eliminate warnings pt. 2
8 years ago
Oleg Hahm 43c86b5a3e doc: fix remaining doxygen warnings 8 years ago
Ian Martin 58e413afce cpu/cc2538: add eh_frame section to the linkerscript
Fixes linker errors on some toolchains, for example:
  ld: foo.elf section `.eh_frame' will not fit in region `cca'
  ld: region `cca' overflowed by 40 bytes
8 years ago
Oleg Hahm ae8dd90884 doc: added missing closing doxygen brackets 8 years ago
DangNhat Pham-Huu 3e86b86472 Merge pull request #2083 from dangnhat/added_externc_for_missed_header
cpu/cc2538: added extern C for rfcore.h
8 years ago
Thomas Eichinger b5071385db Merge pull request #2036 from haukepetersen/fix_openmote_cpp
boards: enable C++ for CC2538 based boards
8 years ago
Pham Huu Dang Nhat 964d96e362 cpu/cc2538: added extern C for rfcore.h 8 years ago
Hauke Petersen 2220a9fab0 core/cpu/boards: removed fw_puts from RIOT 8 years ago
Hauke Petersen f5480234c3 cpu/cc2538: made _kill(_r) syscalls weak 8 years ago
Hauke Petersen 62b6522e01 cpu: moved reboot_arch for cortex cpus 8 years ago
Kaspar Schleiser 9ce0b676b4 core: sys: move ringbuffer to core 8 years ago
Thomas Eichinger 2b0d49c8b1 Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
cpu: adjusted IRQ stack sizes for Cortex CPUs
8 years ago
Ian Martin 7bbdbcc7cb Allow the application's makefile to specify a custom linker script, for example:
LINKERSCRIPT = custom-linkerscript.ld
8 years ago
Hauke Petersen 72b68bc9f0 cpu: adjusted IRQ stack sizes for Cortex CPUs 8 years ago
benpicco cedc588d77 Merge pull request #1782 from benpicco/fix_malloc
check if the requested memory is really available in _sbrk_r
8 years ago
Benjamin Valentin 879768397e malloc: check if the requested memory is really available 8 years ago
Ian Martin b37698a064 cpu/cc2538: Enable the CC2538's more compact alternate interrupt mapping. 8 years ago
Benjamin Valentin 73f6ac6bce Revert "cpu/cc2538: sbrk() checks if the requested memory is really available."
This reverts commit 81dea364a5.
8 years ago
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.
9 years ago
Thomas Eichinger b756534a58 Merge pull request #1874 from locicontrols/cc2538-oe
cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in().
9 years ago
Ian Martin 81dea364a5 cpu/cc2538: sbrk() checks if the requested memory is really available. 9 years ago
Ian Martin 34086fc6c6 cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in(). 9 years ago
Hauke Petersen ffea9fc4e8 cpu/cc2538: added linkerscript for cc2538sf53 9 years ago
Hauke Petersen 6889fd1f89 cpu/cc2538: adjusted GPIO register definitions 9 years ago
Hauke Petersen 9051c7be4b Merge pull request #1861 from haukepetersen/fix_cc2538_irqvector
cpu/cc2538: cleaned up IRQ vector definition
9 years ago
Hauke Petersen ca20603d54 cpu/cc2538: made ISR names configurable by a board 9 years ago
Hauke Petersen 24ac5a7e94 cpu/cc2538: cleaned up IRQ vector definition 9 years ago
Hauke Petersen ccd601b429 cpu/cc2538: centralized all cpu specific includes
- added all CPU specific includes to cpu-conf.h
- removed now not needed includes from cpu .c files
9 years ago
Ian Martin 647391f71c cc2538: Set __NVIC_PRIO_BITS to the correct value of 3. 9 years ago
Ian Martin 0605a7eb95 Add support for the Texas Instruments CC2538 ARM Cortex-M3 MCU and developer kit. 9 years ago
Hauke Petersen ae48fccdf7 Copy some files from cpu/sam3x8e to cpu/cc2538. 9 years ago