Commit Graph

113 Commits

Author SHA1 Message Date
Émilie Feral
33ac117424 [ion] blackbox keyboard scan
The scan of keyboard in Blackbox should indicate that no
key is pressed in order to avoid interrupting all simplification
2018-05-17 13:45:21 +02:00
Émilie Feral
bb8ab2a42e Merge branch 'saisie-jolie' into master-merge-saisie-jolie 2018-05-16 11:28:07 +02:00
Émilie Feral
0bc2594489 [ion] Storage: deferencing nullptr? 2018-05-15 11:02:35 +02:00
Léa Saviot
7e9bbe3aea [ion] Add event names for Shift+Up/Down/Left/Right
Change-Id: I03cd5707ea2d9e460ed925009442e15d38572798
2018-05-09 12:17:30 +02:00
Léa Saviot
3b582a2e46 Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +02:00
Léa Saviot
f660c7750c [ion] Fix linear mode cursor position when pressing "cos" for instance
Change-Id: I7a39f875cc85eedc336818fcfe5b125c74a8960c
2018-05-07 14:14:02 +02:00
Romain Goyet
a29c775663 [ion] Encode the serial number in Base64
Also, expose serialNumber() in Ion and keep "copySerialNumber" in
Ion::Device. This allows the DFU bootloader to remain .bss-free.
2018-05-04 17:31:41 +02:00
Émilie Feral
235ec73e8e [emscripten] Fix alignment issue
Emscripten expects 32 and 16-bit memory accesses to be aligned.
2018-04-18 11:20:39 +02:00
Romain Goyet
2f1ebf7310 [emscripten] Work around alignment issues
Emscripten expects 32 and 16-bit memory accesses to be aligned.
This happens automatically most of the time, but in the case of our
Storage class, where we happen to read uint16_t out of a char array,
memory accesses might not be aligned. In that case, we rebuild the
uint16_t manually out of two bytes.
2018-04-18 10:04:18 +02:00
Léa Saviot
e846e31029 [usb] Clear interrupt on "false" ENUMDNE
Fixes a bug where the device would not get enumerated even if the plug
state was detected (an ENUMDNE interrupt had not been cleared, thus the
new enumeration attempt was not detected).

Change-Id: I19622221fc077965ed3cab5322944e4c2c89fde4
2018-04-16 10:48:11 +02:00
Romain Goyet
628992680b [ion] Ion::Storage is not a global variable anymore 2018-04-10 15:09:30 +02:00
Romain Goyet
c090e2aa13 [ion] Remove useless macros 2018-04-10 15:09:30 +02:00
Romain Goyet
e072630437 [ion] Get rid of FORCE_LINK 2018-04-10 15:09:30 +02:00
Léa Saviot
0419713de0 [ion/usb] Remove Ion::USB::removeSoftDisconnect()
Change-Id: I02268dc52aefa9d9d90ed559757f005af49f4732
2018-04-09 15:36:44 +02:00
Léa Saviot
49e1e56abe [ion] Add dummy USB functions
Change-Id: Id67dd947997a2812dd718fdf1ded2f3a2b68ff48
2018-04-06 14:31:49 +02:00
Léa Saviot
55d56b3927 [usb] Send real serial number in the device descriptor.
Change-Id: Ie64f2a0fb03913600c96986dab8171afaa6bf05b
2018-04-06 14:31:49 +02:00
Léa Saviot
de25105f4a [usb] Handle the usb Plugged detection in getEvent.
Change-Id: Idfba5925a7c79c722b0aad3a1c24799b31d88298
2018-04-06 14:31:48 +02:00
Léa Saviot
ff82ca26f2 [usb] Enable the USB core on calculator plugged.
Change-Id: I5b8ab068936524e775bb77a4569a2601e5a9844a
2018-04-06 14:31:48 +02:00
Léa Saviot
b7829a0937 [usb] Change apps and relocate usb stack on ram.
When the device is plugged to a USB host.

