Commit Graph

12335 Commits

Author SHA1 Message Date
Oliver Schmidt
50ecd3fccb Adjusted to recent cc65 compiler improvements. 2021-11-29 21:55:45 +01:00
Oliver Schmidt
044f964a1e Updated to reflect recent addition. 2019-05-08 17:31:09 +02:00
Oliver Schmidt
28f88a7d56 Consistently use the term 'device'. 2019-05-08 17:11:07 +02:00
Oliver Schmidt
c2a71ee62b Updated several aspects regarding Ethernet drivers.
I. Build Ethernet drivers individually for each target.

After all the Ethernet cards/carts are different enough to ask for customized drivers. Building the drivers individually opens the option to use .ifdef's to customize them.

II. Removed Ethernet driver I/O base.

So far the base address of the Ethernet chip was a general property of all Ethernet drivers. It served two purposes:
1. Allowing to use a single Ethernet driver for a certain Ethernet chip, no matter what machine was connected to the chip.
2. Allowing use an Ethernet card in all Apple II slots.

However, we now use customized Ethernet drivers for the individual machines so 1.) isn't relevant anymore. In fact one wants to omit the overhead of a runtime-adjustable base address where it isn't needed.

So only the Apple II slots are left. But this should rather be a driver-internal approach then. We should just hand the driver the slot number the user wants to use and have the driver do its thing.

III. With per-target Ethernet drivers we can have per-target MAC addresses.

IV. Added support for RR-Net MK3 unique MAC addresses.

The RR-Net MK3 can be operated in two modes:

- In cartrigde mode it has a startup-ROM that sets the CS8900A MAC address to the unique MAC address.
- In clockport mode the driver has to read the two lowest MAC address bytes from the EEPROM and combine them with 28:CD:4C:FF.

See http://wiki.icomp.de/wiki/RR-Net#Detecting_MK3 for details.

The driver first checks if the current CS8900A MAC address starts with 28:CD:4C:FF. If it does, it overwrites its built in default MAC address with the CS8900A MAC address.

If the CS8900A MAC address didn't start with 28:CD:4C:FF, it checks if there are two valid MAC address bytes in the EEPROM. If they are there, it overwrites its built in default MAC address with a combination of 28:CD:4C:FF and those two bytes.

V. Added support for the upcoming 'Dracarys' Ethernet PBI for the ATARI.

See http://atariage.com/forums/topic/287376-preannouncement-dragon-cart-ii/ for details on Dracarys.

So far there was only one Ethernet solution for the ATARI. Therefore the relevant driver was loaded statically. With now having two solutions we have to load the corresponding driver dynamically (like on the other machines). Fortunately this doesn't mean significant additional overhead as there are several mouse drivers for the ATARI asking for dynamic mouse driver loading. Therefore the dynamic driver loading infrastructure was linked already.

