TM4C123-Peripheral Driver Library
本文主要是对TI的TivaWare™ Peripheral Driver Library USER’S GUIDE(spmu298d.pdf)文件的阅读摘录,是外设库的简介及对寄存器、库函数两种编程方式的认识。 本文重点是对支持寄存器访问方式的头文件中寄存器命名方式的理解。 一、外设库的简介 该库是一个访问外设的驱动集。 While they are not drivers in the pure operating system sense (that is, they do not have a common interface and do not connect into a global device driver infrastructure), they do provide a mechanism that makes it easy to use the device’s peripherals 虽然它们不是纯操作系统意义上的驱动,即它们没有统一的接口,不连接到全局设备驱动基础结构。 但它们的确使访问外设更加方便 Where possible, computations that can be performed at compile time are done there instead of at run time. 在编译时能完成的计算将在编译时完成 The