Change-Id: I5d7ae3c86cacce509b6ccca2746984f7e806cb49
2018-04-06 14:31:45 +02:00
Émilie Feral
f1ddf1dbf4 Valgrind: uninitialized value, memory leak 2018-03-28 10:02:09 +02:00
Émilie Feral
845fc7c979 [ion] Typo: NoEnough -> NotEnough 2018-03-22 14:01:38 +01:00
Émilie Feral
36e6851c21 [ion] Storage: change rule on record name compliance 2018-03-22 14:01:38 +01:00
Émilie Feral
b0ede47d55 [ion] Change Storage design (former kallax) 2018-03-22 14:01:38 +01:00
Émilie Feral
3c0adfe918 [ion] Move KallaxInfo to SoftwareVersion renamed in PlatformInfo 2018-03-22 14:01:38 +01:00
Émilie Feral
f9656fd94f [ion] Namespace Record and Kallax 2018-03-22 14:01:38 +01:00
Émilie Feral
aa984bca74 [escher][ion] Move Record and Kallax in Ion/ 2018-03-22 14:01:38 +01:00
Émilie Feral
4f3290514f [ion] Simulator/Emscripten/Blackbox: correct random implementation 2018-02-02 16:09:37 +01:00
Romain Goyet
489b26e813 Re-organize and re-prefix the Makefile variables 2018-02-02 14:30:35 +01:00
Émilie Feral
7aca44812e [ion] Correct random() implementation in simulator, blackbox and
emscripten
2018-01-23 10:24:52 +01:00
Jacob Young
115f75c06a Fix #8 with a custom getEvent for the simulator. 2018-01-16 09:59:49 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Émilie Feral
e3057d5c2b [poincare] Change multiplication sign
Change-Id: If58f62fa181ce7aac441d42d44ea65d68f0d6421
2017-10-25 18:19:01 +02:00
Romain Goyet
e5010b1621 Work around a GCC bug 2017-10-19 17:31:40 +02:00
Ian Abbott
357d76515b [ion][apps] Remove redundant AlphaLockShift state
Since the 'shift' key can now toggle between the AlphaLock and
ShiftAlphaLock states, there is no way to enter the AlphaLockShift
state, so remove it.
2017-09-26 17:44:25 +02:00
Ian Abbott
68eacca570 [ion] Toggle between AlphaLock and ShiftAlphaLock
Change the behaviour of the 'shift' key in the AlphaLock and
ShiftAlphaLock states to toggle between the two.  This makes it easy to
switch between upper case and lower case letters in ALPHA-lock mode,
although the common case of entering words with isolated captital
letters in alpha-lock mode now involves additional presses of the
'shift' key.

With this change, it is impossible to enter the AlphaLockShift state.
2017-09-26 17:44:25 +02:00
Damien Nicolet
6392735e70 Add orgin/end keyboard shortcuts, by pressing shift left or shift right 2017-09-20 10:16:34 +02:00
Adrien Bertrand
f287148844 [ion] fix crc32 for loop variable type 2017-09-04 21:34:30 +02:00
Jacob Young
2e105036ff Use the blackbox platform to run the tests on travis. 2017-09-01 04:00:28 -04:00
Émilie Feral
8fd329d167 [ion] Fix alpha and shift modifiers for emscripten
Change-Id: If8ae07048dddbcf77c18a7c9f06160359f6638ba
2017-08-25 11:20:49 +02:00
Émilie Feral
68cd3f4574 [apps][ion] Discard shift alpha status when switching app or switch off
Change-Id: I955276168c9e31f7aebccbe0d57e8f15bb030e7e
2017-08-17 16:21:21 +02:00
Émilie Feral
e0676d9cfc [ion] Fix dummy events modifier
Change-Id: If79f8e61c275189bc72ad2cbe035609e4c31d694
2017-08-17 09:31:59 +02:00
Émilie Feral
2900b901ba [ion] Clean alpha shift event modifiers
Change-Id: I6dd667fb12c0cd3d3e90a6f98da0bd56780dcff6
2017-06-30 10:42:30 +02:00
Émilie Feral
e37f1418e5 Clean DEBUG macro
Change-Id: I5acf266d565045468c6fba19b1ca493773ae78bc
2017-06-16 15:08:14 +02:00
Émilie Feral
6a888136c3 [apps/settings] Add FCC ID in about menu
Change-Id: Iafe06e56591399a1442b8de64257990ffa23ddac
2017-06-02 14:16:55 +02:00
Romain Goyet
c5c754031c [ion] Fix the events_replay generator
Change-Id: I8a638f31c64ca74f277bada4c94323b4d4dd2b29
2017-05-23 16:56:17 +02:00
Émilie Feral
bda4d46fae Merge changes Iebf9237d,Ia39a3518,I42b2c892,I710adab0,Ia35eb1cc, ...
* changes:
  [poincare] Resolve warning
  [escher] Fix bug: do not redraw window at each timer fire but only for timer requiring redraw
  [ion] Add a class State in Keyboard
  [liba] Correct __aeabi_llsr, __aeabi_llsl with tests
  [poincare] Change association rules in parser
  [apps/settings] Open hardware test with 6, t or T events
  [apps/calculation] Insert ans when starting expression with -, ^, *, +, /
  [i18n] Change message: "Valeurs"->"Tableau"
  [i18n] Change message
  [escher] Repaire optimal size for message text view
2017-05-23 15:39:42 +02:00
Émilie Feral
f9a1caa8eb [ion] Add a class State in Keyboard
Change-Id: I42b2c892deaedc83a7629d8c8be66cd4e1fbcb5c
2017-05-23 15:24:55 +02:00
Romain Goyet
1f8dc0cdcb [ion/device] Fix the location of the version informations
Change-Id: I9991f2b0c9a4ee678bd27f2e619f8772678a84f0
2017-05-23 09:53:32 +02:00
Romain Goyet
a1552b2fa1 [ion] Fix the emscripten build
Change-Id: Ia54c5de4191c47d9840854d9aad12f87a9110da3
2017-05-15 22:04:37 +02:00
Émilie Feral
b6b0e90966 [ion] In suspend, enable to wait until power release before suspending
Change-Id: I175998b450c3ef668280c00226be64e23f572a37
2017-05-09 17:15:45 +02:00