Commit Graph

331 Commits

Author SHA1 Message Date
Edvard Pettersen
f4a8cba371 Rehauled doxygen commenting and fixed TI drivers configuration 2018-08-31 11:04:48 +02:00
Edvard Pettersen
8cd6017305 Cleanup in config 2018-08-31 11:04:47 +02:00
Edvard Pettersen
c170a90976 Fixed RX buf full error 2018-08-31 11:04:47 +02:00
Edvard Pettersen
e0bd086b3b Ported BLE beacond, fixed IEEE_RX_ACK. 2018-08-31 11:04:47 +02:00
Edvard Pettersen
9be3c05daa Fixed bug in CMD_PROP_TX_ADV settings 2018-08-31 11:04:46 +02:00
Edvard Pettersen
32fed691d4 Added HardFault debugger function 2018-08-31 11:04:46 +02:00
Edvard Pettersen
10805cbbe7 Fixed wrong prop-settins for CC13x0 2018-08-31 11:04:46 +02:00
Edvard Pettersen
41cb9dd66c Implemented RX_ACK for IEEE-mode 2018-08-31 11:04:46 +02:00
Edvard Pettersen
f307794b39 Reworked RF driver into scheduler 2018-08-31 11:04:46 +02:00
Edvard Pettersen
676b3dbcc1 Added BLE and IEEE MAC address functions 2018-08-31 11:04:46 +02:00
Edvard Pettersen
315bfc00d3 Added SUPPORT_BLE_BEACON flag 2018-08-31 11:04:46 +02:00
Edvard Pettersen
326974031e Added BLE settings 2018-08-31 11:04:45 +02:00
Edvard Pettersen
bb00eaa041 Normalized GPIO HAL, fixed LEDS & Buttons HAL, and aligned sensortag and
SRF06 boards
2018-08-31 11:04:45 +02:00
Edvard Pettersen
d4828c7baf Fixed GPIO HAL issue. 2018-08-31 11:04:44 +02:00
Edvard Pettersen
f3a030b0a4 Fixed button-sensor for launchpad 2018-08-31 11:04:44 +02:00
Edvard Pettersen
d312dd9ebb Refactoring of prop/ieee-mode 2018-08-31 11:04:44 +02:00
Edvard Pettersen
12a6eefa85 Lots of fixes for prop-mode and ieee-mode 2018-08-31 11:04:44 +02:00
Edvard Pettersen
f6b016c5d4 Working prop-mode 2018-08-31 11:04:44 +02:00
Edvard Pettersen
f9fcbd6a77 Fixed IEEE settings, aligned naming of RF commands 2018-08-31 11:04:44 +02:00
Edvard Pettersen
7b812e73c9 Fixed naming and alignment of RF settings, Watchdog driver, Board files 2018-08-31 11:04:44 +02:00
Edvard Pettersen
2d69241381 Fixed CC2650STK board files, and leds-arch for sensortag 2018-08-31 11:04:43 +02:00
Edvard Pettersen
40227d0817 Fixed RF Settings, Board files, Sensortag sensors 2018-08-31 11:04:43 +02:00
Edvard Pettersen
745c2b24b6 Fixed RF settings and Board files 2018-08-31 11:04:42 +02:00
Edvard Pettersen
02b812a631 [Feature]: Simplelink Platform for Simplelink SDK
Working Simplelink platform with the following Simplelink SDK's:
* CC13x0 SDK
* CC13x2 SDK
* CC26x2 SDK

