1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-26 12:17:32 +02:00
ben-wpan/atusb/fw/usb
Werner Almesberger 3cc92cc4a6 atusb/fw/: define USB bus current (40 mA) in board.h based on measured value
The measured values are:

board idle, looping	  9 mA
LED on			+ 5 mA
TX CW (+3 dBm)		+14 mA
			------
			 28 mA
			======

Adding a margin of 12 mA, we get 40 mA. DFU used 30 mA so far, the
application 50 mA.

- board.h (BOARD_MAX_mA): define maximum USB bus current
- descr.c (config_descriptor), usb/dfu.c (config_descriptor):
  use BOARD_MAX_mA for bMaxPower instead of hard-coding values
2011-06-10 19:33:24 -03:00
..
atu2.c atusb/fw/: SET_INTERFACE can now select among interfaces (changes user_setup) 2011-06-10 17:12:57 -03:00
dfu.c atusb/fw/: define USB bus current (40 mA) in board.h based on measured value 2011-06-10 19:33:24 -03:00
dfu.h atusb/fw: introduced function flash_end_write to properly finish flashing 2011-03-11 17:56:41 -03:00
usb.c atusb/fw/: SET_INTERFACE can now select among interfaces (changes user_setup) 2011-06-10 17:12:57 -03:00
usb.h atusb/fw/: SET_INTERFACE can now select among interfaces (changes user_setup) 2011-06-10 17:12:57 -03:00