King Kévin
230151a102
(minor) remove trailing spaces
2019-03-26 19:27:40 +01:00
King Kévin
b4612b03bb
menu: add hex and bin arguments
2019-03-26 18:49:48 +01:00
King Kévin
a82666e997
menu (minor): add space around operators for readability
2019-03-26 18:47:17 +01:00
King Kévin
f37a6ee4ef
I2C (minor): use CM3 assert instead if manual check
2019-03-26 18:35:46 +01:00
King Kévin
62b83fd34d
I2C (minor): add space around operators for readability
2019-03-26 18:25:23 +01:00
King Kévin
a50a181b86
I2C: fix read NACK
...
NACKing in receive mode is different when 1, 2, or more bytes are
read.
see the reference manual for the cases and how to handle them.
2019-03-26 18:12:22 +01:00
King Kévin
bf2eca0401
I2C: add timeout to stop
...
similar to the start condition, a timer will prevent it to block.
2019-03-26 18:11:17 +01:00
King Kévin
efbd228f8a
I2C: don't clear ADDR after select
...
to check if the slave has successfully been selected to read or
write and the master is in the corresponding receive or transmit
state, SR2 was checked.
but reading SR2 also cleared the ADDR bit, starting the read/write
transaction.
the check is done in the read/write methods anyway.
2019-03-26 18:07:26 +01:00
King Kévin
ef4685a9a3
I2C: don't block on reset
...
when resetting the GPIO lines are toggles.
when this is not effective it used to block.
not it just warns the used it failed.
2019-03-26 18:05:18 +01:00
King Kévin
396c7852e7
I2C: add timeout to send start condition
...
sometimes the internal state f the I2C peripheral is confused,
and sending a start condition is not possible and the
corresponding registers will not be set.
see the errata for more details.
as workaround a timer is used, resetting the I2C is case it times
out
2019-03-26 18:01:23 +01:00
King Kévin
5e13d19bda
DFU: multiple fix
...
* add spaces around operators
* remove detach timeout since we reboot immediately after download
* reduce polling timeout to increase flashing speed
* use block number instead of counting to know which page to flash
* remove detach case since this request is only for runtime mode
* fix APP_IDLE to DFU_IDLE
2019-01-12 16:23:20 +01:00
King Kévin
4dbf6df59f
DFU: update call to match library
2018-10-29 12:30:23 +01:00
King Kévin
5c976064b0
flash_internal: return number of bytes written
2018-10-29 12:29:47 +01:00
King Kévin
6c829a51cf
flash: only erase and preserve flash when required or requested
2018-10-28 22:50:51 +01:00
King Kévin
42ed03fa67
add IR NEC library
2018-10-28 22:46:52 +01:00
King Kévin
c5fc45b5a1
terminal: make prefix bold
2018-10-07 23:15:53 +02:00
King Kévin
507d2d05de
1-Wire: fix doc
2018-10-07 23:15:53 +02:00
King Kévin
30628ebb37
fix library dependency
2018-10-07 23:15:46 +02:00
King Kévin
d3fd1ff84f
1-Wire: add family code device table
2018-10-07 23:13:23 +02:00
King Kévin
8e710f21c4
USART: put parity LUT in header so others can use it
2018-10-07 23:11:19 +02:00
King Kévin
7b0922b614
1-wire: add option to use interrupt redirection
2018-10-07 23:11:19 +02:00
King Kévin
1e330bee2f
interrupt: add library to redirect ISR at runtime
2018-10-07 23:11:19 +02:00
King Kévin
b02e9b172e
1-wire: stop search when not slave is detected, and mention that code 0 means the data line might not be pulled up
2018-10-07 23:09:26 +02:00
King Kévin
2dadbb8292
USART enhanced: add additional data bits and parity support
2018-10-07 23:09:26 +02:00
King Kévin
3c7466ca0e
UART: fix transmission problem when buffer is full
2018-10-07 23:09:26 +02:00
King Kévin
c6f78ad2ee
UART: set to common 115200 baudrate
2018-06-08 13:39:40 +02:00
King Kévin
444534e214
1-Wire: remove misleading parasitic power function, add byte function
2018-06-08 10:47:30 +02:00
King Kévin
fa3293a1f9
USB: fix packet loss
2018-06-08 10:46:33 +02:00
King Kévin
76994571b5
USB: fix user buffer overwrite
2018-06-08 10:46:33 +02:00
King Kévin
0ac0af5d52
update code to libopencm3 API change
2018-06-08 10:46:33 +02:00
King Kévin
372655c97c
USB: improve comments and a fix of code
2018-06-08 10:45:01 +02:00
King Kévin
98a1f05ac6
flash_internal: fix page size detection
2018-04-07 11:16:28 +02:00
King Kévin
7b90696b6c
flash internal: check enforced flash size
2018-04-06 19:56:57 +02:00
King Kévin
4a634fb19f
USB: fix doc
2018-04-06 16:54:48 +02:00
King Kévin
96f3458317
USB: use pid.codes USB PID codes for CuVoodoo board
2018-04-03 17:08:34 +02:00
King Kévin
4470ba7de2
take OLED SSD1306 library from busvoodoo branch
2018-04-03 17:00:04 +02:00
King Kévin
593b0e0e25
take changes from busvoodoo branch
2018-04-03 16:59:02 +02:00
King Kévin
62bfaf3973
cherry-pick from busvoodoo branch, part 4
2018-02-18 15:21:18 +01:00
King Kévin
8ba50b2d65
cherry-pick from busvoodoo branch, part 3
2018-02-18 15:20:47 +01:00
King Kévin
e14f6bccd6
cherry-pick from busvoodoo branch, part 2
2018-02-18 15:20:01 +01:00
King Kévin
0c925ba957
cherry-pick from busvoodoo branch, part 1
2018-02-18 15:18:42 +01:00
King Kévin
a41773b3cf
rtc_dcf77: better decoding using signal correlation
2017-10-13 16:03:37 +02:00
King Kévin
b15c0c10d8
lib/led_ws2812b: now use global macros
2017-10-13 16:03:37 +02:00
King Kévin
b1a470bedc
lib/rtc_dcf77: update library to use global macros
2017-10-13 16:03:37 +02:00
King Kévin
df67204cc8
lib/rtc_dcf77: make library compilable again
2017-10-13 16:03:37 +02:00
King Kévin
1ec65d9fe3
onewire_slave: use byte sizes instead of bits
2017-10-04 14:00:42 +02:00
King Kévin
bc6e7a9c47
onewire_slave: remove debug code
2017-10-04 13:55:43 +02:00
King Kévin
8045e1d093
add onewire slave library
2017-10-04 13:55:43 +02:00
King Kévin
d25a25f9a8
onewire_master: fix rom search
2017-10-04 13:55:43 +02:00
King Kévin
4f00788b8a
doc: improve tag
2017-10-04 13:55:43 +02:00
King Kévin
3b73f519da
doc: fix typo
2017-10-04 13:55:43 +02:00
King Kévin
1fce4984d4
onewire_master: add parasite power support
2017-10-04 13:55:43 +02:00
King Kévin
bd2f1642cc
onewire_master: remove malloc in favor of pre-allocated buffers
2017-10-04 13:55:43 +02:00
King Kévin
355eb79e4e
sensor_ds18b20: fix doc typo
2017-10-04 13:55:43 +02:00
King Kévin
c3b35be66c
flash_sdcard: add write data function and improve other functions
2017-08-01 02:05:41 +02:00
King Kévin
f681026ec2
flash_sdcard: add function to retrieve erase block size
2017-08-01 02:05:41 +02:00
King Kévin
22d4dc31f8
flash_sdcard: add flash_sdcard_size to get SD card size
2017-08-01 02:05:41 +02:00
King Kévin
360202c073
remove debug library
2017-08-01 02:05:41 +02:00
King Kévin
0909297bc2
add card speed switching
2017-08-01 02:05:41 +02:00
King Kévin
0de7f8213c
sdcard: add reading data block
2017-08-01 02:05:41 +02:00
King Kévin
30c72a78a8
add library to read SD card flash memery: card identification implemented
2017-08-01 02:04:06 +02:00
King Kévin
b5001670e4
replace usart_get_interrupt_source with usart_get_flag to match libopencm3 update
2017-06-27 15:38:00 +02:00
King Kévin
aeec7c0490
add microwire library
2017-04-15 13:59:01 +02:00
King Kévin
3f42242571
change baudrate to 1.5Mbps since the CP2102 can't handle more
2017-04-15 13:58:14 +02:00
King Kévin
b26a10e085
add DFU runtime to USB CDC ACM profile
2017-04-15 13:57:45 +02:00
King Kévin
8664b96055
make flash library more general purpose and optimize it
2017-04-15 13:57:19 +02:00
King Kévin
d7220e1106
make flash library more general purpose and optimize if
2017-04-15 13:57:02 +02:00
King Kévin
1b19987404
move DFU library to library folder
2017-04-15 13:55:45 +02:00
King Kévin
a598925ad7
add MAX7219 7-segment display library from clapperboard project
2017-04-03 13:09:06 +02:00
King Kévin
5ea5e18806
add TM1637 7-segment display library from clapperboard project
2017-04-03 13:08:49 +02:00
King Kévin
09474410c5
add own print library to replace heavy glibs library
2017-04-03 13:07:53 +02:00
King Kévin
6d3e826c18
add general I2C library
2017-04-03 13:07:03 +02:00
King Kévin
0a7ed77094
add library fix from clapperboard project
2017-04-03 13:05:30 +02:00
King Kévin
c397e389b9
switch speed to 2 Mbps instead of legact 115200 bps
2017-04-03 13:04:51 +02:00
King Kévin
04249b205e
fix doc
2017-04-03 13:03:48 +02:00
King Kévin
75658c2c1a
add DS18B20 temperature sensor library from thermo-regulator project
2017-03-28 12:39:11 +02:00
King Kévin
48ac76bc02
add 1-Wire master software implementation library from thermo-regulator project
2017-03-28 12:38:43 +02:00
King Kévin
610d366754
add DHT22 sensor library from thermo-regulator project
2017-03-28 12:38:07 +02:00
King Kévin
b7049df659
add improvement from thermo-regulator project
2017-03-28 12:37:34 +02:00
King Kévin
c76abae464
add Aosong DHT11 relative humidity and temperature sensor library
2017-02-06 17:33:27 +01:00
King Kévin
4e9d7efcba
add timer for inter-messsage silence to improve response rate
2017-01-30 09:54:58 +01:00
King Kévin
98469964a5
fix typo
2017-01-30 09:46:54 +01:00
King Kévin
f09e5cb98a
use USART 2 instead of 1 for ESP8266
2017-01-30 09:46:04 +01:00
King Kévin
a3d838e665
add new library from spark abacus project
2016-10-23 17:42:55 +02:00
King Kévin
7aa9c23a27
add changes from spark abacus project
2016-10-23 17:42:27 +02:00
King Kévin
8002255525
document and correct VFD library
2016-08-14 20:18:10 +02:00
King Kévin
78f052e540
rename flash library
2016-08-14 19:25:58 +02:00
King Kévin
dade16b86a
document flash library
2016-08-14 19:25:38 +02:00
King Kévin
54d8f82353
remove trivial incomplete library
2016-08-14 19:05:32 +02:00
King Kévin
101c20ebec
get new library files from LED clock
2016-08-14 18:37:58 +02:00
King Kévin
81c40d86ff
get improved library files from LED clock
2016-08-14 18:37:30 +02:00
King Kévin
618de224e0
add all common changes, files, and libraries from previous project
2016-02-18 10:39:08 +01:00
King Kévin
b1a9b811ba
fix port
2016-01-29 11:06:21 +01:00
King Kévin
af0bc91916
fix disconnect time
2016-01-29 10:40:00 +01:00
King Kévin
9c19273ecd
add USB disconnect functionnality for maple mini to force re-enumerate
2016-01-29 00:35:54 +01:00
King Kévin
3a76222050
send buffered data when connected to USB CDC ACM serial port
2016-01-29 00:26:12 +01:00
King Kévin
875e0de18b
make USART more noise resistant
2016-01-29 00:25:29 +01:00
King Kévin
ebab5e223b
add improved files from vfd driver proect
2016-01-28 21:21:50 +01:00
King Kévin
4a149d6a80
add library to support USB CDC ACM communication
2016-01-18 16:15:23 +01:00
King Kévin
8b8b2bf287
make variables static
2016-01-18 16:12:42 +01:00
King Kévin
55cb2009d9
example now echos back UART communication
2016-01-17 15:03:10 +01:00
King Kévin
f0d2933ff8
add basic LED+USART example
2016-01-17 14:54:54 +01:00