aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/device
Commit message (Collapse)AuthorAgeFilesLines
* HMC5883 post merge cleanupLorenz Meier2014-07-081-2/+2
|
* SPI: make _bus protectedAndrew Tridgell2014-07-081-1/+3
| | | | | this allows runtime use of internal/external bus to determine if DRDY should be used on the L3GD20
* CDev: Fixed printf format specifierLorenz Meier2014-03-161-1/+1
|
* Fixed return valueLorenz Meier2014-01-141-0/+1
|
* Framework to support disabling publications via IOCTLLorenz Meier2014-01-123-3/+14
|
* device: added register_class_devname() APIAndrew Tridgell2013-12-102-0/+58
| | | | | this allows drivers to register generic device names for a device class, with automatic class instance handling
* SPI: added set_frequency() APIAndrew Tridgell2013-11-302-0/+17
| | | | | this allows the bus speed to be changed on the fly by device drivers. This is needed for the MPU6000
* Use the generic device::SPI locking strategy.px4dev2013-09-122-5/+40
|
* ringbuffer: converted to item_size unitsAndrew Tridgell2013-09-121-20/+22
| | | | this fixes a number of indexing bugs
* Rework the ringbuffer class so that it's not templated, and refactor its ↵px4dev2013-09-121-109/+269
| | | | clients so they aren't dancing around the linker anymore.
* ringbuffer: added resize() and print_info() methodsAndrew Tridgell2013-09-121-2/+42
| | | | this simplifies the drivers
* ringbuffer: added force() and use lockless methodspx4dev2013-09-121-16/+120
| | | | | this adds force() which can be used for drivers wanting consumers to get the latest data when the buffer overflows
* Make it possible to create a cdev without automatically creating a device node.px4dev2013-08-041-8/+8
|
* Add size and flush methods to the ringbuffer class.px4dev2013-08-041-5/+16
|
* Add direct-access methods to the base Device class, so that there's a common ↵px4dev2013-08-044-23/+82
| | | | | | | | way of talking to drivers regardless of which of the specialised classes they derive from. Make the Device destructor public and virtual, so that arbitrary devices can be deleted. Likewise for classes that derive from it. Make Device::init public so that arbitrary devices can be initialised after being returned by factories.
* Simple ring-buffer template class, because re-implementing the wheel in ↵px4dev2013-08-031-0/+192
| | | | every driver is silly.
* Merged with masterLorenz Meier2013-05-091-0/+9
|
* Moved last libs, drivers and headers, cleaned up IO buildLorenz Meier2013-04-289-0/+1804