Chen Wang
2d5eb2669f
bsp: cvitek: remove warning when building wdt driver
...
```
./bsp/cvitek/drivers/drv_wdt.c: In function '_wdt_control':
warning: assignment to 'void *' from 'unsigned int' makes pointer
from integer without a cast [-Wint-conversion]
119 | wdt_device->parent.user_data = (rt_uint32_t)(*(rt_uint32_t *)arg);
| ^
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
122 | *(rt_uint32_t *)arg = (rt_uint32_t)wdt_device->parent.user_data;
| ^
```
Rootcasue: It's not portable to store integar in a pointer.
Solution: use global _wdt_dev to store the timeout value.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-07-17 09:05:26 +08:00
..
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-07-09 13:35:03 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-07-17 09:05:26 +08:00
2024-06-20 14:40:42 +08:00
2023-07-22 10:36:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-28 23:41:31 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-07-15 17:51:32 +08:00
2024-06-20 14:40:42 +08:00
2024-07-08 22:06:53 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2023-03-23 01:55:21 -04:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2023-04-22 19:22:19 +01:00
2024-07-08 22:06:53 +08:00
2024-06-20 14:40:42 +08:00
2024-07-07 22:24:09 +08:00
2024-06-26 14:36:49 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-30 22:30:15 +08:00
2024-06-20 21:42:11 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2023-03-20 00:06:16 -04:00
2024-06-20 14:40:42 +08:00
2023-03-20 00:06:16 -04:00
2023-07-09 00:19:29 -04:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-07-12 17:48:17 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2023-04-04 09:06:27 -04:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-06-20 14:40:42 +08:00
2024-04-21 01:18:37 -04:00
2023-11-20 07:34:46 -05:00