Skip to content

Initial checkin with STM HAL #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2014
Merged

Conversation

dhylands
Copy link
Contributor

This compiles and links, but hasn't been tested on a board
yet and even if it was run, it doesn't currently do anything.

Directory mapping from STM Hal

Drivers/STM32F4xx_HAL_Driver/Inc --> hal/inc
Drivers/STM32F4xx_HAL_Driver/Src --> hal/src
Drivers/CMSIS/Include --> cmsis/inc
Drivers/CMSIS/Device/ST/STM32F4xx/Include --> cmsis/devinc
Middlewares/ST/STM32_USB_Device_Library --> usbdev
Middlewares/ST/STM32_USB_Host_Library --> usbhost
Middlewares/Third_Party/FatFs --> fatfs

This compiles and links, but hasn't been tested on a board
yet and even if it was run, it doesn't currently do anything.
dpgeorge added a commit that referenced this pull request Mar 12, 2014
Initial checkin with STM HAL
@dpgeorge dpgeorge merged commit 8cc50d3 into micropython:master Mar 12, 2014
@dpgeorge
Copy link
Member

Thank you!

I got it running, flashing some LEDs.

Next thing is to get the CDC USB device working. We should coordinate who does what. What would you like to do?

@dhylands
Copy link
Contributor Author

I've got leds flashing and almost have uart working. I should have repl
over uart up real soon now.

If you want to work on the USB stuff that sounds good to me.

You'll probably want to wait until I send in my next pull request.

The most time consuming thing is just figuring out what's different.

AltFn is now bundled in with gpio and there are macros for enabling clocks
like __USART6_CLK_ENABLE()

When you look at the examples the code is often split between main and a
separate file which has an map init function.

#including stm32f4xx_hal.h gets all of the headers configured in the Hal
def file (which I've put in the boards directory)

Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
On Mar 12, 2014 3:46 PM, "Damien George" notifications@github.com wrote:

Thank you!

I got it running, flashing some LEDs.

Next thing is to get the CDC USB device working. We should coordinate who
does what. What would you like to do?

Reply to this email directly or view it on GitHubhttps://github.com//pull/339#issuecomment-37478712
.

@dpgeorge
Copy link
Member

Okay, I'll look at USB.

I think this new HAL library is for the better. It's simpler in many ways (less fuss in GPIO for example), I like the way you now specify the GPIO mode and AF, and it seems to be more configurable (eg the system clock is now set with parameters instead of macro defines).

@dhylands dhylands deleted the stmhal branch November 8, 2015 02:40
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Nov 7, 2017
For ESP8266, remove frozen module neopixel.py and add neopixel_write to mpconfigport.h. Use  [Adafruit_CircuitPython_Neopixel/neopixel.py](https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel) instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants