Commit Graph

121 Commits (d3fdca770f60e207521868deeda5280c3aa0f1d3)

Author SHA1 Message Date
Austin Blackstone 0278260cad added BLoD functionality to all Silicon Labs boards. Added #define to all device.h files and a disable_irq() exception in common/board.c because the wait function is implemented in a interrupt for both NRF and SiLabs boards 2015-08-11 11:32:11 -05:00
neilt6 8d81cb49e1 [mbed] Modified MBED_ASSERT to use error()
Modified mbed_assert_internal() to call error() with the assertation
message instead of fprintf() followed by mbed_die(). This allows
assertation failures to be caught by custom error() functions that
replace the default weak definition.
2015-07-13 10:20:11 -06:00
0xc0170 3ae6d045ee Serial - constness for tx 2015-06-09 10:02:27 +01:00
0xc0170 e7feba4e21 I2C - costness for tx buffer 2015-06-09 09:34:48 +01:00
0xc0170 614c5539bc SPI - constness for tx buffer 2015-06-08 16:39:42 +01:00
0xc0170 1cef3ffb2d Merge branch 'master' of https://github.com/sg-/mbed into sg--master
Conflicts:
	libraries/mbed/common/SPI.cpp
2015-05-27 13:09:05 +01:00
0xc0170 f0038f84e8 Timer/Ticker - fix constness of the data argument/member 2015-05-21 08:47:23 +01:00
Martin Kojtal be1f88a056 Asynch API for mbed (SPI, I2C, Serial) and low power ticker
New LowPowerXXX classes - low power ticker
SPI, I2C, Serial - asynch methods
2015-04-27 10:55:44 -07:00
Jeremy Brodt 77d3559f88 Fixed and suppressed compiler warnings. 2015-04-23 12:36:07 -05:00
sg- 70fad08a4c Update SPI API documentation for hardware driven SS. Modify all target spi_api.c implementations. spi_init ssel parameter was used incorrectly to determine master/slave mode rather than enable hardware driven SS (seems to be due to legacy copy paste). Remove duplicate copy paste code of initialization in spi_init that is done by constructor (SPI and SPISlave) 2015-04-10 00:38:27 -05:00
ohagendorf a70bdc5c00 [TARGET_STMF4] reorg hal for DISCO_F407VG
Removing pin configuration from analogin_api, analogout_api and
pwmout_api (hal function, used by every STM32F4 target) to the target
specific files.
2015-04-09 11:21:44 +02:00
Rohit Grover d1d900d30c replace AppTimer on Nordic's nRF5x with a driver for RTC1.
AppTimer was an overhead; and it was also reseting the RTC from time to time.
2015-03-20 09:18:13 +00:00
Martin Kojtal 0531ad4544 Merge pull request #926 from Sissors/lookmartinImadeanewbranch
Add option to modify RTC source for time functions (using func pointers)
2015-03-09 11:16:52 +00:00
Rohit Grover f8fd702c09 rearranging some code so that state is tidied up before calling us_ticker_set_interrtupt() 2015-03-05 11:49:47 +00:00
Martin Kojtal 38514db08e Merge pull request #936 from jeremybrodt/issue934
Fix issue #934: Handled condition when head is NULL.
2015-03-03 08:09:58 +01:00
Sissors 4a184d980e Made attach_rtc with disabled irqs 2015-02-28 12:21:55 +01:00
Jeremy Brodt 6bc00fda8a Improved handling of NULL condition. 2015-02-27 10:01:30 -06:00
Martin Kojtal 43d7f387ec Merge pull request #933 from masaohamanaka/master
RZ/A1H - Modify to support GCC and Fix some bugs of driver.
2015-02-27 10:55:20 +01:00
Jeremy Brodt b53b67ecad Issue #934: Handled condition when head is NULL. 2015-02-26 08:50:09 -06:00
Masao Hamanaka 74220c7896 Correct the formatting of #if. 2015-02-26 19:46:02 +09:00
Masao Hamanaka 0365977217 Modify and add a file to support GCC. (mbed common codes) 2015-02-26 16:35:45 +09:00
Jeremy Brodt 7020c50c56 Added function to get the timestamp of the next us_ticker event. 2015-02-24 14:25:43 -06:00
Sissors f0d04f5360 [API] Added option to modify RTC source
Initially from Karls question here:
http://developer.mbed.org/questions/6337/setTime-and-time-exported-with-__weak-fo/#answer6545?compage=1#c15936.
Currently the C time functions only work with internal RTC. Sometimes
you either want to use an external one, or your target does not even
have an internal RTC. I added function attach_rtc(...) where the default
functions can be overridden at runtime.
2015-02-22 13:19:02 +01:00
0xc0170 15ee1ca2dc Fix for #908, exit req std namespace 2015-02-16 10:11:54 +00:00
Adam Green 06495658ce Move exit override to retarget.cpp
I moved the exit handler from exit.c to retarget.cpp where the rest of
the standard C library retargetting routines are found.  The exported
makefiles already explicitly link in retarget.o but not exit.o
When building with the GNU toolchain, it is safest to link in the
object file directly for retargetting routines so that GNU linker has
to use these versions of the routines.

