The official git repository for OSD-Contiki, the open source OS for the Internet of Things
Go to file
Michael LeMay c815fa4511 x86: Use shared ISR for I2C and GPIO
This patch permits interrupts to be generated by both the I2C and GPIO
controllers for simultaneously-executing applications. The controllers
share a single interrupt pin, INTC. Prior to this patch,
quarkX1000_gpio_init() routed INTA to PIRQC and IRQ 10 (due to an
incorrect assumption that INTA is connected to the GPIO controller),
and quarkX1000_i2c_init() routed INTC to PIRQC and IRQ 9. The I2C
controller initialization is a prerequisite for GPIO initialization,
so the final configuration was that INTA and INTC were both routed to
PIRQC and IRQ 10. Thus, only the GPIO ISR was being invoked, even if
the I2C controller was actually responsible for the interrupt.

This patch refactors the I2C and GPIO ISR setup and handler code so
that the shared portions are combined in
cpu/x86/drivers/legacy_pc/shared-isr.[ch].  The I2C and GPIO drivers
communicate their interrupt information to the shared component by
placing structures in a specific section of the binary.
2016-02-16 21:19:44 -08:00
apps Fix compiler warnings in shell 2016-02-03 18:01:25 +01:00
core Typo 2016-02-07 11:58:31 +02:00
cpu x86: Use shared ISR for I2C and GPIO 2016-02-16 21:19:44 -08:00
dev Fix ip64 warnings 2016-02-04 00:26:54 +01:00
doc updated sicslowpan documentation and platform configurations 2016-01-19 15:27:14 +01:00
examples Merge pull request #1507 from Zolertia/remote-voc-test 2016-02-15 12:21:32 +01:00
lib/newlib Implement generic Newlib syscalls 2015-12-16 19:50:49 +01:00
platform x86: Use shared ISR for I2C and GPIO 2016-02-16 21:19:44 -08:00
regression-tests Merge pull request #1486 from alignan/pull/cc2538-common 2016-02-04 23:48:35 +01:00
tools Remove Sensinode platform, cpu, example and tools files 2016-01-10 15:01:58 +00:00
.gitattributes Add binary files file extension 2015-10-22 16:19:39 +02:00
.gitignore Remove sensinode build artifacts from .gitignore 2016-01-10 15:08:55 +00:00
.gitmodules Align to current master 2015-09-04 17:01:04 +02:00
.travis.yml Change travis arm tests to use gcc-arm-embedded v5 2016-01-10 16:07:38 +00:00
CONTRIBUTING.md Updated CONTRIBUTING.md to reflect Contiki's new merging policy 2015-08-18 22:06:56 +02:00
LICENSE Removed the explicit year 2012 to make it more generic 2012-10-25 23:08:54 +02:00
Makefile.include Makefile.include: Remove unused MODULESSUBST 2015-06-01 22:09:58 +02:00
README-BUILDING.md Rename to md 2013-03-26 23:15:37 +01:00
README-EXAMPLES.md Several minor consistency improvements. 2013-07-31 00:55:31 +02:00
README.md Travis icon in README.md: show build status of the current master rather than latest build status (can be any pull request) 2015-08-19 09:21:38 +02:00

The Contiki Operating System

Build Status

Contiki is an open source operating system that runs on tiny low-power microcontrollers and makes it possible to develop applications that make efficient use of the hardware while providing standardized low-power wireless communication for a range of hardware platforms.

Contiki is used in numerous commercial and non-commercial systems, such as city sound monitoring, street lights, networked electrical power meters, industrial monitoring, radiation monitoring, construction site monitoring, alarm systems, remote house monitoring, and so on.

For more information, see the Contiki website:

http://contiki-os.org