Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Driver library for the TM4C123GH6PM Microcontroller

License

NotificationsYou must be signed in to change notification settings

mdhardenburgh/TM4C123GH6PM_Drivers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

TM4C123GH6PM Drivers

Drivers for the Texas Instruments Tiva C ARM 4F TM4C123GH6PM microcontroller.It is designed to be easy to use, similar to an arduino, however knowledge ofpointers and memory management is reccommended. This project is written in C++.

How to use

ARM GNU Toolchain is required to build this project.OpenOCD is required todownload main.elf to the board. Both are freely available to download and install.

You will probably have to add both openOCD and the ARM GNU Toolchain bin folder to your path

To build the example main, navigate to the project directory in a terminal anduse the commandmake.

Use the commandopenocd -f board/ek-tm4c123gxl.cfg -c "program main.elf"to download the code to the board. Hit the reset switch to reset the processor tosee the example code in action.

The commandarm-none-eabi-gdb main.elf can be used to access the debugger.

  • Use the commandtarget extended-remote:3333 to connect to the board
  • Use the commandmonitor reset halt to halt the processor (required to load code)
  • Use the commandload to load new code onto the board
  • Use the commandmonitor reset init to restart the processor
  • The rest of the GDB commands are the same

Progress

Disclaimer

This project is a work in progress. Class names, function names, enum names, etc..may change, with out notice, at any time.

Functional Peripherals

  • NVIC Interrupts
  • PLL system clock for different clock speeds
  • GPIO, GPIO interrupt on both edges
  • 16/32-bit and 32/64-bit General Purpose Timer in oneshot and periodic mode
  • PWM can be initilized for single and double ended complementary mode.
  • ADC polling

Test program

Main contains a very simple example program of how to use the drivers.

In Progress To Do's

  • Test the ADC interrupt function
  • Implement thevoid initializeDigitalComparator(void); functionality
  • Add ADC documentation and update existing
  • Refactor GPIO, PWM, GPT code to bring it inline with new framework

Planned in no specific order

  • µDMA
  • GPIO
    • Poll raw interrupt status
    • interrupt on a single edge
  • USB
  • UART
  • SPI
  • I2C
  • Systick
  • MPU
  • FPU
  • SBC
  • Analog Comparator
  • Memory
    • EEPROM
    • Flash
  • Hibernate
  • Watchdog
  • Examples folder

Completed

  • Further test the ADC polling function

License

All code is under the the GPl v3 License. Please the read the associated LICENSEfile for an in depth licensing agreement

This program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, orany later version.

This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.

You should have received a copy of the GNU General Public Licensealong with this program. If not, seehttps://www.gnu.org/licenses/.

Copyright

Copyright Matthew Hardenburgh 2020. All rights reserved.


[8]ページ先頭

©2009-2025 Movatter.jp