Commit Graph

70 Commits (07ed4ec541befacdba1c38bf057c7c2209aa9d00)

Author SHA1 Message Date
Przemek Wirkus 8c50826562 Removed extra checks for operator[] and replaced them with MBED_ASSERT for cleaner code 2015-01-26 08:47:44 +00:00
Przemek Wirkus 7d54c82331 * Changed Bus operator[]() parameter from unsigned int to int to match mbed code
guidelines.
* Uncommented assertions in operators and added check for operator[] index < 0.
* Moved one operator from private to public, this was a typo thing.
2015-01-06 08:33:24 +00:00
Przemek Wirkus 56e7514495 Modiffied _ns_mack member's comment in Bus classes (BusIn, BusOUt, BusInOut) 2014-12-19 14:59:06 +00:00
Przemek Wirkus 11c5955959 Simple indent 2014-12-19 14:48:39 +00:00
Przemek Wirkus 7720989e20 Added operator[] and mask() function to BusInOut
This change follows changes in BUsIn and BusOUt API
2014-12-19 14:45:32 +00:00
Przemek Wirkus db7e92853b Added mask() function to BusIn and BusOut components
You can use BusIn::mask() or BusOut::mask() to get binary mask of all connected and NC pins in bus
2014-12-19 14:37:00 +00:00
Przemek Wirkus c4fc8e68eb Added operator[] for BusIn and BusOut to add access to particular bit in random-iterator fashion 2014-12-19 14:06:46 +00:00
Przemek Wirkus a53cd59b51 Added is_connected() method to Digital I/O classes APIs (DigitalIn, DigitalOut and DigitalInOut 2014-12-19 13:31:54 +00:00
GustavWi bd6836396b Moved IAR serial differences to retarget.cpp 2014-12-09 14:30:34 +01:00
Bogdan Marinescu d8f6c47dde Bumped build number 2014-11-25 13:48:38 +00:00
0xc0170 a94eb663dc API: mbed header file - mbed lib revision - 91 2014-10-29 10:54:57 +00:00
0xc0170 823e012597 API: mbed header file - mbed lib revision - 90 2014-10-28 16:28:17 +00:00
Bogdan Marinescu 05aeadd8a9 Bumped revision number 2014-09-12 16:14:56 +01:00
Rohit Grover 958aa2488b changes proposed from Martin's review 2014-08-29 17:02:40 +01:00
Rohit Grover 6daf3ac52a add a destructor for Ticker. 2014-08-29 17:02:40 +01:00
Rohit Grover fedb7f02c0 use timestamp_t for Ticker::_delay 2014-08-29 17:02:39 +01:00
Rohit Grover 675ddde2f4 introduce a timestamp_t to track timeouts for TimerEvents.
The previous type used for this purpose was unsigned int, which was both
un-portable and liable to wrap-around.
2014-08-29 17:02:39 +01:00
Bogdan Marinescu 34465d06a7 Bumped SDK revision number 2014-08-15 16:19:19 +01:00
Martin Kojtal a681b14416 Change "error.h" to "mbed_error.h" to avoid conflicts with 3rd party code 2014-08-15 16:19:18 +01:00
Martin Kojtal 09251dd3ba Revert "error.h -> mbed_error.h" 2014-07-08 14:04:50 +02:00
0xc0170 f7f77392d9 error header file rename to mbed_error.h 2014-07-04 08:05:49 +02:00
Bogdan Marinescu f04e12eeda Bumped revision number 2014-07-02 12:53:38 +01:00
Bogdan Marinescu 0b5a92fbc5 Merge pull request #352 from 0xc0170/dev_error_header_inclusion
Error header inclusion in the error code file - fix.
2014-06-12 10:07:36 +01:00
Bogdan Marinescu c694da0543 Merge branch 'dev_error_assert' of git://github.com/0xc0170/mbed into 0xc0170-dev_error_assert
Conflicts:
	libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/serial_api.c
	workspace_tools/toolchains/arm.py
2014-06-11 15:50:34 +01:00
0xc0170 2e05e5cc07 Error header inclusion in the error code file - fix.
- weak declarations removal from code files
2014-06-11 14:23:55 +01:00
0xc0170 9017b27778 mbed common - trailing white spaces removal 2014-05-29 15:11:05 +02:00
0xc0170 3ce40e2f75 License headers for new assert files. 2014-05-29 08:59:19 +02:00
0xc0170 e70c8daf85 mbed assert - guard macro correction 2014-05-28 16:41:29 +02:00
0xc0170 324407b59a assert rename to mbed_assert header file 2014-05-28 16:38:00 +02:00
0xc0170 be43ebc182 MBED_ASSERT - mbed assert implementation 2014-05-28 15:39:44 +02:00
Rohit Grover 6eb6b90fe9 provide a default implementation for SerialBase destructor 2014-05-26 18:28:04 +01:00
Rohit Grover ca965f836b removing virtual destructor for CAN_Message;
it could be compiled using a C compiler where
the destructor will not make sense.
2014-05-26 18:27:06 +01:00
Rohit Grover f65b7d9077 removing warnings discovered by using -Weffc++ flag for gcc 2014-05-26 18:04:46 +01:00
Bogdan Marinescu eb0ab77fdb Bumped revision number 2014-05-19 17:08:40 +01:00
Bogdan Marinescu af534d61c0 Bumped revision number 2014-04-28 15:56:57 +01:00
Sissors fc0a2cf35e Mode added to BusIn + allow creation of NC pins
Now BusIn can also use PullUp, etc, instead of only BusInOut.

If the pin is NC, it does get to the init, but all write/mode functions
are disabled. This is how it used to be in the old gpio version. Quite
some libraries allow users to make pins NC, and they are all locking up
with the current mbed version. This is far from a perfect solution, but
more a temporary fix.
2014-04-03 09:22:51 +02:00
neilt6 e57e69c772 Changed error(...) to a weak function
Made error(...) a weak function so that it can be overridden in
production projects. Also fixed several serial_api.c files that required
stdlib.h, but were getting it from error.h.
2014-03-31 10:27:14 -06:00
Bogdan Marinescu ed8481eb97 Updated library version 2014-03-19 18:08:26 +00:00
Bogdan Marinescu 423ddcb86e Merge pull request #198 from mazgch/gpio_api
proposed change of gpio_api (new update pull request)
2014-03-10 11:15:59 +00:00
Emilio Monti 955bd9a5c9 Update MBED_LIBRARY_VERSION to latest revision 2014-03-06 09:55:02 +00:00
mazgch 4e53124e70 fix more tabs to spaces 2014-03-04 15:07:30 +01:00
mazgch c1d3cb5aa3 address concern from watarai-san about code size and performance by creating a set of common initialization functions 2014-03-04 14:09:41 +01:00
mazgch be8bca4aa0 proposed change of gpio_api 2014-03-04 11:27:30 +01:00
0xc0170 dc19dcbb94 fix - KL46Z cmsis header (v2.2), shared interrupt PORTCD
- Ports C and D sharing same interrupt vectors
	- KL46Z CMSIS header update
	- InterruptIn methods irq_disable/enable comment update
2013-12-30 12:19:24 +01:00
Bogdan Marinescu 5f62a399db Added preliminary printf() support to RawSerial 2013-12-19 15:05:17 +02:00
Bogdan Marinescu c3d4d3079f Added DEVICE_SERIAL_FC as an indicator for the flow control implementation 2013-12-11 10:26:18 +02:00
Bogdan Marinescu fbeb52d613 Added RTS/CTS flow control
Currently implemented only for LPC1768. On this platform, when hardware
flow control is not directly supported, it will be emulated.
Also added "not_implemented.c" as a placeholder for various HAL functions
that might not be implemented on all platforms (in this particular case,
serial_set_flow_control). These are weak implementations that default to a
"not implemented" error message.
2013-12-04 19:42:11 +02:00
Bogdan Marinescu 256f70fffc Merge remote-tracking branch 'origin/master' 2013-11-26 17:14:46 +02:00
Bogdan Marinescu 3c0a8b633f Provide generic pinout defines
This commit adds generic peripheral names to various mbed enabled
boards, to make it easier to write portable code amongst various
mbed boards.
2013-11-26 17:12:36 +02:00
mazgch 2b7d2bb343 fix the documentation to match implementation 2013-11-21 11:24:58 +01:00