Mike Fiore
812d6294fc
[mbed][MTS_DRAGONFLY_F411RE] add DCD, DTR, DSR, and RI pin names for radio & external port
2015-03-25 11:41:30 -05:00
Mike Fiore
506ead1387
[mbed][MTS_DRAGONFLY_F411RE] add pin names for radio RTS/CTS and external serial RX/TX/RTS/CTS
2015-03-25 11:41:30 -05:00
Jesse Gilles
101141f55f
[mbed][MTS_MDOT_F411RE] change STDIO_UART to UART_1
2015-03-25 11:41:30 -05:00
Jesse Gilles
3876957155
[mbed][MTS_MDOT_F411RE] update pin names
2015-03-25 11:41:29 -05:00
dinau
7a68bd3b78
[DISCO_F100RB] Support HAL driver
2015-03-25 21:31:43 +09:00
Masao Hamanaka
85bc418da2
Change terminal settings.
...
Change terminal settings for new GR-PEACH board(board update).
2015-03-23 20:00:08 +09:00
ohagendorf
608f7b3685
[NUCLEO_L152RE] reorg hal
...
no code changes, only new file/path structure
2015-03-23 02:10:25 +01:00
ohagendorf
88ee51cecd
[STM32F3xx] reorg hal
...
- build.py -t GCC_ARM -m xxx OK
- make.py -t GCC_ARM -p 26 -m xxx OK
2015-03-23 02:00:32 +01:00
ohagendorf
5a2cd98407
[NUCLEO_F302R8] reorg hal part II
2015-03-23 01:37:56 +01:00
ohagendorf
42408ce533
[DISCO_NUCLEO_F334xx] reorg hal part II
2015-03-23 01:32:32 +01:00
ohagendorf
5e01a14bf1
[DISCO_F303VC] reorg hal part II
2015-03-23 01:01:30 +01:00
ohagendorf
8176b7c773
[DISCO_F303VC] reorg hal part i
2015-03-22 16:35:00 +01:00
Sissors
e74074eba8
[HAL][K20XX/KLXX] Fixed deepsleep power consumption when AnalogIn is used
...
The power consumption was reported by Paul Staron to be 100uA higher
when an AnalogIn was used previously.
Problem 1 is that 40uA was used by the async ADC clock, which is never
actually used, so it is disabled. Problem 2 is that setting it for high
speed mode increased it by another 60uA while in deepsleep. This
currently seems to me to be possibly a bug in the design, but the
workaround is checking if this is the case before going to deepsleep,
and if yes, disable it. Afterwards it is re-enabled.
2015-03-22 15:15:40 +01:00
ohagendorf
20221e1376
[DISCO_F334C8] reorg hal part I
2015-03-21 23:50:21 +01:00
ohagendorf
5c27455a81
[NUCLEO_F334R8] reorg hal part I
2015-03-21 23:30:16 +01:00
ohagendorf
5e9b323cec
[NUCLEO_F302R8] reorg hal part I
2015-03-21 23:09:44 +01:00
ohagendorf
d199416792
[NUCLEO_F303RE] reorg hal
2015-03-21 20:32:47 +01:00
Wim
e6e51c3375
Update device.h
...
Enabled I2CSlave
2015-03-21 15:26:57 +01:00
Wim
153d03cb2b
Update device.h
...
Enabled I2CSlave
2015-03-21 15:26:20 +01:00
Wim
52be993683
Update i2c_api.c
...
Replaced I2C ROM call by direct calls to I2C engines. The ROM code has some bugs and does not allow support for the mbed I2CSlave methods. The Slave methods have been added same as for LPC812.
2015-03-21 15:25:13 +01:00
Wim
8cfb41f56c
Update us_ticker.c
2015-03-21 15:10:39 +01:00
Wim
3e76f8cf2a
Update us_ticker.c
...
Fixed hardcoded MRT_Clock_MHz so that the code will also work at a SystemCoreClock different from 30MHz. Optimized time calculations for us_ticker_read. Same modifications as done previously for LPC812.
2015-03-21 14:59:21 +01:00
Rohit Grover
79a05aa39c
fixes #984 : updating to v7.1 of the Nordic SDK.
...
Re-organized file layout to match that from the SDK.
2015-03-20 14:46:54 +00: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
ec8dd1d2c2
Merge pull request #972 from bcostm/master
...
NUCLEO_L073RZ - Add new target
2015-03-20 09:06:37 +00:00
Rohit Grover
1108cf9526
going back to the previously successful logic to create a 64-bit timestamp.
2015-03-17 14:39:58 +00:00
0xc0170
b75b7a456e
Nucleo F103RB - gpio_is_connected method readdition
2015-03-17 10:34:52 +00:00
Rohit Grover
543e8c89d0
remove un-necessary comment block.
2015-03-17 10:07:14 +00:00
Rohit Grover
2376a58193
use 64-bit RTC virtual counter (with 56-bit precision) to compute us-ticker value.
2015-03-17 09:40:53 +00:00
Rohit Grover
c619bbbedf
add a cast for correctness.
2015-03-16 14:05:44 +00:00
Rohit Grover
35eb4b5250
use rtc1_getCounter64() as it should have been from the beginning.
2015-03-16 14:05:05 +00:00
Rohit Grover
f32efaee90
cleanup for a comment block.
2015-03-16 14:04:23 +00:00
Rohit Grover
712b53ff64
add rtc1_getCounter64()
2015-03-16 14:04:00 +00:00
Rohit Grover
8febc5aa93
replace a use of __INLINE with inline
2015-03-16 14:01:00 +00:00
Rohit Grover
71407656d2
trying a simplification to the math which computes RTC callback time.
2015-03-16 13:45:33 +00:00
bcostm
7aee02aa12
[NUCLEO_L073RZ] Add hal files
2015-03-16 14:42:22 +01:00
Rohit Grover
b20dc8e4d4
another trivial change to a comment; fixed a typo.
2015-03-16 12:55:10 +00:00
Rohit Grover
ea4537df7d
shortened the comment in us_ticker_set_interrupt().
2015-03-16 12:48:54 +00:00
Martin Kojtal
cc6830bf9e
Merge pull request #965 from bcostm/master
...
NUCLEO_L053R8/DISCO_L053C8 - hal files refactoring
2015-03-16 09:36:06 +00:00
Martin Kojtal
38e1c7c94b
Merge pull request #969 from mazgch/master
...
Update pin mapping form ODIN and C029
2015-03-13 10:37:27 +00:00
mazgch
0bde33162d
updated pin mapping
2015-03-13 11:00:29 +01:00
bcostm
de420415a7
Merge branch 'master' of https://github.com/mbedmicro/mbed
2015-03-13 10:14:56 +01:00
Martin Kojtal
0518541815
Merge pull request #964 from 0x4E656F00/master
...
Fix ksdk mcu HAL - stopbit
2015-03-12 12:49:30 +00:00
Martin Kojtal
fb702edaa5
Merge pull request #957 from star297/master
...
Teensy3.1 updates + USBDevice Teensy3.1 Target addition.
2015-03-12 09:26:37 +00:00
bcostm
07a46c0d41
[STM32L0] Add missing common hal file (refactoring)
2015-03-12 10:21:58 +01:00
bcostm
d956c1a496
[NUCLEO_L053R8] Add specific hal files (refactoring)
2015-03-12 10:20:56 +01:00
bcostm
e2cfc32459
[DISCO_L053C8] Add specific hal files (refactoring)
2015-03-12 10:20:03 +01:00
bcostm
843423e4fd
[STM32L0] Add common hal files (refactoring)
2015-03-12 10:19:14 +01:00
bcostm
e636ca4cad
[NUCLEO_L053R8/DISCO_L053C8] Remove hal files (refactoring)
2015-03-12 10:18:08 +01:00
Martin Kojtal
39ab67b8ce
Merge pull request #958 from Sissors/k20pwm
...
K20DXX PWM fix
2015-03-12 09:18:07 +00:00
0x4E656F00
1519466bc8
Update serial_api.c
...
Fix number of stop bits in serial_format()
2015-03-11 17:02:15 -04:00
Paul Staron
4196e0530d
K20xx sleep.c update
...
Utilised Header file mask defines.
Tested InterruptIn and timer WakeUp
2015-03-10 22:53:59 +00:00
bcostm
2eb529ef2d
[NUCLEO_L053R8] Alignment with STM32Cube driver + preparation for future L0 devices
2015-03-10 14:06:30 +01:00
bcostm
1561dd146a
[STM32L053xx] Update adc structure fields
...
Due to a change in the STM32Cube driver.
2015-03-10 13:20:20 +01:00
Sissors
1ffa1baf8a
Modified some comments
2015-03-09 18:07:21 +01:00
Martin Kojtal
4b74c54118
Merge pull request #953 from bcostm/master
...
NUCLEO_F103RB - Migration to STM32Cube driver
2015-03-09 11:48:52 +00:00
bcostm
6c24fef341
Merge branch 'master' of https://github.com/mbedmicro/mbed
2015-03-09 10:51:41 +01:00
Paul Staron
5a803e8ad4
Teensy3.1 deepsleep update
...
Added extra code for Teensy3.1 deepsleep wake up restore function.
For some reason the Teensy3.1 would not wake from deepsleep, problem with restoring clock set ups. Possibly due to the higher clock frequencies requiring additional PLL locking time.
Most of the SystemInit() code was required. Teensy3.1 has no debug facilities, USBSerial is not usable during deepsleep/wakeup processes. Unless anyone has a better option.
Fully tested with InterruptIn and soft WakeUp.
Deepsleep is not really viable for this platform as it is not possible to isolate the interface chip from the power supply, 2.5mA at best in deepsleep mode.
2015-03-07 23:18:26 +00:00
Paul Staron
2dfb1b743f
Added Teensy3.1 32KHz MCU loading capacitors.
...
External loading capacitors not fitted to the Teensy3.1 PCB, Added 20pF MCU loading capacitors for 32KHz crystal.
2015-03-07 22:49:02 +00:00
Paul Staron
e027a8e224
Update PinNames.h
...
Pin name corrections to match platform images.
2015-03-07 22:29:12 +00:00
Sissors
095ebd03e3
[HAL] K20DXX PWM fix
...
The old code for the K20 PWM had an issue where calling for example
pwm.period and pwm.write after each other resulted in the pwm.write
function setting the pulsewidth with the value of the old pwm period.
This makes sure it waits until the latest pwm period is written before
it will do so.
2015-03-07 22:06:01 +01:00
Mihail Stoyanov
46e1601852
Added bootloader hex file for all nRF51822 based platforms. Added NRF51822_BOOT and NRF51_DK_BOOT platforms so bootloader is included in the compiled program. This is required for FOTA.
2015-03-06 18:54:14 +02:00
bcostm
ba2d69e5a4
[NUCLEO_F103RB] Update all hal files (STM32Cube compliancy)
2015-03-06 10:11:35 +01:00
Rohit Grover
be71348f20
remove include for app_timer.h
...
need to add stdbool.h
2015-03-05 17:00:27 +00:00
Rohit Grover
e01cb0ae84
use a virtual 64-bit timestamp to avoid wrap-around issues. gosh!
2015-03-05 11:49:48 +00:00
Rohit Grover
aaf998f5cf
fix minor typo in the declaration of the macro RTC_UNITS_TO_MICROSECONDS()
2015-03-05 11:49:48 +00:00
Rohit Grover
0f60237a88
switch to tracking overflowCount instead of overflowBits.
2015-03-05 11:49:48 +00:00
Rohit Grover
e927c5bf27
rename INVOKE_CALLBACK() as invokeCallback()
2015-03-05 11:49:47 +00:00
Rohit Grover
47db597822
replace __INLINE with inline
2015-03-05 11:49:47 +00:00
Rohit Grover
eb9f2ce77f
don't invoke callbacks from set_interrupt().
2015-03-05 11:49:47 +00:00
Rohit Grover
20c6611548
remove dependencies from nRF51822
2015-03-05 11:49:47 +00:00
Rohit Grover
70f91c10d5
white space diff.
2015-03-05 11:49:47 +00:00
Rohit Grover
5afdc68620
INVOKE_CALLBACK() is now a static inline instead of a macro.
2015-03-05 11:49:47 +00:00
Rohit Grover
ca9050e1ef
updating the comment header for set_interrupt() with a note.
2015-03-05 11:49:47 +00:00
Rohit Grover
7c0e814bd4
introduce FUZZY_RTC_TICKS for comparsions
2015-03-05 11:49:47 +00:00
Rohit Grover
5cf0f29cfc
minor white-space and comment improvements.
2015-03-05 11:49:47 +00:00
Rohit Grover
97e7fbbc8b
minor improvement to the wording for the comment header for set_interrupt()
2015-03-05 11:49:47 +00:00
Rohit Grover
42f801cc27
If set_interrupt() is used to setup an interrupt for a time in the past, then the callback is invoked right-away.
2015-03-05 11:49:46 +00:00
Rohit Grover
ac8f3e5522
add a helper method: INVOKE_CALLBACK()
2015-03-05 11:49:46 +00:00
Rohit Grover
2e892c6c0d
rename callbackTime to newCallbackTime
2015-03-05 11:49:46 +00:00
Rohit Grover
90354c0a23
check for instantaneous callback before checking for repeat callback.
2015-03-05 11:49:46 +00:00
Rohit Grover
b7cd6b6ae8
add a comment block for us_ticker_set_interrupt()
2015-03-05 11:49:46 +00:00
Rohit Grover
2e8c48c97e
minor white space diff
2015-03-05 11:49:46 +00:00
Rohit Grover
9c9553cfd7
set_interrupt: if callbackTime is NOW, invoke handler.
2015-03-05 11:49:46 +00:00
Rohit Grover
7d688ad607
set_interrupt: short-circuit the setting of the same interrupt.
2015-03-05 11:49:46 +00:00
Rohit Grover
54dc3c1dcf
reset us_ticker_callbackPending when disabling interrupts.
2015-03-05 11:49:46 +00:00
Rohit Grover
53d2b152c4
us_ticker_set_interrupt() should set an interrupt for the given timestamp even if there's a pending interrupt.
2015-03-05 11:49:46 +00:00
Rohit Grover
8c21ef208c
white space diffs.
2015-03-05 11:49:46 +00:00
Rohit Grover
5906372a58
remove m_rtc1_running; made redundant by us_ticker_inited.
2015-03-05 11:49:46 +00:00
Rohit Grover
a13e31d6b0
remove app_timer.c
2015-03-05 11:49:46 +00:00
Rohit Grover
5a0f3b808c
MICROSECONDS_TO_RTC_UNITS() should round-up
2015-03-05 11:49:45 +00:00
Rohit Grover
b1575db8b3
rtc1_stop() doesn't need to be static.
2015-03-05 11:49:45 +00:00
Rohit Grover
2ee04fde1f
second round of changes at replacing app_timer with RTC
2015-03-05 11:49:45 +00:00
Rohit Grover
e6a7c6f648
attempting to replace appTimer
2015-03-05 11:49:45 +00:00
mazgch
67ad872b47
Merge branch 'master' of https://github.com/mbedmicro/mbed
2015-03-03 16:10:25 +01:00
mazgch
1c90460566
changed pin locations
2015-03-03 16:09:38 +01:00
0xc0170
2a1d12bcd4
Fix #940 - k64f a4/5 pinnames swap
2015-03-03 08:16:09 +01:00
Brian Daniels
db6792f7cc
Renamed sleep implementation file and added DEVICE_SLEEP #defines
2015-02-26 11:08:52 -06:00
Brian Daniels
96c0ae58f0
Added sleep and deepsleep for LPC11U68. Needs testing on board
2015-02-26 10:44:47 -06:00
Masao Hamanaka
d7bc024a6a
Fix a bug that Ticker driver has the potential to loop infinitely.
...
Ticker driver has the potential to loop infinitely.
Because, running "us_ticker_irq_handler()" from "us_ticker_set_interrupt()" before "obj->next = p;" of "us_ticker_insert_event()" is executed.
2015-02-26 16:36:30 +09:00