Commit Graph

15 Commits

Author SHA1 Message Date
jzlv
d43977f414 [feat][clock] move rc32m init into hal_clock.c 2021-11-23 16:48:02 +08:00
jzlv
aa4bec3776 [feat][bl702_driver] set some bits zero in xtal_cfg at default 2021-11-22 10:59:28 +08:00
jzlv
9c67a54e24 [refactor] remove bflb_platform.h from bl602 and bl702 driver,include it in anywhere used 2021-10-19 20:04:23 +08:00
jzlv
66ec110725 [refactor][bl702_driver] refactor std and hal common include file, drop some flash api 2021-09-26 13:53:05 +08:00
jzlv
867ad6ef05 [feat][bl702_driver] update bl702 driver 2021-08-26 12:26:40 +08:00
qqwang
d3a4c33b16 [fix][interrupt] fix interrupt vector 2021-08-05 18:00:33 +08:00
jzlv
1c70b10c6b [feat][global_irq] add nesting for global irq enable and disable 2021-07-26 10:58:24 +08:00
jzlv
3f8f00e4df [fix][examples/adc/boot/i2s] delete unused flag noun in xxx_register 2021-07-17 11:16:33 +08:00
jzlv
673ba04e8e [feat][system] add internal and external flash selection when mcu run 2021-07-16 16:18:53 +08:00
jzlv
5a811531e9 [fix][drivers] fix hal driver and entry.s bug when main return 2021-07-01 14:20:25 +08:00
Robert Lipe
c39ba09f3d Fix build errors in entry.S. allows helloworld to compile and link.
1) __riscv_float_abi_single is not in the provided preprocessor namespace.
The default build sets -Werror and has -Warn implicitly. Testing something
that's not defined with an #if is therefore an error.
This is possibly a behavior change. If your builds ever define that AND
set it to 0, this way will fail, but #if defined (foo) + #if foo is akward
and probably not what you intended.

2) "csrw mtvt, t0" is not legal in at least
GNU assembler (GNU Binutils) 2.35
   Fortunately, riscv_encoding.h #defines a perfectly lovely value of
$0x307 that's appropriate for the chips AND is compatible with more assemblers.
This appears to be  an extension in
GNU assembler (SiFive Binutils 2.32.0-2019.08.0) 2.32
(present in bl_io_sdk, as provided by SiFive)
and that's probably what's in  your $PATH, but not relying on vendor
extension in this case is dead easy.

Two distinct problems. No, I'm not making different pull requests.
...this is a lot of words for a two line change. :-)
2021-06-20 13:43:14 +08:00
jzlv
5b18a07200 [fix] fix __riscv_float_abi_single warning 2021-06-20 12:34:58 +08:00
jzlv
d427e7fdda [style] format files by clang-format 2021-06-20 12:25:46 +08:00
jzlv
c2f3072455 [fix] fix hal driver 2021-06-04 18:15:19 +08:00
jzlv
a2fca7a36d first commit 2021-04-13 19:27:30 +08:00