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
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
0xc0170
d6c10d1cd2
mbed interface header inclusion in board.c
2014-06-12 09:46:24 +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
be43ebc182
MBED_ASSERT - mbed assert implementation
2014-05-28 15:39:44 +02:00
0xc0170
6a84ffa433
Merge branch 'master' into dev_error_assert
...
Conflicts:
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D5M/spi_api.c
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_api.c
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/analogin_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/gpio_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/i2c_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/pwmout_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/serial_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/spi_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/i2c_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/i2c_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/i2c_api.c
2014-05-28 09:53:51 +02:00
Rohit Grover
f65b7d9077
removing warnings discovered by using -Weffc++ flag for gcc
2014-05-26 18:04:46 +01:00
0xc0170
d843d56c08
[ALL TARGETS] error replaced by assert for preconditions
2014-05-20 14:20:37 +01:00
Bogdan Marinescu
4d4ac9cd81
Fixed LPC11U68 flow control issue
2014-05-15 17:12:28 +01:00
0xc0170
09fe00f041
gpio and pinmap - asserts for NC as parameters (not init), abort retarget
...
- retarget - abort - calls mbed_die
- asserts added to gpio mbed hal for all targets
2014-05-15 15:30:14 +01:00
Bogdan Marinescu
65be1ee4a1
Merge pull request #247 from Sissors/master
...
Mode added to BusIn + allow creation of NC pins
2014-04-14 11:23:24 +01:00
sg-
b64e32299f
add fflush to exit
...
enable DEVICE_STDIO_MESSAGES on k64f
remove all line endings from error messages throughout mbed sdk (all targets)
2014-04-09 16:24:13 -05:00
sg-
e20949093c
added '\n' to error("") calls for all freescale targets and common source
2014-04-09 01:14:41 -05:00