Xiang Xiao
54e630e14d
arch: Merge up_arch.h into up_internal.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-14 09:32:17 +02:00
Xiang Xiao
001e7c3e76
sched: Don't include nuttx/sched.h inside sched.h
...
But let nuttx/sched.h include sched.h instead to
avoid expose nuttx kernel API to userspace.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:11:53 +09:00
Masayuki Ishikawa
bb255d075c
arch: risc-v: Author Masayuki Ishikawa: Update license to Apache
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-03-12 16:15:44 +08:00
Masayuki Ishikawa
d87f350831
arch, boards, drivers, include, sched, wireless: Change spinlock APIs.
...
Summary:
- This commit changes spinlock APIs (spin_lock_irqsave/spin_unlock_irqrestore)
- In the previous implementation, the global spinlock (i.e. g_irq_spin) was used.
- This commit allows to use caller specific spinlock but also supports to use
g_irq_spin for backword compatibility (In this case, NULL must be specified)
Impact:
- None
Testing:
- Tested with the following configurations
- spresnse:wifi, spresense:wifi_smp
- esp32-devkitc:smp (QEMU), sabre6-quad:smp (QEMU)
- maxi-bit:smp (QEMU), sim:smp
- stm32f4discovery:wifi
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-07 21:28:56 -08:00
Ouss4
21302fcdae
arch/risc-v/src: Rename files starting by up_ to risc_ to conform to the
...
naming standard.
2020-04-30 20:48:32 -06:00
Masayuki Ishikawa
4ea49c5691
Fix issues on fe310 including interrupt handling ( #46 )
...
* arch: fe310: Fix comments
* arch: fe310: Improve irq handling in fe310_serial.c
* arch: fe310: Fix initial interrupt status (mstatus)
Also, removed unnecessary up_enable_irq(FE310_IRQ_ECALLM)
2020-01-07 07:17:39 -03:00
Masayuki Ishikawa
466ab56c10
Merged in masayuki2009/nuttx.nuttx/fe310_gpio (pull request #1097 )
...
fe310 gpio
* arch: risc-v: Add arch/risc-v/src/common/up_mdelay.c
* arch: risc-v: Add arch/risc-v/src/common/up_udelay.c
* arch: fe310: Add #include <stdint.h> to fe310_start.c
* arch: risc-v: Add up_ack_irq() definition to commpn/up_internal.h
* arch: fe310: Add FE310 GPIO driver
* boards: hifive-revb: Add compiler optimization
* boards: hifive1-revb: Add auto leds related files.
* arch: fe310: Add CPU activity led to fe310_idle.c
* boards: hifive-revb: Add a button
NOTE: still having a trouble in signal handling.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-12-19 04:59:30 +00:00