void hal_uart1_deinit(void); void uart_init(void) { uart1.pm.init = hal_uart1_init; uart1.pm.deinit = hal_uart1_deinit; uart1.pm.condition = &uart1.pm_condition; pm_register(&uart1.pm ,"uart1"); } /*接下来串口驱动检
struct tty_struct { int magic; struct kref kref; struct device *dev; // 对应的 tty_driver struct tty_driver *driver; // static const struct tty_operations uart_ops; const struct tty_operations *ops; int index; /* Protects ldisc changes: Lock tty not pty */ struct ld_semaphore ldisc_...
UART WATCHDOG EMMC DSI PWM PanSensor Sensor 模型 WLAN 系统基础能力子系统集 用户程序框架 AbilityKit BundleManager 公共通信子系统 Softbus 图形及UI子系统 Surface Window UI_Components UI_DFX UI_Animator UI_Utils UI_Common UI_Events UI_Layout UI_Theme 服务...
UART WATCHDOG EMMC DSI PWM PanSensor Sensor 模型 WLAN 系统基础能力子系统集 用户程序框架 AbilityKit BundleManager 公共通信子系统 Softbus 图形及UI子系统 Surface Window UI_Components UI_DFX UI_Animator UI_Utils UI_Common UI_Events UI_Layout UI_Theme 服务框架...
+static struct u32_fract uart_factor_tbl[] = { + { .numerator = 8125, .denominator = 1536 }, /* 14.745MHZ */ + { .numerator = 3521, .denominator = 689 }, /* 19.23MHZ */ }; static struct mmp_clk_factor_masks i2s_factor_masks = { ...
altera_jtaguart.h altera_uart.h amd-iommu.h anon_inodes.h apm-emulation.h apm_bios.h apple-gmux.h apple_bl.h arch_topology.h arm-cci.h arm-smccc.h arm_sdei.h armada-37xx-rwtm-mailbox.h ascii85.h asn1.h asn1_ber_bytecode.h asn1_decoder.h asn1_encoder....
嵌入式系统中有很多的物理总线:I2c、SPI、USB、uart、PCIE、APB、AHB linux从2.6起就加入了一套新的驱动管理和注册的机制platform平台总线,是一条虚拟的总线,并不是一个物理的总线。 相比PCI、USB,它主要用于描述SOC上的片上资源。platform 所描述的资源有一个共同点:在CPU 的总线上直接取址。
args #define GENL_doit(handler) \ .doit = handler, \ .flags = GENL_ADMIN_PERM, #define GENL_dumpit(handler) \ .dumpit = handler, \ .flags = GENL_ADMIN_PERM, /* }}}1 * Magic: define the enum symbols for genl_ops * Magic: define the enum symbols for top l...
const struct observer_ops *ops; } int observer_register(struct topical* top , struct observer_intf* observer); 当主题状态发生改变,将通知到所有观察者,观察者本身也可以设置条件,是否选择接收通知 struct observer_intf observer_list; void XXXX_topical_evt(uint8_t evt) ...
const struct observer_ops *ops; } int observer_register(struct topical* top , struct observer_intf* observer); 当主题状态发生改变,将通知到所有观察者,观察者本身也可以设置条件,是否选择接收通知 struct observer_intf observer_list; void XXXX_topical_evt(uint8_t evt) ...