K230 supports 3 GPIO groups:
group0: GPIO0 ~ GPIO31, support i/o and irq
group1: GPIO32 ~ GPIO63, support i/o and irq
group2: GPIO64 ~ GPIO71, only support i/o.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
- include the year, month, and day for rtc_alarm_time_set API
- add local time conversion for get timeval and set stamp
Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
K230 support 6 general hardware timers and 3 stc timers.
This patch only implement drivers for general hw timers.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
K230 has two watchdog timers.
Add unit tests based on utest framework.
Watchdog and test are both configuable, disabled by default.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
scons --menuconfig will report:
```
warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION
(defined at /home/u/.env/packages/packages/misc/zlib/Kconfig:31)
is selected by the following symbols, but select/imply has no
effect on choice symbols
- BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:36)
warning: default on the choice symbol BSP_USING_SDIO0
(defined at board/Kconfig:20) will have no effect, as defaults
do not affect choice symbols
warning: default on the choice symbol BSP_USING_SDIO1
(defined at board/Kconfig:34) will have no effect, as defaults
do not affect choice symbols
```
Fix and remove these warnings.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
* [bsp][wch][risc-v] add drv_flash for ch32v307.
* [bsp][wch][risc-v] 1. add yml file for ch32v307.
2. fix programs a word at chip flash timeout.
3. priority use of fast mode.
* [bsp][wch][risc-v] fix spi device for ch32v307.
Support sdio work for 01Studio board.
01Studio connect TF socket with sdio0, which is
different from standard canmv v1.0/v1.1 board
(which uses sdio1).
Updated configuration menu,
- SDIO devices are now a choice of two.
- Root file system types are also a choice of multiple.
Currently only cromfs and elmFAT are supported.
- Modified the default mount partition of the root file
system to sd0p1
Deleted the configuration BSP_SD_SDIO_DEV, and now
directly set mmcsd_change according to the selection of
the SDIO device.
Eliminated the warning of the drv_sdhci.c and
egularized the code format. The logic of this file
has not been essentially modified.
Sync and update the .config/rtconfig.h to the latest.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Add a script to call rttpkgtool's sdcard.sh.
Ths script encapsulate checking and downloading
of rttpkgtool and call ./script/sdcard.sh.
It also print new message so user need not
learn how to use sdcard.sh.
Update README.md.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Previously, `scons -c` did not clean up the build directory
and the automatically generated link.lds.generated.
This is fixed now.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This hardlock is required by some other drivers, such
as sysctl power.
This driver can be enable/disabled by configuration.
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
* bsp/simulator: update SDL2 Windows prebuilt binaries to 2.32.6 with x86 and x64 binaries
* bsp/simulator: tidy and extend the Visual Studio 2012 project
* bsp/simulator: fix format for SDL2 Windows headers