Is also compatible with Code Composer Studio (XDCTools)
2018-08-31 11:04:41 +02:00
Edvard Pettersen
a76462b908 Initial commit of Simplelink rework 2018-08-31 11:04:40 +02:00
Edvard Pettersen
6ce955a71f Added slip driver 2018-08-31 11:04:40 +02:00
Edvard Pettersen
9f32a96590 Removed unwanted check of RF cancel command 2018-08-31 11:04:40 +02:00
Edvard Pettersen
7e96029211 Initial try of structuring platform dependent code 2018-08-31 11:04:39 +02:00
Edvard Pettersen
723e59264c Added TX power table sizes for RF-prop settings 2018-08-31 11:04:39 +02:00
Edvard Pettersen
5c058b9c52 Refactored after PR review 2018-08-31 11:04:39 +02:00
Edvard Pettersen
7f813e8e0e Compiling and untested IEEE mode radio driver 2018-08-31 11:04:39 +02:00
Richard Weickelt
56721d13cf Working prop rf driver 2018-08-31 11:04:39 +02:00
Richard Weickelt
0102628245 Prop RF driver now complete 2018-08-31 11:04:39 +02:00
Richard Weickelt
430ba24bbd Add more functionality 2018-08-31 11:04:38 +02:00
Richard Weickelt
df236cc05c Add more RF functionality 2018-08-31 11:04:38 +02:00
Richard Weickelt
c98b0498a7 Adding more functionality 2018-08-31 11:04:38 +02:00
Richard Weickelt
64f440a15f Initial commit, doesn't compile 2018-08-31 11:04:38 +02:00
Richard Weickelt
5a6578b99f Undo watchdog changes 2018-08-31 11:04:38 +02:00
Edvard Pettersen
2b0091246d UART0 arch driver impl
* Async read
* Renamed driver to uart0-arch
* Renamed arch/cpu source folder to dev/
2018-08-31 11:04:38 +02:00
Richard Weickelt
8f0b3fb49c Undo unnecessary makefile edit 2018-08-31 11:04:38 +02:00
Edvard Pettersen
b30ef7d56d Added async read on UART 2018-08-31 11:04:38 +02:00
Richard Weickelt
c99c3b4b5f Rewriting clock module based upon DPL 2018-08-31 11:04:38 +02:00
Edvard Pettersen
c8023df8a5 Added UART serial interface printing 2018-08-31 11:04:38 +02:00
Edvard Pettersen
765e35ba7f Added working simplelink platform without netstack 2018-08-31 11:04:38 +02:00
Edvard Pettersen
65ba0bb5a6 Fixed remaking Makefiles, removed implicit %.o for %.elf, aligned
defines, added volatile qualifier for RAM vector pointer
2018-08-31 11:04:37 +02:00
Richard Weickelt
f83579098b Resolve remarks 2018-08-31 11:04:37 +02:00
Richard Weickelt
a40e5bc314 Build the board file and add all libraries from the SDK 2018-08-31 11:04:37 +02:00
Edvard Pettersen
12c9056cec Cleaned up CCFG configuration, and aligned CC13x0_cc26x0 and
CC13x2_CC26x2 CPU conf
2018-08-31 11:04:37 +02:00
Richard Weickelt
c7aaefb4da Add board file deduction logic and board init stages 2018-08-31 11:04:37 +02:00
Edvard Pettersen
b861190cb8 Initial commit for rtimer-arch 2018-08-31 11:04:37 +02:00
Richard Weickelt
be4131d277 Add necessary SDK libraries and include paths 2018-08-31 11:04:37 +02:00
Edvard Pettersen
ddd451a19b Compiling example of dummy simplelink platform 2018-08-31 11:04:37 +02:00
Richard Weickelt
e8251d786b Fix path errors when including arm makefiles from another location than a CPU makefile 2018-08-31 11:04:37 +02:00
Martin Hermsen
4c7474da70 rx full IRQ handling for cc13xx/cc26xx 2018-06-05 13:14:00 +02:00
George Oikonomou
11f563dc98 Harmonize login, serialdump and serialvew across all platforms 2018-05-26 13:55:03 +01:00
Niclas Finne
2cb4e27599 Added a configurable linker flag to enable linker warnings as errors since OSX
requires a diffent linker flag.
2018-05-15 00:52:12 +02:00
kkrentz
21dd6209ff uip: Support for IEEE 802.15.4 short addresses 2018-05-12 02:29:33 -07:00
Simon Duquennoy
5ef74e9cfc
Merge branch 'develop' into contrib/rtimer-config 2018-05-11 21:10:33 +02:00
Olav Frengstad
d17566aaef Allow custom frequency bands (+ some TI radio tweak options)
* Add DOT_15_4G_FREQUENCY_BAND_CUSTOM for configuring non-standard frequency band
* Add option to tweak some timer settings
2018-05-03 23:05:18 +02:00
George Oikonomou
fc76683eef Enable the CC13x0/CC26x0 ROM bootloader by default 2018-04-28 14:09:41 +01:00
Simon Duquennoy
4da9202d22 Add lrwrap to login and native BR 2018-04-26 03:00:04 -07:00
Simon Duquennoy
f9a1f958e1 Merge remote-tracking branch 'origin/release-4.1' into develop 2018-04-20 08:37:14 -07:00
Simon Duquennoy
f339747218 rtimer: homogenize clock size configuration 2018-04-20 05:20:37 -07:00
Simon Duquennoy
ff7c3ee042 Make rtimer 32-bit by default 2018-04-20 05:20:37 -07:00
Simon Duquennoy
8bc3a7388e cc26xx and cc13xx: use IEEE802154_DEFAULT_CHANNEL 2018-04-13 08:06:02 -07:00
Simon Duquennoy
0b2ea0d810 cc2538-rf: use IEEE802154_DEFAULT_CHANNEL 2018-04-13 02:27:17 -07:00
Simon Duquennoy
6fa97286b3
Merge branch 'release-4.1' into contrib/native/button-hal 2018-04-11 20:41:46 +02:00
George Oikonomou
3299780bbe Delete trailing whitespaces (arch/cpu/) 2018-04-07 14:49:40 +01:00
Simon Duquennoy
fe0b245962
Merge pull request #400 from g-oikonomou/contrib/native/interrupt-emulation
Emulate interrupt manipulation on native
2018-04-07 15:00:57 +02:00
George Oikonomou
a94b868a4f Tidy-up AROPTS for cpu native 2018-04-06 13:45:56 +01:00
Simon Duquennoy
005a45009b
Merge branch 'develop' into contrib/build/cleanup 2018-04-05 08:37:55 +02:00
Xenofon (Fontas) Fafoutis
1c335e9faa fix logging error 2018-04-04 11:30:32 +01:00
Xenofon (Fontas) Fafoutis
d7baa54bd0 SPI HAL API: lock()/open() and close()/unlock() merged 2018-04-04 11:30:32 +01:00
George Oikonomou
2cad626360 Rename new SPI API to spi.[ch] 2018-04-04 11:30:32 +01:00
George Oikonomou
8ea998847b Rename old msp430/sky SPI driver 2018-04-04 11:30:32 +01:00
George Oikonomou
ee4e287fc5 Rename old SPI API to -legacy.h 2018-04-04 11:30:32 +01:00
George Oikonomou
448ee8ae96 Rename arch-specific SPI HAL implementations 2018-04-04 11:30:32 +01:00
George Oikonomou
34df610fcc Remove spi-hal-arch.h (CC2538) 2018-04-04 11:30:32 +01:00
George Oikonomou
03c63bdd0f Remove spi-hal-arch.h (CC13xx/CC26xx) 2018-04-04 11:30:32 +01:00
George Oikonomou
7160e1dbd2 Change the way of configuring SPI controller count 2018-04-04 11:30:32 +01:00
George Oikonomou
0695810044 Rename old CC2538 SPI driver 2018-04-04 11:30:32 +01:00
George Oikonomou
4a0dcf5f1e Minor code style fixes 2018-04-04 11:30:32 +01:00
George Oikonomou
e7eee05c7d Add some inludes explicitly 2018-04-04 11:30:32 +01:00
Xenofon (Fontas) Fafoutis
2a7e9f0835 SPI HAL implementation for CC2538 2018-04-04 11:30:32 +01:00
xenofon (Fontas) Fafoutis
e7d7ee3962 generic spi driver for cc26xx-cc13xx
launchpad and ext-flash implementation
2018-04-04 11:30:32 +01:00
Xenofon (Fontas) Fafoutis
cf291c22f0 Minor changes in the GPIO HAL 2018-04-04 11:30:32 +01:00
Xenofon (Fontas) Fafoutis
1bb04f2d20 revert cc2538 2018-04-04 11:30:32 +01:00
Niclas Finne
0683d4dc3d Imported SPI API from Yanzi Networks internal Contiki fork. 2018-04-04 11:30:32 +01:00
Simon Duquennoy
4b11f8c99e
Merge branch 'develop' into contrib/build/cleanup 2018-04-03 14:50:17 +02:00
George Oikonomou
6857d2fe20 Implement the GPIO HAL for platform native 2018-04-02 22:14:55 +01:00
George Oikonomou
4ededd17d6 Emulate interrupt manipulation on native 2018-04-02 22:13:56 +01:00
George Oikonomou
b2438b4563 Enable putchar for all arm platforms
Instead of having to #undef putchar in every file where we want to use it, we undef it across the board. See the comment in arm-def.h as to why this needs done.
2018-03-30 22:20:48 +01:00
George Oikonomou
be2a818eaa Adjust nrf52832 compile output 2018-03-30 21:23:00 +01:00
George Oikonomou
c7e36a3d55 Change clean target to be more explicit
Previously, the clean target would delete a number of file extensions, many of which currently unknown to our build system (old platforms?). This commit changes the target so that it only cleans what we know we are building. Platforms / CPUs can append to the target with platform-specific build artifacts.
2018-03-30 21:22:59 +01:00
George Oikonomou
1d3122750a Define different mspsim-maptable per project
The rule is changed such that it makes sure the .map file gets built first. We have separate map files per project, so we need separate mspsim-maptables
2018-03-30 21:22:59 +01:00
George Oikonomou
16d8c5b4f9 Use a variable for the Contiki-NG archive file
Prevents having to hard-code the filename in multiple cpu/platform makefiles and allows us to easily rename it across the board in the future
2018-03-30 21:22:59 +01:00
George Oikonomou
87dfa61fd6 Use dbg.c from the CPU dir and delete platform file 2018-03-30 21:06:52 +01:00
George Oikonomou
ce540a8bca Harmonise filename pattern for the .map file
All map files are now called example-platform.map (e.g. hello-world-native.map).
2018-03-30 20:24:59 +01:00
George Oikonomou
04ca5fd46a Update doxygen content and structure 2018-03-30 15:24:04 +01:00
George Oikonomou
86b10b69aa Resolve multiple symbol definitions 2018-03-30 15:23:50 +01:00
George Oikonomou
1bf1f37b24 Build dbg-io as a module 2018-03-30 15:23:50 +01:00
George Oikonomou
6d592945a0 Use a single common dbg.h 2018-03-30 15:23:50 +01:00
George Oikonomou
40f6b1a2ba Rename files to resolve filename conflicts 2018-03-30 15:23:50 +01:00
George Oikonomou
ed3e2c850e Remove depedency to a debug-uart.h 2018-03-30 15:23:50 +01:00
George Oikonomou
bb338affeb Move dbg-io to os 2018-03-30 15:23:50 +01:00
George Oikonomou
a0e8b51950 Add license and copyright notice 2018-03-30 15:23:50 +01:00
George Oikonomou
89148eb030 Include contiki.h 2018-03-30 15:23:49 +01:00
George Oikonomou
888a99ed3c Move macros to top of file 2018-03-30 15:23:49 +01:00
George Oikonomou
4e3c7efa5f Fix code style 2018-03-30 15:23:49 +01:00
George Oikonomou
632ab90161 Apply cosmetic changes 2018-03-30 15:23:49 +01:00
Atis Elsts
a9e9d0f3ec CC26xx: increase size of the region reserved for stack from 256 bytes to 1024 bytes 2018-03-29 14:09:38 +01:00
George Oikonomou
22b4a40dd6 Cross-platform MQTT client example 2018-03-23 22:35:28 +00:00
George Oikonomou
7bf6679806 Allow the GPIO HAL to enable corresponding port interrupt on the NVIC 2018-03-14 09:34:46 +00:00
George Oikonomou
e2d5e2dfee Add missing includes 2018-03-13 22:47:45 +00:00
George Oikonomou
de975bbabe Move BLE readme to the corresponding example dir 2018-03-13 22:47:45 +00:00
Simon Duquennoy
7fe4d913b7
Merge branch 'develop' into contrib/build-all 2018-03-12 14:22:34 +01:00
George Oikonomou
c250cf93b7
Merge branch 'develop' into feature/ipv6_over_ble 2018-03-12 08:52:25 +00:00
Simon Duquennoy
0bacdd451e nrf52832: fix .map filename 2018-03-09 16:29:06 +00:00
Atis Elsts
dab9ea0817 nrf52dk: move the build error when building without IPv6 from Makefile to C header file to enable PLATFORMS_EXCLUDE syntax in Makefiles 2018-03-09 16:29:06 +00:00
George Oikonomou
888063e9e6
Merge branch 'develop' into bugfix/cc26xx-rx-packet-size 2018-03-02 21:48:58 +00:00
George Oikonomou
0dfd39adcf Adjust data types for legacy LED API implementations 2018-03-01 15:29:30 +00:00
George Oikonomou
424bee9464 Add CC2538 GPIO conversion macro 2018-03-01 15:29:29 +00:00
Atis Elsts
df160d9347 CC26xx IEEE mode radio driver: allow reception of packets shorter than 5 bytes 2018-03-01 13:26:56 +00:00
George Oikonomou
095a89d937 Adjust CC2538 CPU drivers to use the GPIO HAL 2018-02-24 12:50:02 +00:00
George Oikonomou
10c2bcde15 Build the GPIO HAL for the CC2538 2018-02-24 12:50:02 +00:00
George Oikonomou
ab7d7cd9f4 Implement the GPIO HAL for the CC2538 2018-02-24 12:50:02 +00:00
George Oikonomou
f1d1932c5c Adjust CC13xx/CC26xx drivers to use the GPIO HAL 2018-02-24 12:50:01 +00:00
George Oikonomou
421d95bc00 Build the GPIO HAL for CC13xx/CC26xx 2018-02-24 12:50:01 +00:00
George Oikonomou
d88c3d0c01 Implement the GPIO HAL for CC13xx/CC26xx 2018-02-24 12:50:01 +00:00
Niclas Finne
309745780e Removed the remaining Contiki Interface declaration macros (CCIF/CLIF) 2018-02-21 01:14:10 +01:00
George Oikonomou
5f6eee66ff Correctly check against minumum RX frame length 2018-02-16 15:04:02 +00:00
MartenBE
e2d5f737db Deleted duplicate const specifiers 2018-02-02 15:26:16 +01:00
spoerk
1defa2646a Fixed Doxygen problem 2018-01-03 16:18:21 +01:00
spoerk
f8d2c3fa48 code style fixes 2018-01-03 15:52:36 +01:00
spoerk
604e846ff1 Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2018-01-03 15:27:42 +01:00
spoerk
03ec1ea401 Some documentation added 2018-01-03 15:18:01 +01:00
spoerk
35c08597e6 BLE L2CAP moved to the other MAC implementations 2018-01-03 14:36:14 +01:00
Simon Duquennoy
7f1dd819ef RPL BR: remove platform-specific code for sky. Add putchar with SLIP support to arch, like in other platforms 2017-12-22 05:21:39 -08:00
Simon Duquennoy
81d1b1bd80 PROJECTDIR now turned into modules via MODULES_REL 2017-12-22 05:21:39 -08:00
Simon Duquennoy
84ea0971bc Remove obsolete flag AUTOSTART_ENABLE, as well as .co and .ce files 2017-12-22 05:21:39 -08:00
George Oikonomou
38987352c4 Change variables to static 2017-12-17 22:24:48 +00:00
George Oikonomou
b5fa28e2d4 Link without using an archive file
For reasons discussed long ago and that have to do with how ld handles weak symbols, it was decided that it was preferable to link using an explicit list of object files, instead of adding object files to an archive first and then linking using this archive. This was applied for the CC2538, but not for CC13xx/CC26xx.

