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
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
Rohit Grover
88e2e4e369
add a minor comment to explain some complex branching in us_ticker_irq_handler()
2014-08-29 17:02:39 +01:00
Rohit Grover
ac11358455
add a missing call to us_ticker_disable_interrupt from us_ticker_remove_event.
2014-08-29 17:02:39 +01:00
Toyomasa Watarai
d05b7f51d8
Fixed crash issue in RawSerial::printf for uARM
...
Fixed crash issue in RawSerial::printf() function for microlib platforms
since microlib doesn't fully support C99 functions such as vsnprintf().
2014-08-25 16:13:43 +09: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
Alexander Valitov
cde156cadc
Added implementation for "rename" on FAT file system
2014-08-13 10:20:31 +01:00
Andreas Løve Selvik
f3de4bc529
Bugfix: Make redirected stdio write initialize UART
...
Calling a scanf before the first printf would end up calling serial_getc without initializing the UART.
2014-07-29 11:47:46 +02:00
fritzprix
8c7e738263
- fix some type mismatch which causes error in build time
2014-07-17 23:38:34 +09: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