Another aspect of more than one Ethernet solution is that the Ethernet config program becomes necessary on the ATARI to select the correct driver. Although that program is pretty simple and therefore rather small it means that now only one "major" program fits on a 130kB disk. So we need now 5(!) 130kB disk images instead 3 so far.
2019-05-08 16:46:47 +02:00
Oliver Schmidt
309e2fcd79 The textcolor macro optimization is by now provided by cc65. 2019-05-08 10:27:00 +02:00
Oliver Schmidt
5499e53880 Added workaround for 6551 UART. 2019-05-06 17:47:02 +02:00
Oliver Schmidt
81724c8855
Duplicate https://github.com/oliverschmidt/contiki/wiki 2018-11-03 16:43:34 +01:00
Oliver Schmidt
726124965a
Removed Apple][ mouse driver file.
The Apple][ mouse driver file became obsolte with 91beb8670f.
2018-11-03 16:17:05 +01:00
Oliver Schmidt
bc2e445817
Merge pull request #2449 from oliverschmidt/master
Adjusted to cc65 2.17 which generates AppleSingle files.
2018-03-08 17:43:21 +00:00
Oliver Schmidt
aced9e2211 Adjusted to cc65 2.17 which generates AppleSingle files. 2018-03-08 17:23:43 +01:00
Nicolas Tsiftes
80dbe5c17e Merge pull request #2347 from posjodin/PR9
Driver for Plantower PMS 5003 dust sensors.
2017-10-11 15:47:35 +02:00
Peter Sjodin
250939c579 Make duty-cycling runtime configurable with timers for sample period and warmup time 2017-10-10 10:34:10 +02:00
Peter Sjodin
0e9b67c9db Read size bin counts for PMS5003 sensor 2017-10-10 10:34:10 +02:00
Peter Sjodin
2e593ca6e4 Make printpm() conditional to avoid warnings about unused
static function.
2017-10-10 10:34:10 +02:00
Peter Sjödin
58842a57b8 Driver for Plantower PMS 5003 dust sensors.
Platform-specific files for avr-rss2.
2017-10-10 10:34:10 +02:00
George Oikonomou
1364e98d9e Merge pull request #2338 from tim-ist/bmp_fix
cc26xx/sensortag: Use correct calibration data structure size
2017-10-04 09:59:38 +01:00
Timofei Istomin
9933dfd7d0 Use correct calibration data structure size 2017-09-26 18:42:48 +02:00
Adam Dunkels
0875517d6e Merge pull request #2228 from alexandruioanp/ws-null-term
Terminate websocket strings
2017-09-25 14:28:44 +02:00
Adam Dunkels
ea788f3719 Merge pull request #2317 from adamdunkels/hotfix-travis
Due to a travis update on September 1, 2017, sudo: and dist: are requ…
2017-09-21 10:03:30 +02:00
Adam Dunkels
9e408d9f31 Due to a travis update on September 1, 2017, sudo: and dist: are required 2017-09-02 19:37:59 +02:00
George Oikonomou
719f712307 Merge pull request #2259 from arurke/cc26xxcc13xx_uart_optional_txrx_support
CC26xx/CC13xx: Support uni-directional UART
2017-07-23 14:06:50 +01:00
Andreas Urke
770bbfc6f6 Allow UART TX or RX to not be configured 2017-06-30 02:50:24 +02:00
Nicolas Tsiftes
a08fc6a381 Merge pull request #2251 from arurke/RPL_debug_cleanup
Minor cleanup to RPL debug output
2017-06-22 16:41:55 +02:00
Andreas Urke
a986ecf7c3 Remove minor duplicates in RPL printouts 2017-06-22 15:52:43 +02:00
Nicolas Tsiftes
f0bddb277c Merge pull request #2203 from herjulf/AES128HW
Atmel radio AES128 crypto engine support.
2017-06-22 14:14:17 +02:00
Andreas Urke
5c0094cbd6 Minor cleanup to RPL debug output 2017-06-17 23:32:04 +02:00
Robert Olsson
e97f3bca26 Fix misspelled copyright for AES128HW_test pointed out by Nicolas Tsiftes 2017-06-16 10:48:52 +02:00
Nicolas Tsiftes
d53b6ad23e Merge pull request #2249 from nfi/coap-boundary-checks
Added boundary checks when parsing CoAP packets.
2017-06-15 14:56:58 +02:00
Niclas Finne
576ca6457f Added boundary checks when parsing CoAP packets.
Thanks to Stephan Zeisberg for reporting this issue.
2017-06-14 17:00:53 +02:00
Alexandru-Ioan Pop
4586cfcb4b Terminate websocket strings
Explicitly terminate the field strings when registering a websocket client.
2017-06-06 12:48:02 +01:00
George Oikonomou
ea4e080bae Merge pull request #2245 from alexstanoev/mqtt-html-sanitize
Validate MQTT broker IP and escape quotes when displaying
2017-06-03 13:28:23 +01:00
alexstanoev
3a53d96526 Validate MQTT broker IP and escape quotes when displaying
This commit implements address validation for the broker address in the MQTT configuration page of the CC26XX web demo example. Additionally, the Type ID, Org ID, Auth Token, Command Type and Event Type ID fields have quotes escaped (" -> ") to prevent XSS/broken page issues when displaying user-sourced input in HTML input fields.
2017-06-03 00:04:01 +01:00
George Oikonomou
6e3387c830 Merge pull request #2244 from contiki-os/revert-2213-mqtt-html-sanitize
Revert "Validate MQTT broker IP and escape quotes when displaying"
2017-06-03 00:00:22 +01:00
George Oikonomou
c558e1a559 Revert "Validate MQTT broker IP and escape quotes when displaying" 2017-06-02 23:02:54 +01:00
George Oikonomou
3800cb18a9 Merge pull request #2216 from herjulf/CCA
Atmel radio; Support for RADIO_PARAM_CCA_THRESHOLD plus rf_environment example
2017-06-02 22:40:27 +01:00
George Oikonomou
007f9c9798 Merge pull request #2213 from alexstanoev/mqtt-html-sanitize
Validate MQTT broker IP and escape quotes when displaying
2017-06-02 22:37:53 +01:00
alexstanoev
6b78ee9a4e MQTT: Validate broker IP and escape quotes when displaying
This commit implements address validation for the broker address in the
MQTT configuration page. Additionally, the Type ID, Org ID, Auth Token,
Command Type and Event Type ID fields have quotes escaped (" -> ")
to prevent XSS issues when displaying user-sourced input.
2017-06-02 15:13:58 +01:00
Robert Olsson
bb5d5546ce Atmel radio bug fix when setting tx-power. Spotted by Voravit Tanyingyong 2017-06-02 08:42:43 +02:00
Robert Olsson
bb90d50ba1 RADIO_PARAM_POWER_MODE for Atmel radio
modified:   cpu/avr/radio/rf230bb/rf230bb.c
	modified:   cpu/avr/radio/rf230bb/rf230bb.h
2017-06-01 17:30:30 +02:00
Simon Duquennoy
ed47d47155 Merge pull request #2217 from g-oikonomou/doxy
Fix Doxygen PPA location
2017-06-01 14:22:08 +02:00
Robert Olsson
b4ef18b2fa Keep cca scan function separated
modified:   examples/rf_environment/rf_environment.c
2017-05-23 21:07:59 +02:00
Robert Olsson
18cfaf7fa2 Reformat of table text for README
modified:   examples/rf_environment/README.md
2017-05-19 09:28:46 +02:00
Robert Olsson
ef9b00103e Optimizing channel table size for CCA in rf_environment example
modified:   examples/rf_environment/rf_environment.c
2017-05-11 14:20:12 +02:00
Robert Olsson
71167f0ba6 Retrigger PR after Doxigen fix 2017-05-09 15:26:14 +02:00
George Oikonomou
9ed56b1485 Fix Doxygen PPA location 2017-05-09 09:11:20 +01:00
Robert Olsson
4040005056 Retrigger regression test
modified:   examples/rf_environment/README.md
2017-05-08 14:25:59 +02:00
Robert Olsson
91928592d0 Updated README for rf_environment example 2017-05-08 13:11:22 +02:00
Robert Olsson
22975df423 examples/rf_environment for rf CCA (non-intrusive) monitoring added 2017-05-05 12:57:18 +02:00
Robert Olsson
c2560498b6 Atmel radio; Support for RADIO_PARAM_CCA_THRESHOLD added 2017-05-05 12:55:03 +02:00
George Oikonomou
3c150a5e99 Merge pull request #2150 from posjodin/PR2
Several changes to fix and harden mqtt code.
2017-04-24 16:04:56 +01:00