Date:2013-03-29 23:19:49 (10 years 11 months ago)
Author:Werner Almesberger
Commit:647f3c0375cd89e34e31d6f2679a56898eeaefa3
Message:atusb/fw/: get rid of some more "int"s

No size change this time.
Files: atusb/fw/board.c (4 diffs)
atusb/fw/board.h (1 diff)
atusb/fw/mac.c (2 diffs)
atusb/fw/mac.h (1 diff)

Change Details

atusb/fw/board.c
11/*
22 * fw/board.c - Board-specific functions (for boot loader and application)
33 *
4 * Written 2011 by Werner Almesberger
5 * Copyright 2011 Werner Almesberger
4 * Written 2011, 2013 by Werner Almesberger
5 * Copyright 2011, 2013 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
1111 */
1212
1313
14#include <stdbool.h>
1415#include <stdint.h>
1516
1617#include <avr/io.h>
...... 
8182}
8283
8384
84void led(int on)
85void led(bool on)
8586{
8687    if (on)
8788        SET(LED);
...... 
111112static void get_sernum(void)
112113{
113114    uint8_t sig;
114    int i;
115    uint8_t i;
115116
116117    for (i = 0; i != 10; i++) {
117118        sig = boot_signature_byte_get(i+0xe);
atusb/fw/board.h
8282uint8_t read_irq(void);
8383void slp_tr(void);
8484
85void led(int on);
85void led(bool on);
8686void panic(void);
8787
8888uint64_t timer_read(void);
atusb/fw/mac.c
2222#include "mac.h"
2323
2424
25int (*mac_irq)(void) = NULL;
25bool (*mac_irq)(void) = NULL;
2626
2727
2828static uint8_t rx_buf[MAX_PSDU+2]; /* PHDR+payload+LQ */
...... 
6464}
6565
6666
67static int handle_irq(void)
67static bool handle_irq(void)
6868{
6969    uint8_t irq;
7070    uint8_t size, i;
atusb/fw/mac.h
1717#include <stdint.h>
1818
1919
20extern int (*mac_irq)(void);
20extern bool (*mac_irq)(void);
2121
2222bool mac_rx(int on);
2323bool mac_tx(uint16_t flags, uint16_t len);

Archive Download the corresponding diff file



interactive