Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-21Merge remote-tracking branch 'gitlab/master'D. Lisin
2019-08-30Merge branch 'feature/usb_ulpi'D. Lisin
2019-07-10FIX: [usb] Forgotten semicolonIlya Stolyarov
2019-07-09Merge branch 'feature/usb_ulpi' into 'master'Ivan Orfanidi
Feature/usb ulpi See merge request thirdpin_team/libopencm3!1
2019-07-09IMPR: [usb] Some style improvementsIlya Stolyarov
2019-07-07FIX: [usb] Delay after RCC enableIlya Stolyarov
2019-07-07FIX: [usb] usbd_dev->doeptsiz[] using 8 fields but has only 4Ilya Stolyarov
Signed-off-by: Ilya Stolyarov <i.stolyarov@thirdpin.ru>
2019-07-07FIX: [usb] usbd_dev->user_callback_ctr have 8 fields but iterate only 4Ilya Stolyarov
Signed-off-by: Ilya Stolyarov <i.stolyarov@thirdpin.ru>
2019-07-04FEAT: [ulpi] Registers and initializationIlya Stolyarov
2019-04-24Fix SDIO for STM32F103.IvanOrfanidi
2018-10-01Problem with SDIO fixedLisin Dmitriy
2018-09-28Merge remote-tracking branch 'original_libopencm3/master'Lisin Dmitriy
# Conflicts: # Makefile # include/libopencm3/stm32/common/timer_common_all.h # include/libopencm3/stm32/sdio.h # include/libopencm3/usb/usbstd.h # lib/stm32/f1/Makefile # lib/stm32/f2/Makefile # lib/stm32/f4/Makefile # lib/usb/usb_f107.c # lib/usb/usb_msc.c
2018-09-24stm32f7: fix RCC_APB1 defns for USART7/USART8Karl Palsson
The reset and low power definitions for USART7/USART8 were correct, but not the primary enable registers. Fixes: https://github.com/libopencm3/libopencm3/issues/969
2018-09-15stm32: f24: dma: clarify stream/channelKarl Palsson
It's always stream on the "new" dma controller (unless it's channel....) Fix a couple of inconsistent prototypes that had carried over from f1 originally. Reported by vampi on irc.
2018-09-11stm32f7: drop toolchain check for m7 support.Karl Palsson
the 2014q3 or later toolchains are now readily available, and we should now just consider this a user problem. This gets us out of trying to parse compiler help output and chasing our own tail. Fixes https://github.com/libopencm3/libopencm3/issues/965
2018-09-09stm32f7: enable common timers supportKarl Palsson
2018-09-09doc: cm3/scb+scs: turn on existing documentationKarl Palsson
Lots of registers were already documented extensively. Turn it all in doxygen with groups and the right syntax.
2018-09-09doc: add all cm3 headers to doxygen.Karl Palsson
Just get them all included as they are. Gets them grouped up and visible so we can start clarifying the rest of their docs.
2018-09-09doc: make sure include/cm3 is pulled in properly.Karl Palsson
Much as we had to pull in the individual target's include files manually, because they're useful without necessarily having .c files using them, the cortex core headers also need to be included. This also pulls in the doc-cm3.h file that setup nice groupings.
2018-08-29readme: add miniblink/template referencesKarl Palsson
2018-08-29tests: gadget0: stm32f3: use library clock setupsKarl Palsson
F3 rcc configs were overhauled and we can now use standard init code instead of specifying our own custom clock config.
2018-08-29stm32f7: desig: link common implementationKarl Palsson
2018-08-29stm32: adc: Add functions to get and clear flagsClara Casas
This includes adding documentation to the status flags. Originally tracked at: https://github.com/libopencm3/libopencm3/pull/833 Modified to drop whitespace changes, and simply boolean return.
2018-08-29stm32: add dma_get_number_of_dataDaniel Gröber
Original discussion at: https://github.com/libopencm3/libopencm3/pull/702
2018-08-28lm4f: timers: add basic register definitionsKarl Palsson
Add the timers to the memory map and the basic registers at least.
2018-08-28stm32: spi: drop empty spi.c files.Karl Palsson
They were originally used to make sure that the doxygen was generated correctly, but that style is no longer necessary. There may be more peripherals that can be "cleaned" like this, but let's do them one step at a time, as we work on that area.
2018-08-28stm32f7: spi: include common codeFlorian R. Hölzlwimmer
2018-08-28gitignore new generated codeKarl Palsson
2018-08-27tests: usb gadget0: ti: use dummy delay handlersKarl Palsson
Not full test coverage, obviously, but at least let it compile until the delay methods have been implemented.
2018-08-27tests: usb-gadget0: gitignore generated linker scriptsKarl Palsson
2018-08-27tests: usb gadget0: add ti lm4f120xl boardKarl Palsson
This has failing tests, and doesn't implement (yet) the delay routines, so it won't even compile without disabling that functionality in the core gadget0 code. However, it passes most tests, and it demonstrates that the changes made to the setup handling earlier haven't broken USB on this platform.
2018-08-27usb: provide lm4fusb driver referenceKarl Palsson
We provided references for all the others, provide it for the lm4f driver too.
2018-08-27usb: fix race between setup complete and endpoint nakKarl Palsson
See https://github.com/libopencm3/libopencm3/issues/873 Commentary describing this patch originally by zyp: ``` After looking further into it, I've concluded that my preliminary analysis looks correct. The problem is that setting CNAK before the SETUP complete event is received causes a race condition. The SETUP callback is called when the SETUP packet event is received, which means that setting CNAK from the callback is too early. Originally the problem was that CNAK was set by ep_read() which is called by the callback. #672 solved this by moving CNAK out of ep_read() and calling it after the SETUP complete event is received instead. The regression by #785 is caused by the introduction of flow control calls into the SETUP callback. They also set CNAK. To solve this properly, I propose changing the event handling code to only call the SETUP callback after the SETUP complete event is received. Unfortunately, this implies that the callback can't call ep_read() itself anymore, because the packet has to be read out of the FIFO before the SETUP complete event arrives. This implies a change of the API between the hardware drivers and _usbd_control_setup(). ``` L1 (st_usbfs) works and passes tests as before change F4 (dwc_otg_fs) works and now passes tests. (yay) LM4f still compiles, and has had the same style of implementation as st_usbfs, however has not been tested on any hardware.
2018-08-27usb gadget0: ctrl write/read loopback testsKarl Palsson
This is based on linux's gadget0 intel loopback tests, and also github pr: https://github.com/libopencm3/libopencm3/pull/592 Note that this captures the currently broken control loopback issues on dwc_otg devices. See https://github.com/libopencm3/libopencm3/issues/873 and all linked issues. Current status is passing on f3, f0, and failing on f4.
2018-08-27usb: make usb_disconnect() weakDavid Lamparter
usb_disconnect() is board/platform specific for chips that don't have built-in handling for this. Allow the application to provide its own version of usb_disconnect() to handle this. See https://github.com/libopencm3/libopencm3/pull/924
2018-08-27usb: make strings "const char * const *"David Lamparter
This allows the pointer table to be in Flash, by using "static const char * const strings[] = { ... };" See https://github.com/libopencm3/libopencm3/pull/924
2018-08-27doc: msp432/e4: Fix groupings for doxygenKarl Palsson
Proper closing tags, an outer grouping, and don't refer to missing groups.
2018-08-27doc: msp432/e4: hook up doxygen generationKarl Palsson
Just hooks up the target, no changes to the submitted documentation.
2018-08-27msp432/e4: new targetDmitry Rezvanov
Basic memory map and system control. Originally tracked via: https://github.com/libopencm3/libopencm3/pull/946
2018-08-22cm3: scs: drop (superseded) helper macros for systickKarl Palsson
These are superseded by cm3/systick.h and the functions there. Reported originally under: https://github.com/libopencm3/libopencm3/issues/125
2018-08-22cm3: scs: drop (superseded) dwt macrosKarl Palsson
They are all superseded by dwt.h, and the function dwt_enable_cycle_counter Fixes https://github.com/libopencm3/libopencm3/issues/125 (But only for the cycle count enabling)
2018-08-21usb: add USB_REQ_TYPE_OUT to match USB_REQ_TYPE_INKarl Palsson
#defines are free. Fixes https://github.com/libopencm3/libopencm3/issues/515
2018-08-20stm32f4: adc: Add VBat sensor enable/disableJordi Pakey-Rodriguez
Original discussion at: https://github.com/libopencm3/libopencm3/pull/770
2018-08-20st32l1: adc: there is no adc_chan_vbat on L1x.Karl Palsson
2018-08-20usb: st_usbfs_v2: support disconnect functionalityKarl Palsson
Originally suggested via https://github.com/libopencm3/libopencm3/pull/628
2018-08-17USB: st_usbfs : fix USB_COUNTn_RX buffer size calculation:fenugrec
Fixes https://github.com/libopencm3/libopencm3/issues/476 Sets USB_COUNTn_RX reg fields : bits <14:10> are NUM_BLOCK; bit 15 is BL_SIZE. - When (size <= 62), BL_SIZE must be 0 and NUM_BLOCK set to (size / 2). - When (size > 62), BL_SIZE must be 1 and NUM_BLOCK=((size / 32) - 1). Previous code improperly set NUM_BLOCK and assumed the requested size was set. Now, we use the next largest legal buffer size. Examples: size BL_SIZE NUM_BLOCK => Actual bufsize 0 0 0 ??? (illegal !) 1 0 1 2 63 1 1 64 Algo is valid for F102, F103 and F0 devices (USB_FS peripheral). In addition, the new usb_set_ep_rx_bufsize() function returns the actual size set. Tested-by: Karl Palsson <karlp@tweak.net.au>
2018-08-17stm32: usb gadget0: implement loopbackKarl Palsson
The loopback functionality was never implemented, not for regular bulk endpoints. By adding it, and adding pairs of endpoints, we can easily catch buffer management problems. These tests currently fail on st_usbfs devices. This did require renumbering the endpoints, as dwc_otg_fs only offers three endpoints in each direction, and they can't be arbitrary numbers, unlike on st_usbfs. See https://github.com/libopencm3/libopencm3/pull/880 and related tickets.
2018-08-17stm32: support i2c3 properlyKarl Palsson
I2C3 is on many parts, but wasn't properly supported with the register definitions. Declare them centrally, just depending on the memorymap defining them. On some parts, the rcc bits were defined, but not the base registers. Fixes: https://github.com/libopencm3/libopencm3/issues/820
2018-08-17stm32f3: flash: support basic write/erase operationsKarl Palsson
Originally filed as https://github.com/libopencm3/libopencm3/pull/627
2018-08-17stm32f3: flash: add clear write protect flagKarl Palsson
Could actually move to flash_common_f, but they have different names for the same bit at present.