aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-06 10:35:53 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-06 10:35:53 +0000
commit47a8438f5b7e146294a666a3e3ed3151fba8e9b9 (patch)
treecc0adb6e6e32e6c7de14b4188c7e1323bb312201 /testhal/STM32/STM32F3xx
parent0f36cd1e80b17b0c70e3e8f66dad1dcf77653d4f (diff)
downloadChibiOS-47a8438f5b7e146294a666a3e3ed3151fba8e9b9.tar.gz
ChibiOS-47a8438f5b7e146294a666a3e3ed3151fba8e9b9.tar.bz2
ChibiOS-47a8438f5b7e146294a666a3e3ed3151fba8e9b9.zip
Fixed bug #817.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10090 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F3xx')
-rw-r--r--testhal/STM32/STM32F3xx/DAC/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F3xx/DAC/main.c b/testhal/STM32/STM32F3xx/DAC/main.c
index d7ccfc4af..b5988383f 100644
--- a/testhal/STM32/STM32F3xx/DAC/main.c
+++ b/testhal/STM32/STM32F3xx/DAC/main.c
@@ -59,7 +59,7 @@ static const dacsample_t dac_buffer[DAC_BUFFER_SIZE] = {
* DAC streaming callback.
*/
size_t nx = 0, ny = 0, nz = 0;
-static void end_cb1(DACDriver *dacp, const dacsample_t *buffer, size_t n) {
+static void end_cb1(DACDriver *dacp, dacsample_t *buffer, size_t n) {
(void)dacp;
@@ -140,7 +140,8 @@ int main(void) {
/*
* Starting a continuous conversion.
*/
- dacStartConversion(&DACD1, &dacgrpcfg1, dac_buffer, DAC_BUFFER_SIZE);
+ dacStartConversion(&DACD1, &dacgrpcfg1,
+ (dacsample_t *)dac_buffer, DAC_BUFFER_SIZE);
gptStartContinuous(&GPTD6, 2U);
/*