Skip to content

Commit 7c65224

Browse files
fix travis builds
1 parent 36aca88 commit 7c65224

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ env:
1717
- TARGET=stm32f429discovery/adcdma
1818
- TARGET=stm32f429discovery/adcpolling
1919
- TARGET=stm32f429discovery/button
20-
- TARGET=stm32f429discovery/charlcd
2120
- TARGET=stm32f429discovery/gyro
2221
- TARGET=stm32f429discovery/leds
2322
- TARGET=stm32f429discovery/spimaster

chips/include/l3gd20.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ void l3gd20_power(l3gd20_t *l3gd20, int power);
5252
void l3gd20_scale(l3gd20_t *l3gd20, l3gd20_scale_t scale);
5353
void l3gd20_frequency(l3gd20_t *l3gd20, l3gd20_datarate_t odr, l3gd20_bandwidth_t bw);
5454
void l3gd20_filter(l3gd20_t *l3gd20, float cutoff);
55-
void l3gd20_read(l3gd20_t *l3gd20, float axis[3]);
55+
void l3gd20_read(const l3gd20_t *l3gd20, float axis[3]);
5656

5757
END_DECL

chips/src/l3gd20.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void l3gd20_frequency(l3gd20_t *l3gd20, l3gd20_datarate_t odr, l3gd20_bandwidth_
144144
l3gd20_power(l3gd20, l3gd20->power);
145145
}
146146

147-
void l3gd20_read(l3gd20_t *l3gd20, float data[3]) {
147+
void l3gd20_read(const l3gd20_t *l3gd20, float data[3]) {
148148
pin_t cs = l3gd20->cs;
149149
ssp_t ssp = l3gd20->ssp;
150150

examples/inemom1/gyro/gyro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void gyroTask()
2424
{
2525
while(1)
2626
{
27-
l3gd20_read(gyro, gyrovalues);
27+
l3gd20_read(&gyro, gyrovalues);
2828
printf("x:%.2f y:%.2f z:%.2f\n", gyrovalues[0], gyrovalues[1], gyrovalues[2]);
2929

3030
vTaskDelay(10);

examples/stm32f429discovery/gyro/gyro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main() {
3838
float axis[3];
3939
int e = 0, w = 0;
4040
while (1) {
41-
l3gd20_read(l3gd20, axis);
41+
l3gd20_read(&l3gd20, axis);
4242
#ifdef DEBUG_OUTPUT
4343
char output[128];
4444
sprintf(output, "x = %5.2f, y = %5.2f, z = %5.2f\n", axis[0], axis[1], axis[2]);

examples/stm32f429discovery/timerirq/timerirq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ int main() {
1515
gpio_config(pin, pin_dir_write, pull_down);
1616

1717
//Initialize Timer 1, channel 1
18-
timer_port_t timer = { .timer = 1, .channel = 1 };
18+
timer_channel_t timer = { .timer = timer_1, .channel = 1 };
1919

2020
//180000000/(18000 * 10000) = 1Hz
21-
timer_config(timer, 18000, 10000);
21+
timer_config(timer_1, 18000, 10000);
2222

2323
//Call the update callback at each timer update event
2424
timer_irq_init(timer, event_update, update);

examples/stm32f429discovery/timerpwm/timerpwm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ int main() {
77
pin_t pin = make_pin(gpio_port_b, 0);
88

99
//Initialize Timer 3, channel 3
10-
timer_port_t timer = { .timer = 3, .channel = 3 };
10+
timer_channel_t timer = { .timer = timer_3, .channel = 3 };
1111

1212
//180000000/(18000 * 10000) = 1Hz
13-
timer_config(timer, 18000, 10000);
13+
timer_config(timer_3, 18000, 10000);
1414

1515
//Creates a PWM signal on the pin, duty cycle 8/10
1616
timer_pwmchannel_init(timer, pin, 8000);

0 commit comments

Comments
 (0)