Coder Social home page Coder Social logo

stm32f1xx_drivers's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @zacck

I'm obsessed with embedded systems and how they work. In reality I would love to implement a multiboard, multiprotocol distributed embedded system something like what we have in Automobile systems.

I sometimes LiveCode my learning sessions on my Youtube Channel. Usually on Mondays, Wednesdays and Fridays at 9am SAST. Let's dive deep into Embedded systems.

stm32f1xx_drivers's People

Contributors

zacck avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

stm32f1xx_drivers's Issues

Implement GPIO Interrupt Handling

Adding GPIO Interrupts

  • Add EXTI struct to MCU header
  • Add peripheral definition for EXTI
  • Add IRQ numbers for GPIO interrupts
  • Add macro to convert base address to gpio port
  • Handle processor specoific NVIC registers and ICER & ISER
  • Handle GPIO Interrupt mode in gpio.c
  • Add GPIO API for IRQconfig, irqpriorityconfig, irqhandling

How interrupts work

  • The interrupt line should be configured and enabled this is done by selecting the edge trigger and enabling interrupt requests via the interrupt mask

References
STM32F10xx Reference manual

Implement SPI Send and Receive API

We need to implement and test an API for sending and receiving data over SPI to achieve this we need to do the following.

  • - Define SPI addresses and structs on the MCU header
  • - Define SPI header and source files
  • - Define SPI IRQNumbers
  • - Define SPI Clock Set and Disable Macros

Implement GPIO Read from input API

Implement GPIO read input API
This in a two pronged attack item to achieve this we need to complete two APIs outlined in the GPIO header file.

  1. Implement GPIO_ReadFromInputPin, this would mean using a mask and reading from the corresponding bit from the GPIO IDR
  2. Implemenet GPIO_ReadFromInputPort, this would mean using a mask and reading from the GPIO IDR and returning all 16 bits

References
STm32f10xx Reference manual

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.