Testing:
I have only tested this change with GCC_ARM. It should really be
tested with more toolchains before getting merged.
2015-02-12 00:14:26 -08:00
Jun-Ru Chang 7ee7fab4ee Include missing header file
MBED_ASSERT was defined in mbed_assert.h.

Signed-off-by: Jun-Ru Chang <jrjang@gmail.com>
2015-01-28 18:57:19 +08:00
0xc0170 453e81fd4c Merge branch 'pinology' of https://github.com/PrzemekWirkus/mbed into PrzemekWirkus-pinology
Conflicts:
	libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.c
2015-01-27 14:15:48 +01:00
0xc0170 1fca34a068 HAL - NRF51822 - us ticker fix for the #839
There was a project header file which does not exist in mbed SDK, neither
some defines used from it most probably. This commit reverts those parts.
2015-01-26 15:32:14 +01:00
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
Rohit Grover c8b9b9c2f5 add a declaration for the signed version of timestamp_t; used in a comparison 2015-01-12 07:58:31 +00:00
Przemek Wirkus d068a2b479 Replaced const define with hardcoded bus size of 16 2015-01-06 08:42:49 +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 8690af3b7b Simple indent 2014-12-19 14:53:35 +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
GustavWi bd6836396b Moved IAR serial differences to retarget.cpp 2014-12-09 14:30:34 +01:00
GustavWi 9909e7ca56 Fixed IAR serial fgets fgetc 2014-12-08 13:12:37 +01:00
ohagendorf f37a45d3b5 Name of exit function in exit.c
Change the name of the exit function to _exit as suggested in clib
documenation for all gcc_arm toolchains (GCC_ARM and CoIDE)
2014-11-16 17:43:42 +01:00
Ned Konz e6ae0a7e02 Ensure that IG (Global) bit is reset in MAC address for K64F and others
See IEE 802.3-2002, Section 3.2.3(b)
2014-11-06 09:48:32 -08:00
Takayuki Kurosawa 33a843cf93 Merge remote-tracking branch 'upstream/master'
Conflicts:
	workspace_tools/targets.py
2014-11-06 16:19:35 +09:00
Rohit Grover 63cad2a60b Potential fix for #646 2014-11-04 15:39:48 +00:00
Takayuki Kurosawa cff29fd8d8 [RZ/A1H] first release - change InterruptManager.cpp for CA9
RZ/A1H has GIC instead of NVIC. InterruptManger assumes
NVIC only, so temporarily ifdef guarded in order to pass
the compilation.
2014-10-24 11:46:02 +09:00
Takayuki Kurosawa c7c1613d56 Revert "[RZ/A1H] mbed-RZ first release"
This reverts commit b78ac75c00.
2014-10-24 10:14:30 +09:00
Takayuki Kurosawa b78ac75c00 [RZ/A1H] mbed-RZ first release
including
- mbed cmsis  for RZ/A1H
- mbed hal    for RZ/A1H
 - GPIO, Timer, I2C, SPI, InterruptIn
- CA9 related files
- RTOS support files for RZ/A1H
2014-10-23 17:49:35 +09:00
Rohit Grover de35d0c84e fix for the case where there are multiple tickers firing at nearly the same time 2014-10-20 09:49:28 +01:00
Sissors 0ea849e7ff [API] Timer-start behavior (bug)fix
Only start the timer when it is not running currently. In old behavior
the current slice-time was discarded, now multiple starts have no
effect.
2014-10-10 21:25:09 +02:00
Bogdan Marinescu a2853d2aa4 Revert "Fixed crash issue in RawSerial::printf for uARM"
This reverts commit d05b7f51d8.

I am reverting this commit because:

- it uses alloca(), which is a dangerous function
- it uses vsprintf instead of vsnprintf, which can lead to a stack overflow.

Until we find a better solution, this might do more bad than good, so I am reverting it.
2014-09-12 10:47:34 +01:00
Rohit Grover fedb7f02c0 use timestamp_t for Ticker::_delay 2014-08-29 17:02:39 +01:00
Rohit Grover ab17cc71dc minor simplification of a reused expression 2014-08-29 17:02:39 +01:00