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
path: root/tests
AgeCommit message (Collapse)Author
2019-07-02gadget0: f429: update to newest rcc apiKarl Palsson
2019-06-29gadget0: f4: update to newest rcc apiKarl Palsson
2019-06-29gadget0: f4: PA9 is not an AF.Karl Palsson
It has never been an AF, it's always been an error to set this pin to AF.
2019-06-29gadget0: allow parallel submakeKarl Palsson
allows "make -j10" work properly
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-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 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-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-17tests: use the new auto depends on libraryKarl Palsson
Provided in ea5d3cb7 genlink: provide LIBDEPS for libopencm3 itself
2018-07-29usb-gadget0: stm32f3: drop debug, be more consistentKarl Palsson
Don't spew loop prints, be more like all the other targets.
2018-07-04tests: makefiles need to handle linker script generators tooKarl Palsson
Without this you get errors about not finding the linker script (because it will be generated) and linker errors due to bare -l flags.
2018-06-08tests: rules.mk: avoid non-posix brace expansionKarl Palsson
Brace expansion is not posix defined, even if it's widely available. Avoid it's use for portability.
2018-05-02tests: gadget0: add stm32f3-discoKarl Palsson
Another readily available board with a user USB port, and this one lets you test the st usbfs peripheral on a device with trace facilities.
2018-05-02gadget0: work around "ValueError: The device has no langid"Karl Palsson
pyusb quirk.
2018-04-14gadget0: stm32l1: target the "hw1" test board explicitlyKarl Palsson
There's still no commonly available l1 with usb from ST, so target our own developed test host board instead of one developer's private board.
2018-03-03tests: gadget0: use proper usb enumsKarl Palsson
2018-03-03tests: gadget0: efm32hg: add gadget0 test for efm32hgSebastian Holzapfel
2018-03-03travis: build gadget-zero tests as wellKarl Palsson
This helps catch some perhaps unintended api changes
2018-02-24tests: gadget0: stm32l1: fix wait state declarationKarl Palsson
Fixes: ec1d2855b stm32l1: rcc: use better naming for flash wait states
2017-10-03tests: gadget0: include sample udev rules and documentKarl Palsson
2017-09-02tests: gadget0: stm32f1 hack should be consistentAmitesh Singh
D+ is PA12 not PA11. The reason this worked before, is because the line before made PA12 output, and without setting the GPIO_ODR register _before_ hand, this meant as soon as it was switched to output, it received the reset value of GPIO_ODR for PA12, ie, 0. (Effectively doing a "free" gpio_clear(GPIOA, GPIO12) Because GPIO11 wasn't configured to be an output, the confusing gpio_clear(GPIOA, GPIO11) was simply configuring the pullup/down value of the input, which was still ignored, as it was (out of reset) in input floating mode. Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2017-06-24Remove unused Python variablesMike Naberezny
2017-06-23Remove unused Python importsMike Naberezny
2017-06-09tests: gadget0: delay between calls to trigger racesKarl Palsson
Attempt to be more brutal by delaying more often, instead of always promptly servicing the usb stack. This is implemented via using timer6 to do a known number of microseconds busy delay, and so only works on platforms that have reached at least core timer functionality, and provide the rcc_apb1_frequency variable. NOTE! This will _fail_ on devices using the st_usbfs drivers at present, but the code _should_ work, and the tests land to verify that the library fix, fixes the problem. (see subsequent commit)
2017-06-09tests: gadget0: stm32l0: use new clock helpers.Karl Palsson
Doesn't actually change the test results, but gets more coverage from the same test case.
2017-06-09tests: gadget-zero: run against all attached targetsKarl Palsson
Less command line arguments, more automatic "do what I mean"
2017-05-06tests: connect to existing openocd if runningKarl Palsson
Connect to an existing and pass the correct path name.
2017-03-31tests: gadget0: allow specifying DUT on CLIKarl Palsson
Easier than editing the file each time.
2017-03-31tests: gadget0: clean-upJochen Hoenicke
Drop unnecessary ; in python
2017-03-31tests: gadget0: remove magic constantsJochen Hoenicke
2017-03-31style: fix some of the easier style bugsKarl Palsson
No real changes.
2016-10-01tests: gadget0: test for unaligned buffer read/writes.fenugrec
This currently fails on stm32F072, which is expected but not normal. See GH issues #401 , #461
2016-10-01tests: gadget0: pull up endpoint size constantKarl Palsson
2016-08-19tests: update gadget zero readme docs for actually runningKarl Palsson
Fixes Github issue #652
2016-03-01minor stylecheck cleanupsKarl Palsson
2016-02-28tests: extract serials to optional local configKarl Palsson
Instead of having committed files containing a single developer's serials, use optional includes to include a local config file for each board. If you have only a single board connected, simply: $ make -f Makefile.<board> clean all flash If you have multiple boards connected, make sure to fill in the appropriate hla_serial in your openocd.<board>.local.cfg file, and then run the same commands.
2016-01-27tests: gadget0: config should be 0 in addressed stateKarl Palsson
2016-01-27tests: show expected, actual _and_ custom messagesKarl Palsson
See https://docs.python.org/2/library/unittest.html#unittest.TestCase.longMessage Allows showing the 42 != 69 : custom message instead of _only_ showing the custom message if one was specified.
2016-01-27tests: trivial: drop redundant ;Karl Palsson
2016-01-05tests: usb gadget0: Add stm32f429i-disco supportOliver Meier
The F429i board has the user USB OTG port connected to the HS capable OTG core, rather than the FS OTG core. It is still only operating in FS mode, as you need a ULPI phy to use HS mode.
2016-01-05tests: gadget0: Update for namespace cleanupsKarl Palsson
Fixes: 3a7cbec776bc9b9b53eefc26d5bf365466977e5a
2015-12-15[Style] Stylefix sweep over the whole codebase.Piotr Esden-Tempski
2015-10-11tests: Allow user override of C/CXX/CPP/LD flagsKarl Palsson
As recently added to the library, allow the tests to be compiled with user overridable flags too
2015-10-11usb: short control IN might need a ZLPKarl Palsson
Control transfers can transfer less than was requested by the host in the wLength field. if this short transfer is a multiple of the endpoint's packet size, a zero length packet must be sent. Adds tests for a range of control transfer IN requests, and properly supports this in the core. Based heavily on work by Kuldeep Dhaka. See https://github.com/libopencm3/libopencm3/pull/505 and https://github.com/libopencm3/libopencm3/pull/194 for original discussion. Tested with stm32f4, stm32f103 and stm32l053.
2015-10-06tests:gadget0: stm32l0: drop RCC test codeKarl Palsson
Don't commit commented out code! bad!
2015-10-06tests: gadget0: use proper usb enumerationsKarl Palsson
Eliminate warnings. carry over from developing in a different tree.
2015-10-06tests: gadget0: Add stm32l053 disco supportKarl Palsson
Much more complicated clock setup, but tests all pass once you get past that step.
2015-10-04tests: gadget0: F0: drop unnecessary code.Karl Palsson
* Only the L1 needed to include flash settings * whitespace and comment cleanup * drop redundant clock setting calls