Commit Graph

1389 Commits

Author SHA1 Message Date
Fabien Chouteau
2070e6f13d Start MicroBit v2 support 2021-05-06 11:50:55 +02:00
Simon Wright
f100ce784e Use symbolic interrupt priority for SDMMC. (#382)
* Use symbolic interrupt priority for SDMMC.

  * arch/ARM/STM32/drivers/sd/stm32-sdmmc_interrupt.ads
    (SDMMC_Interrupt_Handler): Supply the required interrupt priority via
      a discriminant.

* Added omitted 'with System'.

  * arch/ARM/STM32/drivers/sd/stm32-sdmmc_interrupt.ads: as summary.

* Matching change for boards where SDCard is used.

 * boards/stm32_common/sdcard/sdcard.adb (SD_Interrupt_Handler):
     include Priority discriminant.
2021-03-11 11:53:35 +01:00
Ahmed Hamdy
663a729926 LSM303AGR driver implementation (#380) 2021-01-08 12:19:47 +01:00
Fabien Chouteau
a407ca7ddb Remove unused code (#378) 2020-12-14 17:08:28 +01:00
Fabien Chouteau
00cc208e37 Micro:bit: detect incompatible accelerometers (#376) 2020-12-01 11:43:59 +01:00
Fabien Chouteau
acf34d580c Cortex-M systick: Fix TICKINT values (#377)
The fix was fixed in the SVD files [1] but not in ADL.

[1] c2fb35bfc9
2020-12-01 10:19:51 +01:00
Roderick Chapman
fce621480b Add first draft of FE310.Performance_Monitor package. (#370)
* Add first draft of FE310.Performance_Monitor package.

* Correct comments and remove white-space.
2020-10-12 10:33:56 +02:00
Fabien Chouteau
aa288ccb5f cortex_m/src/nvic_cm0/cortex_m-nvic.ad[bs]: Fix interrupt priority (#373)
Based on #330.
2020-10-07 17:25:53 +02:00
Lambourg Jérôme
2aabce0d9b Various fixes (#184)
* stm32.Setup: take care of already initialized I2C ports.

* HAL: fix the alignment of audio buffers.
2020-10-07 11:40:22 +02:00
Simon Wright
a955b10f90 Add interrupt support for Nordic GPIO. (#371)
* Add GPIO interrupt support for Nordic GPIO.

  * arch/ARM/Nordic/drivers/nrf_common/nrf-gpio-tasks_and_events.ad[sb]:
      Added subprograms to enable, test for presence, acknowledge and
      disable both channel and port interrupts.

* Correct style warnings for Nordic GPIO interrupts.

* Match Nordic GPIO changes to AdaCore style.

  * arch/ARM/Nordic/drivers/nrf_common/nrf-gpio-tasks_and_events.ads
    (Channel_Event_Is_Set): renamed to Channel_Event_Set.
    (Port_Event_Is_Set): similarly.
  * arch/ARM/Nordic/drivers/nrf_common/nrf-gpio-tasks_and_events.adb:
    likewise. Keyword 'is' always on new line.
2020-09-24 18:32:33 +02:00
Fabien Chouteau
93f7045a3c components: add driver for solder.party BBQ10 keyboard I2C interface (#368) 2020-09-18 13:17:48 +02:00
Fabien Chouteau
f67115ada7 Various Microbit examples fixes and improvements (#367)
* micro:bit examples digital_out: fix resistor value

* micro:bit examples digital_in: fix resistor value

* Update README.md

* Typo

* Typo

* Update README.md

* Update README.md

* Update README.md (#366)
2020-09-18 13:16:44 +02:00
Jeremy Grosser
830fde073a PCD8544 LCD driver (#364) 2020-09-17 14:49:10 +02:00
Fabien Chouteau
c9290bc39d Add RISC-V performance CSR support (#363)
* Add RISC-V performance CSR support

* RISC-V Read_CSR_64: fix rv32 version

* RISC-V improve CSR support

Add sub-program to swap, set bits, clear bits, etc.
Instantiate sub-programs for all machine CSRs.
2020-09-15 18:08:30 +02:00
Stian Onarheim
c753e3ef25 Added Frown, Cross, Checkmark and Heart symbols (#360)
* Added Frown, Cross, Checkmark and Heart symbols

* Removed trailing spaces
2020-09-01 16:21:25 +02:00
Fabien Chouteau
0650636272 Fix GH workflow on Windows (#361) 2020-09-01 14:22:04 +02:00
Pat Rogers
9b6737eb5a Merge pull request #358 from AdaCore/microbit_readme
Update README.md
2020-08-06 14:42:27 -05:00
Fabien Chouteau
4b5b967ed8 Update README.md 2020-08-06 19:24:16 +02:00
Jeremy Grosser
0c93f623d0 Olimex STM32-H405 board support (#356)
* Olimex STM32-H405 board support

* Add STM32-H405 to build_all_examples.py, fix for style checks

* Use stm32f4 runtime for STM32-H405 board

* Add STM32_H405 to board_projects_generator.py
2020-07-30 12:31:31 +02:00
Fabien Chouteau
9f88a65a31 scripts/config/user_input/console.py: Python3 migration
raw_input() is renamed to input().

Part of #354.
2020-07-08 09:55:15 +02:00
Simon Wright
a5014924e5 Reduce optimization opportunities in Semihosting.
* arch/ARM/cortex_m/src/semihosting.adb (Write_0): Data is of new
      type Byte_Array, which is a new UInt8_Array with volatile
      components (FSF GCC was miscompiling at -O3).
2020-06-17 16:41:11 +02:00
Fabien Chouteau
46be7f2d30 Switch continuous integration to GitHub Action workflow 2020-06-16 16:31:37 +02:00
Fabien Chouteau
4bb75b423f scripts/install_dependencies.py: report errors from dependency script 2020-06-16 16:31:37 +02:00
Simon Wright
87cd0d4165 Add PMW3901 (flow) sensor support (2). (#348)
* Added PMW3901 (flow) sensor support.
Includes general-purpose check for whether this SPI port is clocked.

  * components/src/motion/pmw3901/pmw3901.ads: new.
  * components/src/motion/pmw3901/pmw3901.adb: new.

  * components/src/motion/pmw3901/pmw3901-is_clocked.adb: new. The
      check for the associated SPI port being clocked is implemented
      as a separate because it really belongs in the Device package.

* PMW3901 driver no longer depends on STM32.

  * components/src/motion/pmw3901/pmw3901.ads: remove dependency on
      STM32, replace by HAL equivalent.
    (Initialize): replace precondition using Is_Clocked to 'not
      Is_Initialized'.
    (Is_Clocked): removed.
  * components/src/motion/pmw3901/pmw3901.adb: likewise.
  * components/src/motion/pmw3901/pmw3901-is_clocked.adb: removed.

* PMW3901 copyright/clarity updates.

  * components/src/motion/pmw3901/pmw3901.adb: Updated copyright
      notice, as requested.
  * components/src/motion/pmw3901/pmw3901.ads: Likewise.
    (Motion's rep spec): moved to private part, to reduce clutter.
2020-06-09 16:17:28 +02:00
Simon Wright
4b3873548b Added procedure to configure the external SPI Computer Select pin.
* boards/crazyflie/src/stm32-board.ads fixed (C) to AdaCore style.
    (Configure_EXT_CS): new.
  * boards/crazyflie/src/stm32-board.adb: likewise. Added box comments.
2020-06-08 10:58:46 +02:00