This pull applies this link logic to all CM3s. For this to work with the Contiki-NG build system, we need `.SECONDEXPANSION:`, so this pull moves that to the common CM3 Makefile.
2017-12-17 21:31:39 +00:00
George Oikonomou
14ad14e7d3 Remove nrf52832.a on make clean
When building for nrf52dk, `make clean` does not remove `nrf52832.a`. This commit fixes this.
2017-12-17 01:20:38 +00:00
spoerk
fd0f0ca4b6 Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2017-12-15 11:41:27 +01:00
spoerk
7a7c4e0015 added support for IPv6 over BLE communication 2017-12-15 11:20:44 +01:00
Laurent Deru
ccb705ed31 Use clock_gettime() instead of gettimeofday() to have a monotonic clock and use CLOCK_CONF_SECOND explicitly 2017-12-12 16:53:51 +01:00
George Oikonomou
82bc3363d1 Use Cortex-M mutexes (CC13xx/CC26xx) 2017-12-09 17:09:58 +00:00
George Oikonomou
48c10d3e30 Use Cortex-M mutexes (CC2538) 2017-12-09 17:09:58 +00:00
George Oikonomou
62a79c09fc Add mutex implementation for Cortex-M 2017-12-09 17:09:58 +00:00
George Oikonomou
bdddf41ca9 Use Cortex-M memory barriers (CC13xx/CC26xx) 2017-12-09 17:09:57 +00:00