Граф коммитов

116 Коммитов

Автор SHA1 Сообщение Дата
Michal Moskal 12c50686a9 Calibrate bitbang spi timings on G0 2021-03-27 10:49:16 -07:00
Michal Moskal cce619a639 Don't divide in target_wait_us() 2021-03-27 10:48:59 -07:00
Michal Moskal 3c31f2a99e G0 has separate rising and falling EXTI 2021-03-27 09:40:11 -07:00
Michal Moskal 21d02d92e3 Save a few us in reception 2021-03-25 16:28:56 -07:00
Michal Moskal b94b514930 bitbang SPI for G0 2021-03-23 22:36:33 -07:00
James Devine 42bc122758 add new pin mappings for pwm and better error message 2021-03-23 08:37:06 +00:00
Michal Moskal 2577ffd6e9 Support PWM on PB_8 on G0 2021-03-19 20:08:10 -07:00
Michal Moskal 71038abb52 merge master 2021-03-17 11:40:20 -07:00
Michal Moskal 0db5cbb5ea Don't use LL_GPIO_Init() 2021-03-17 11:39:37 -07:00
Michal Moskal a8ba0f4c01 LED changes for bootloader 2021-03-17 11:39:12 -07:00
Michal Moskal ac56d865f6 Fix align reqs for g0 flash 2021-03-16 09:05:25 -07:00
Michal Moskal cbae1082d7 Fix flash erase on g0 2021-03-15 17:12:03 -07:00
Michal Moskal d6b17169a5 Remove junk code 2021-03-09 10:07:58 -08:00
Michał Moskal 86de72c8dc
support for STM32G0 series (#16)
* add submodules and config for g0 port

* Rename FLASH_SIZE to JD_FLASH_SIZE (conflict with HAL)

* Fix a number of peripherals for G0

* Disable PLL switching on USART2 (also on F0)

* Fix RTC for G0

* UART and BL G0 fixes

* Disable namestore (unused) on G0

* Move device id to OTP

* Fix uart in bl

* Fix cpu_mhz init

* Real Time Clock has a Clock on G0!

* Fix temp reading on g0

* Fixup board init code

* Make it build on F0 again

* Adjust start delays
2021-03-09 18:50:43 +01:00
James Devine 48be0d64ef
add stm32f042 (#15)
* add stm32f042

* neaten up uart clock source code

* remove DMESG debug

* update adc code to use correct temperature calibration

* define TS_CAL2 for F042

* correct flash size

* enable USART2 clock in bootloader

* add ifdef guard around enabling usart2 clock

* also ifdef guard enabling usart1

* fix case of stm32f042x6.mk
2021-02-26 21:12:35 +01:00
Michał Moskal 897c42b44a
board definitions moved to a separate repo (#14)
moved to https://github.com/microsoft/jacdac-msr-modules
2021-02-18 02:21:04 +01:00
Tom Ball 4d7d172fe4 remove the submodule link 2021-02-17 00:34:53 -08:00
Tom Ball b1c6da04f7 update to master 2021-02-16 22:42:00 -08:00
Michal Moskal 44f486820e more error codes in i2c 2021-02-16 15:13:25 -08:00
Michal Moskal 63e71ef2cf Fix read i2c bug 2021-02-16 12:14:45 -08:00
Michal Moskal 419fba111d Add 16-bit register address support in i2c 2021-02-16 10:58:16 -08:00
Michal Moskal 592af98c14 feat: implement light.max_pixels 2021-01-11 15:41:08 +01:00
Michal Moskal 53de6b5c8d feat: Include watchdog register
Also shorten error messages
2021-01-07 16:31:06 +01:00
Michal Moskal d56e1531b7 BMP fix 2021-01-06 15:48:23 +01:00
Michal Moskal e836ceb9a5 Remove unneeded submodule 2020-12-17 10:12:40 +01:00
Tom Ball 71300cbd5c some minor changes 2020-12-16 13:23:52 -08:00
Michal Moskal 0fc2c66349 feat: use official STM32 submodules 2020-12-16 17:15:57 +01:00
Michal Moskal 636163573b Allow for setting override 2020-12-16 13:55:27 +01:00
Michal Moskal 72bfc72013 Fix SPI RX 2020-08-12 09:17:32 +02:00
Michal Moskal 9b860c4828 Fixes for bridge 2020-08-11 10:07:00 +02:00
Michal Moskal 3f46619391 Initial bridge impl 2020-08-10 17:21:42 +02:00
Michal Moskal 777c6330b9 Start work on JD-m:b bridge 2020-08-10 12:28:57 +02:00
Michal Moskal 4d1cf25b63 Update jacdac-c 2020-07-24 17:21:29 +02:00
Michal Moskal 256eadbfdf Fix i2c<->irq interaction bug 2020-07-04 13:12:28 -07:00
James Devine 19faa65254 save some flash...
We are really close to exceeding flash space
2020-06-24 12:15:51 +01:00
James Devine 7430a0f96b move services out
It seems however I need to work on BL build... currently overflowing
2020-06-24 12:13:01 +01:00
James Devine c7f07d2592 use jd_alloc 2020-06-17 21:01:21 +01:00
Michal Moskal ba63c476c3 Merge branch 'master' into jacdac-c 2020-06-17 10:58:54 -07:00
Michal Moskal 8cbc99ecd7 Fix RTC time sync after long non-RTC period 2020-06-15 12:55:51 -07:00
Michal Moskal e4d537350f Sanity check prescaler 2020-06-13 17:21:15 -07:00
Michal Moskal 17ff5a6deb Support for APA-pixels 2020-06-11 11:29:48 -07:00
Michal Moskal 2ebde417f8 Fix npx color order 2020-06-11 07:58:08 -07:00
Michal Moskal 78347e4b51 Re-work light interface 2020-06-10 19:07:54 -07:00
James Devine a8015e5e8b try to compile with jacdac-c 2020-06-08 17:39:00 +01:00
Michal Moskal 42cbe52ca8 Switch to ADC random in BL 2020-06-03 07:57:22 -07:00
Michal Moskal d4f573b11a Add more granular ADC interface 2020-06-02 11:07:44 -07:00
Michal Moskal 2b5dcb3b3d Add jm2 servo 2020-06-01 19:14:49 -07:00
Michal Moskal b70d9ba331 Working music service 2020-05-29 09:55:48 -07:00
Michal Moskal 60d856871d Adding snd module 2020-05-29 08:38:03 -07:00
Michal Moskal b64c23a996 Arcade ctrls fixes 2020-05-27 19:31:28 -07:00