Mingjie Shen
51c4a5c2d6
gd32f4xx_at24: Fix uninitialized use of local variables i2c and at24
...
Prior to this commit, i2c and at24 may be used uninitialized on line
113, 117, 129, and 143 when gd32_at24_wr_test() is called the second
time because these two variables are not static. I don't think making
them static is the correct fix because i2c is released at the end of
this function. Fixed by removing the `if (!initialized)` condition
surrounding the initialization of i2c and at24, making them initialized
at every call to this function.
Signed-off-by: Mingjie Shen <shen497@purdue.edu>
2024-08-27 21:32:28 +08:00
simbit18
b0504f1e5e
fix nxstyle
...
fix Relative file path does not match actual file.
2024-04-15 15:33:17 -03:00
Xiang Xiao
2e91c07ca7
Remove the back slash from long literal string
...
since the back slash is only needed for the long macro definition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-02-19 16:43:15 +01:00
GC2020
6308a53274
Added the comments of bringup() under gd32fxxx.h, modified the compilation options of the makefile, and modified the execution logic of the board_late_initialize(), which is consistent with the stm32 series.
2024-01-30 17:50:31 -08:00
GC2020
95de7b8420
Fix the call logic of the gd32f4xx_appinit.C and gd32f4xx_bringup.C of the GD32 series microcontroller in the project, which is unified with the STM32 series chip in the warehouse.
2024-01-30 17:50:31 -08:00
chao an
664927c86e
mm/alloc: remove all unnecessary cast for alloc
...
Fix the minor style issue and remove unnecessary cast
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-30 14:34:20 +08:00
Petro Karashchenko
dcd26ac6b2
sdcard: update sdcard detection to avoid 0xff assignment to bool type
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-06-11 12:55:29 +08:00
GD32-MCU
fdfc25cf56
add sdio driver for GD32F4
2023-06-07 16:43:55 +08:00
GD32-MCU
6a799fef6c
add littlefs support for gd32f450zk-eval board
2023-04-01 10:38:16 -03:00
chao an
3a0fdb019d
nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems()
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:05:44 +08:00
GD32-MCU
659bd495b0
Add i2c driver for gd32f450 MCU
2022-12-17 17:12:26 +08:00
chao an
624d69ee05
boards: enter/leave critical section should in pairs
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-11-22 08:19:24 +09:00
Xiang Xiao
92f156c969
boards: Change the linker generated symbols from uint32_t to uint8_t array
...
since the symbol generated by linker is always used as an address not a value.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-05 14:24:47 +02:00
GD32-MCU
85c8144afa
add chip GD32F450 of GD32MCU
...
Modify the file according to the checks
update the board config files, and modify the gd32f4xx_progmem.c
Add chip GD32F450 of GD32MCU
delete the micro FAR, modify code style
Add chip GD32F450 of GD32MCU
2022-09-09 15:29:35 +08:00