Nakamura, Yuuichi
9db5d2aeea
Fix nxstyle warnings
2020-07-13 00:46:55 -05:00
Nakamura, Yuuichi
f392d246d3
Fix note driver initialization
2020-07-13 00:46:55 -05:00
Xiang Xiao
dc55968678
arch/sim: Don't construct global C++ objects before main
...
otherwise the crash will happen because NuttX doesn't initialize yet
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Icc3f3fcd842a315bc68ae436d7a7a04aca1fc546
2020-07-11 15:06:09 -03:00
Xiang Xiao
19aaf7b357
arch/sim: Move the generation of nuttx-names.dat into nuttx target
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I04c612a56caee170742b07f87cea1b7feb4078c5
2020-07-11 15:06:09 -03:00
Xiang Xiao
f36bf5e079
arch/sim: Avoid build nuttx.rel and cleanrel concurrently
...
make can't guarantee the build order of prerequest with -jn where n > 1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I772fcc0775d15b385f28fc0abeeff383b3a52622
2020-07-11 15:06:09 -03:00
chao.an
159053ab62
sim/c++: correct the compile flags
...
fix the following linker error:
nuttx.rel:(.eh_frame+0x93): undefined reference to `__gxx_personality_v0'
Change-Id: I94f43a15275194d42199c91f276e8848ad5189f6
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-11 15:06:09 -03:00
Xiang Xiao
9dff16e0e4
fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ieaf325c899d1c349d64dfa15bddcc32afd1fce42
2020-07-10 21:30:02 +01:00
Xiang Xiao
924ba84737
arch: call *_getsp in up_assert and board_crashdump
...
and remove the static up_getsp
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 13:51:09 +01:00
Xiang Xiao
4176a3828b
arch/sim: implement sim_getsp
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 13:51:09 +01:00
Xiang Xiao
60b7b8b3f0
arch/x86: change up_getsp to x86_getsp
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 13:51:09 +01:00
Xiang Xiao
db02cea58c
arch/x86_64: Change up_getrsp to x64_getsp
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 13:51:09 +01:00
Xiang Xiao
05f6445493
arch: Move *_getsp to the common place arch/arch.h
...
so other place can get the stack pointer easily
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 13:51:09 +01:00
Xiang Xiao
6b316edcda
sim: add __cxa_atexit into the name list
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I81e75532db1953584124142763f9d07ddb788898
2020-07-09 15:17:12 +09:00
Beat Küng
a349595316
gpio: extend gpio_pintype_e for pulldown/up and opendrain
...
- fix code style
- fix bool conversion when calling go_read()
2020-07-07 08:34:25 -05:00
Xiang Xiao
67ef70d460
vfs/dirread: Should return the same file type as lstat
...
by extend the possible value of d_type for the special file
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-07 13:41:10 +01:00
Xiang Xiao
91ed14c631
vfs/stat: Make the flag defintion more confirm POSIX standard
...
specified here:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-07 13:41:10 +01:00
Gregory Nutt
2481b1bfd5
Do not ignore .asm files that are tracked.
2020-07-04 17:52:42 +01:00
Xiang Xiao
95aa3a11d1
arch/tms570: Remove the unused frac variable
...
and change the type of divb7 from float32_t to float
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-04 08:31:06 -07:00
Xiang Xiao
993591dca1
arch/x86_64: Fix Warning: ignoring changed section attributes
...
chip/intel64_head.S: Assembler messages:
chip/intel64_head.S:281: Warning: ignoring changed section attributes for .text
chip/intel64_head.S:485: Warning: ignoring changed section attributes for .bss
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-03 10:20:39 +01:00
Xiang Xiao
b984534255
lib/math: Remove float32 and float64 definition
...
since they aren't defined by standard and never supported by other POSIX OS
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-02 10:53:34 -03:00
Jari van Ewijk
b84ce844c6
S32K additional style fixes
2020-07-01 13:45:38 +01:00
Jari van Ewijk
3db090a210
S32K - Expand FlexTimer header file and add PWM support
2020-07-01 13:45:38 +01:00
Peter van der Perk
4a40a7c3d7
S32K148EVB netdev lateinit to support Enet & CAN at the same time
2020-06-30 12:46:50 -06:00
Peter van der Perk
eca1011b1e
Expose xxx_caninitialize() correctly so it's usable in latedev init when there are multiple net devices
2020-06-30 12:46:50 -06:00
Jari van Ewijk
1306cbc16e
S32K additional style fixes
2020-06-30 15:46:15 +01:00
Jari van Ewijk
86c151edf1
S32K Small Fixes:
...
- Typos / wrong names in s32k14x_irq.h, s32k1xx_memorymap.h and s32k1xx_pcc.h
- Wrong base address for port input disable register in s32k1xx_pin.c
- up_* still had to be changed to arm_* in some places
2020-06-30 15:46:15 +01:00
ligd
36a0978952
arch/risc-v/src/rv32im: update & complete risc-v rv32im arch
...
1. add schedulesigaction.c
2. add SYS_save_context handling
3. Skip ECALL instruction when up_swint()
Change-Id: Id52c6dd9ee1052441957b73463c00d3fd26555c5
Signed-off-by: ligd <liguiding@fishsemi.com>
2020-06-30 09:31:21 -03:00
Jacob Dahl
b12b3072e8
Added support for STM32F412xx. Tested with the NUCLEO-F412ZG dev board as well as a custom board using the STM32F412CE.
2020-06-29 17:44:35 +02:00
Claudio Micheli
10f93b9d9b
stm32l4: extend CAN ioctrl with NART/ABOM. Add RTR to CAN header
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
2020-06-29 09:05:44 -03:00
Claudio Micheli
94e87bb6e8
stm32: extend CAN ioctrl with NART/ABOM. Add RTR to CAN header
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
2020-06-29 09:05:44 -03:00
Claudio Micheli
7a346bee26
stm32f7: Add the option to include RTR in CAN header
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
2020-06-29 09:05:44 -03:00
Beat Küng
f6039bbfa7
stm32f7: add CANIOC_SET_NART and CANIOC_SET_ABOM ioctl's to can driver
2020-06-29 09:05:44 -03:00
Matias Nitsche
861f80e853
stm32l4 RCC: configure flash wait states early, otherwise execution is corrupted when clock is increased before that
2020-06-28 13:25:05 -03:00
Matias Nitsche
c26521c38f
stm32l4 dfumode: move initialization point of bootloader jump instruction to correct place
2020-06-26 09:59:40 -03:00
Matias Nitsche
d1c538b65c
stm32l4: dfumode style fixes
2020-06-26 09:59:40 -03:00
Matias Nitsche
b4bea95a6a
stm32l4: add support for booting into DFU mode
2020-06-26 09:59:40 -03:00
Ouss4
a7fdc4ba03
arch/arm/src/stm32/stm32f40xxx_i2c.c: Fix tracing enumeration.
...
Values used in the ISR were taken from STM32F7 but the enumeration was
not updated.
2020-06-26 09:51:09 -03:00
YAMAMOTO Takashi
05671fd8f1
vpnkit: set mac address when available
...
up_vpnkit network driver gets its mac address from the vpnkit.
it isn't available until a successful negotiation with the vpnkit.
2020-06-25 07:27:44 -05:00
YAMAMOTO Takashi
74d13d74b9
sim: Add more names to nuttx-names.in
...
Some of them are for the recent development. eg. rewind, ftw
Some of them were simply missing. eg. shutdown
2020-06-25 07:26:53 -05:00
Matias Nitsche
1115f0104b
stm32l4 oneshot: style fix
2020-06-25 11:04:14 +01:00
Matias Nitsche
3c37d68735
stm32l4 oneshot: assert period > 0, otherwise the timer never fires
2020-06-25 11:04:14 +01:00
Gustavo Henrique Nihei
105d561a51
arch/arm/src/stm32f7: Refactor FMC functions for STM32F7
...
This refactor is based on the FMC architecture of STM32H7, with the
exception of the board specific definitions.
2020-06-24 10:51:02 -03:00
Gustavo Henrique Nihei
b06722cd7f
boards/arm/stm32/stm32f769i-disco: Add support for external SDRAM
2020-06-24 10:51:02 -03:00
chao.an
f5039d0b23
sim: fix compile error caused by race condition
...
LD: nuttx.rel
objcopy: couldn't open symbol redefinition file nuttx-names.dat
(error: No such file or directory)
Makefile: 297: recipe for target 'nuttx.rel' failed
Change-Id: Ic78f030b77c3468ddbb96d4fb0558edad3abc3ae
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-24 14:32:22 +01:00
David Sidrane
5cbebda133
kinetis:Ethernet fixed & better interrupt management
...
When any error was detected the buffers descriptors were
blindly initialized. This caused the TX of the MAC to
be in a bad state. The correct thing to do, we disable
the MAC, init the bufffers and re-eanable the MAC.
The interrupts were being throlled at the NVIC. This been
cleaned up.
2020-06-21 14:16:26 -06:00
Huang Qi
a13ebe5975
arch/arm/stm32: Make SysTick as a Tickless clock source option
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-20 09:10:27 -03:00
David Sidrane
b64060f717
s32k1xx:flexcan clock_systimespec -> clock_systime_timespec
2020-06-19 00:27:52 +01:00
chao.an
6e8cf28e9c
nuttx/names: add symbol name preprocessing support
...
Change-Id: I54e0b24391b6e08801e3f0b1799ed3fcc9188ae7
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-18 07:09:40 -06:00
chao.an
1a59e5ad0f
sim/names: add munmap into naming list
...
Change-Id: Ideb6c538fafda3f031d3a0d976da85917ba64530
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-18 07:09:40 -06:00
chao.an
d96b22ae3c
nuttx/names: add getchar into naming list
...
Change-Id: I04b9283250bd139201b2de766f7f5f30db992434
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-18 07:09:40 -06:00