rt-thread/bsp/allwinner/libraries/sunxi-hal/hal/source
Shell b73396681a
[bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS (#9142)
* [bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS

This patch ports the codebase to use the RT_USING_DEVICE_OPS structure,
which is required by v5.1.0 Smart kernel, improves modularity and makes
it easier to manage device operations by consolidating them into a
single structure, enhancing maintainability and future scalability.

Changes:
- Added RT_USING_DEVICE_OPS conditionals to partition.c and drv_sdmmc.c.
- Defined rt_device_ops structures for partition and sdmmc drivers.
- Updated device initialization to use the ops structure if defined.
- Replaced direct function calls with rt_dev_control, rt_dev_read, and
  rt_dev_write macros where applicable.
- Removed redundant us_delay function from os.c.

Signed-off-by: Shell <smokewood@qq.com>

* feat: update configuration

* feat: fixup compiler warning

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-07-09 13:35:03 +08:00
..
ccmu [HUST CSE IoTS&P Lab][bsp] add missing UL suffix to BIT macro to prevent undefined behavior (#7153) 2023-04-03 23:05:42 +08:00
ce format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
cir format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
common format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
disp2 bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 2024-06-20 14:40:42 +08:00
dma [HUST CSE]avoids null pointer problems (#7233) 2023-04-14 00:30:28 +08:00
efuse format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
eise sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
g2d_rcq [bsp]Fix Chinese coding errors in annotations. 2023-04-02 08:02:46 -04:00
gmac [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
gpadc sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
gpio [bsp] Fix many abnormal symbols in annotations. 2023-03-31 23:57:17 -04:00
hwspinlock sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
intc format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
ir sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
ledc sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
lradc sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
mbus format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
msgbox format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
phy sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
prcm format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
pwm sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
regulator [HUST CSE IoTS&P Lab][bsp] add missing UL suffix to BIT macro to prevent undefined behavior (#7153) 2023-04-03 23:05:42 +08:00
rtc sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
sdmmc [bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS (#9142) 2024-07-09 13:35:03 +08:00
sound bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 2024-06-20 14:40:42 +08:00
spi sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
spinor [HUST CSE IoTS&P Lab][bsp] add missing UL suffix to BIT macro to prevent undefined behavior (#7153) 2023-04-03 23:05:42 +08:00
thermal format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
timer [bsp] Fix many abnormal symbols in annotations. 2023-03-31 23:57:17 -04:00
tpadc sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
twi sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
uart format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
usb [libc][posix/io/stdio] rename libc.c as posix/stdio.c 2023-08-17 02:22:53 -04:00
watchdog sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
.gitignore sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
Makefile sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00