Commit graph

16 commits

Author SHA1 Message Date
Amir Hammad
4b23cb4850 demo: timer: BUGFIX: TIM6 prescaler
TIM6 has clock running at 84MHz instead of 168MHz,
so set the prescaler accordingly.

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-15 20:26:09 +02:00
Amir Hammad
187d01e3b2 Device drivers: Refactor: Remove prefixes of static functions and variables
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-08 08:08:55 +02:00
Amir Hammad
6625cda9f3 Device drivers: Refactor: Move driver declaration to the end of file
forward declarations are not needed

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-08 08:08:48 +02:00
Amir Hammad
ba197f8007 lld: stm32f4: refactor: Remove prefixes of static functions and variables
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-08 08:08:34 +02:00
Amir Hammad
7503fd901a lld: stm32f4: Move driver definitions to the end of file
This way, we don't need forward declarations

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-08 08:08:09 +02:00
Amir Hammad
5622fb0fda usbh_hubbed: device_register: Don't check for USB_DT_DEVICE twice
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-07 19:17:54 +02:00
Amir Hammad
0827b6982b LLD: stm32f4: change type of i to signed integer
this was causing infinite loop, when size of the
data was not multiple of 4.

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-06 19:53:03 +02:00
Amir Hammad
f86aacc59c Refactor device drivers: don't use automatic casts
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-06 19:52:48 +02:00
Amir Hammad
e31939e22f usbh_hubbed: reorder items in _usbh_dev_driver struct
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-05 13:27:44 +02:00
Amir Hammad
efa0baa458 use stdbool.h to define bool type
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-05 12:14:47 +02:00
Amir Hammad
0da537ec69 Device driver/hid_mouse: Bugfix enum STATES
fixing after enum STATES refactor.

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-05 11:52:38 +02:00
Amir Hammad
ae3449a302 demo: More precise timing, using TIM6
Overflows in 6.5536 seconds

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 19:08:53 +02:00
Amir Hammad
e35c1e9fc6 poll(): refactor every poll argument t_us and tflp -> time_curr_us
added comment to usbh_hubbed.h

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 18:29:32 +02:00
Amir Hammad
e9c2632a19 lld: stm32f4: poll(): fix return value
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 18:23:59 +02:00
Amir Hammad
c6aa4d99c2 demo: rcc_peripheral_enable_clock->rcc_periph_clock_enable
Instead of 2 argument call, use function with one argument.
It is more clear, and safer for inexperienced users with libopencm3.

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 18:05:00 +02:00
Amir Hammad
7acc6fe474 libusbhost: Open source USB host stack for embedded devices
First public version, date: 1.4.2015

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 16:22:05 +02:00