代码拉取完成,页面将自动刷新
#include "ft_os.h" //part of ft_os.h
FT_Public I32 ft_os_init()
{
/*Test if the IDE has UTF-8 encoding*/
Str txt = "Á";
U8 * txt_u8 = (U8 *)txt;
if(txt_u8[0] != 0xc3 || txt_u8[1] != 0x81 || txt_u8[2] != 0x00) {
ft_logW("The strings have no UTF-8 encoding. Non-ASCII characters won't be displayed.");
}
U32 endianess_test = 0x11223344;
U8 * endianess_test_p = (U8 *) &endianess_test;
Bool big_endian = endianess_test_p[0] == 0x11 ? true : false;
if(big_endian) {
FT_ASSERT_MSG(FT_BIG_ENDIAN_SYSTEM == 1,
"It's a big endian system but FT_BIG_ENDIAN_SYSTEM is not enabled in ft_conf.h");
}
else {
FT_ASSERT_MSG(FT_BIG_ENDIAN_SYSTEM == 0,
"It's a little endian system but FT_BIG_ENDIAN_SYSTEM is enabled in ft_conf.h");
}
_ft_fs_init();
#if FT_USE_FS_FATFS != '\0'
ft_fs_fatfs_init();
#endif
#if FT_USE_FS_STDIO != '\0'
ft_fs_stdio_init();
#endif
#if FT_USE_FS_POSIX != '\0'
ft_fs_posix_init();
#endif
#if FT_USE_FS_WIN32 != '\0'
ft_fs_win32_init();
#endif
_ft_timer_core_init();
}
FT_Public I32 ft_os_deinit()
{
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。