Commit Graph

30 Commits

Author SHA1 Message Date
Émilie Feral
6c2dabe7cc [ion] Enable/disable FSMC clock with all clocks
Change-Id: I541532b1803181109d788dd943a6384b3b09db63
2017-04-04 16:26:25 +02:00
Émilie Feral
7091b2ea35 [ion] Add software version, patch level and serial number
Change-Id: I011eeb2d8596f63e0c2fdedf353d544dc8a8a202
2017-04-04 14:18:11 +02:00
Romain Goyet
a58430e885 [ion] Calibrate the delay loops for the 96 MHz clock
Change-Id: I991d994c5c347c7d90a09b1daa2c2f3ca67dd1a1
2017-03-29 15:18:45 +02:00
Romain Goyet
311a6f985d [ion/device] Stop APB1
Change-Id: Icf84297e4c1539628c45804a8abf69e16117c294
2017-03-15 17:18:20 +01:00
Romain Goyet
4fde3a5304 [ion/device] Put all GPIOs except SWD as Analog/NoPuPd by default
Change-Id: I1c2874e0eceb5ea6fc7f98d91db9b6a454859bdd
2017-03-15 17:17:22 +01:00
Romain Goyet
1fc8e8ebd0 [ion/device] SWD powersave
Change-Id: I0550907f649829a4873ae2ffe8076f2c7132abc0
2017-03-15 16:16:43 +01:00
Romain Goyet
0cbc2cbaa2 GPIO power save should be mostly done by now
Change-Id: Ic4c5b8571cb3c95ef2347b1b1b387edab3aa3443
2017-03-15 16:16:13 +01:00
Romain Goyet
54a941b160 [ion/device] Always run at 96 MHz
Change-Id: I49588bdaae926cc5342f153ca8bbcc3dd1f29017
2017-03-15 16:14:13 +01:00
Romain Goyet
7b575a204b Merge changes I4d59900f,Ifd3d4c6b,I485bd67f,Ib2dd1d91,I29085da3, ...
* changes:
  [ion/device] Fix building console.o
  [apps/hwtest] Add CHARGE and KEYBOARD commands to lowlevel test
  [apps/hwtest] Proper MCU_SERIAL command
  [ion] Add a Ion::serialNumber function
  [apps/hwtest] Add ADC and BACKLIGHT commands to the lowlevel test
  [ion/device] Use the proper ADC channel
  [ion] Add a console facility
  [apps/hwtest] Blink the LED from the lowlevel test
  [apps/hwtest] The lowlevel test uses the UART
  [ion/device] Add USART register
  [apps] Add a lowlevel test app
  [ion/device] Add SPI registers
2017-03-07 10:15:55 +01:00
Romain Goyet
eaeed82eea [ion] Add a Ion::serialNumber function
Change-Id: Ib2dd1d9187936f5c044bbcbc21dc7164fe6e9822
2017-02-28 18:56:04 +01:00
Romain Goyet
bca8a6fd86 [ion] Add a console facility
Change-Id: I34b406ae8589fdd2a5d6b826b34ac411359b58dc
2017-02-27 14:13:19 +01:00
Romain Goyet
809fd8a17a [ion] Ion::random()
Change-Id: Ib85055ab3b4bf3dfce991f9990659c744be20f39
2017-02-20 16:14:48 +01:00
Romain Goyet
bd220b2cd7 [ion/device] Minimal clock setup to enable RNG
Change-Id: I01ad7dfdb25f00b918263459660544f24d480257
2017-02-20 13:33:14 +01:00
Romain Goyet
caea1fe4cb [ion] Set all GPIOs to analog/non-pulled in release mode
Change-Id: Ie7dedc1089b0023a124af04a4d016cc9a843e28b
2017-01-25 10:55:22 +01:00
Romain Goyet
895b312b51 [ion] Enable deep sleep
Change-Id: I0abba2d6ffcc2fff09facb6f5f01aa2d72451aa0
2017-01-25 10:27:48 +01:00
Romain Goyet
267e470d36 [ion] Cleaner init/shutdown mechanism
Change-Id: Ied611edff2ada3634acccb509d21958a4350ed19
2017-01-24 17:35:28 +01:00
Romain Goyet
025405d01d [ion] Add Ion::crc32
Takes only 32bit values. Uses non-reversed data/input

Change-Id: I8a776064af69047f7a8fa1399cf8a484f42b9b18
2017-01-06 17:22:29 +01:00
Romain Goyet
c1db79b5f9 [ion] Add a backlight namespace
Change-Id: I0b9ec9a1b342d4b949776f0303eca69a28d1de91
2017-01-05 16:00:10 +01:00
Romain Goyet
9b2fecfb12 [ion] Add Ion::usleep
Change-Id: Ife70133410e55c3f0af9a838543042a3da618119
2017-01-05 16:00:01 +01:00
Émilie Feral
548ac8902e [ion] Init FPU before calling static object contructors
Change-Id: I4e29825183f8014b237b213452914764f9df8d62
2016-12-09 11:01:43 +01:00
Romain Goyet
ca78e007cf [ion/device] SD card initialization
Change-Id: I178f8be7063c86a400e968f85988f34469c4acd5
2016-11-24 18:37:40 +01:00
Romain Goyet
23f41e1b89 [ion/device] Migrate to 16-bits FSMC
Change-Id: I27af3425b631900b4d6041a4f890847e07808de6
2016-11-07 17:09:59 +01:00
Romain Goyet
6077a72ae3 [ion] Provision to clock the CPU at 96 MHz
Change-Id: I397ff23941dfff3ea3c2e217c0fb1ba242326cfb
2016-09-28 15:44:20 +02:00
Romain Goyet
99a4e3de91 [ion] Enable suspend/resume
Change-Id: I1fe580de7f98b95c768416ca889a7d74dad851ca
2016-08-31 17:07:41 +02:00
Romain Goyet
19c484640f [ion] Measure the battery voltage
Change-Id: Ic3c05eb65e2db3a66f2d2413821a0c121facd98f
2016-08-29 16:55:48 +02:00
Romain Goyet
55ce65be9c [ion] Set the backlight on boot
Change-Id: Ifdb7a14ff4667633b6aed85fc61b88dd4467b3bf
2016-08-29 13:38:06 +02:00
Romain Goyet
831c42796b [ion] Add battery-related functions
Change-Id: Ib63b48140a8347d0d07902d956a3685fb040c481
2016-08-29 13:25:14 +02:00
Romain Goyet
457b7215fd [Ion] Enable setting the LED's color
Change-Id: Ib3e25be8d180f9d19ad3a0d0861b210d8a702194
2016-08-23 17:29:07 +02:00
Romain Goyet
439f2702d8 [Ion] Remove C registers
Change-Id: Ic6330126b38ec58f1936862693b5874989499017
2016-08-23 17:07:16 +02:00
Romain Goyet
753a4a7cb5 [Ion] Move to C++
Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
2016-08-23 16:30:15 +02:00