1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards: drop cpu_init()

This commit is contained in:
Benjamin Valentin 2021-02-19 19:37:29 +01:00 committed by Benjamin Valentin
parent cb18689712
commit fc88c4c4e5
137 changed files with 0 additions and 331 deletions

View File

@ -21,9 +21,6 @@ void board_init(void)
LED1_OFF;
LED2_OFF;
/* initialize the CPU */
cpu_init();
/* Stop the linker from throwing away the PIC32 config register settings */
dummy();
}

View File

@ -26,7 +26,4 @@ void board_init(void)
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_set(LED0_PIN);
/* initialize the CPU */
cpu_init();
}

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT); /* Red LED */

View File

@ -60,7 +60,4 @@ void board_init(void)
/* initialize the on-board LED */
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
/* initialize the CPU */
cpu_init();
}

View File

@ -27,7 +27,4 @@ void board_init(void)
/* initialize the board's single LED */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_set(LED0_PIN);
/* initialize the CPU */
cpu_init();
}

View File

@ -25,7 +25,5 @@ void led_init(void);
void board_init(void)
{
avr8_stdio_init();
cpu_init();
led_init();
}

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT); /* Orange LED */
gpio_init(LED1_PIN, GPIO_OUT); /* Red LED */

View File

@ -25,7 +25,4 @@ void board_init(void)
{
/* initialize the on-board "Yellow" LED */
gpio_init(LED0_PIN, GPIO_OUT);
/* initialize the CPU */
cpu_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
#if defined(MODULE_SX1276)
/* Enable TCXO */
gpio_init(RADIO_TCXO_VCC_PIN, GPIO_OUT);

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
#ifdef AUTO_INIT_LED0
/* The LED pin is also used for SPI, so we enable it
only if explicitly wanted by the user */

View File

@ -31,9 +31,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LED */
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -91,7 +91,6 @@ static const uart_conf_t uart_config[] = {
*/
/* SERCOM5 does not support DMA at the moment. See Datasheet samr34, Figure 4-2 */
static const spi_conf_t spi_config[] = {
{
.dev = &(SERCOM5->SPI),
.miso_pin = GPIO_PIN(PA, 23),

View File

@ -24,7 +24,6 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the mini's buttons */
gpio_init(BTN0_PIN, BTN0_MODE);
gpio_init(BTN1_PIN, BTN1_MODE);

View File

@ -27,8 +27,6 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
}

View File

@ -25,8 +25,6 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
}

View File

@ -27,8 +27,6 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
}

View File

@ -25,8 +25,6 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
}

View File

@ -30,9 +30,6 @@
*/
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -27,8 +27,6 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
}

View File

@ -25,8 +25,6 @@
*/
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
}

View File

@ -24,8 +24,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the on-board Amber "L" LED @ pin PB27 */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -25,8 +25,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the on-board Amber "L" LED */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -27,8 +27,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the on-board Amber "L" LED on pin PA17 */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -26,7 +26,6 @@ void led_init(void);
void __attribute__((weak)) board_init(void)
{
cpu_init();
#ifdef LED0_ON
led_init();
#endif

View File

@ -31,7 +31,6 @@ void __attribute__((weak)) led_init(void)
void __attribute__((weak)) board_init(void)
{
cpu_init();
#ifdef LED_PORT
led_init();
#endif

View File

@ -27,6 +27,5 @@
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -36,6 +36,4 @@ void board_init(void)
pm_reboot, NULL);
#endif
/* initialize the CPU */
cpu_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs and turn them off */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -44,9 +44,6 @@ static void led_init(void)
void board_init(void)
{
/* initialize the CPU core */
cpu_init();
/* initialize LEDs, skip for riotboot */
if (!IS_ACTIVE(RIOTBOOT)) {
led_init();

View File

@ -193,7 +193,6 @@ void msp430_init_dco(void)
void board_init(void)
{
msp430_cpu_init();
msb_ports_init();
msp430_set_cpu_speed(CLOCK_CORECLOCK);

View File

@ -23,6 +23,4 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
}

View File

@ -27,6 +27,4 @@ void board_init(void)
LED_PORT->DIRSET = (LED_MASK);
LED_PORT->OUTSET = (LED_MASK);
/* initialize the CPU */
cpu_init();
}

View File

@ -34,9 +34,6 @@
void board_common_nucleo_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialization of on-board LEDs
* NOTE: LED0 must be explicitly enabled as it is also used for SPI_DEV(0) */
#ifdef AUTO_INIT_LED0

View File

@ -89,6 +89,4 @@ void board_init(void)
board_nrfantenna_select(BOARD_NRFANTENNA_DEFAULT);
/* initialize the CPU */
cpu_init();
}

View File

@ -29,8 +29,6 @@ void board_init(void)
{
/* initialize the boards LEDs */
led_init();
/* initialize the CPU */
cpu_init();
}

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();

View File

@ -26,6 +26,4 @@ void board_init(void)
/* initialize the on-board LED */
gpio_init(LED0_PIN, GPIO_OUT);
/* initialize the CPU */
cpu_init();
}

View File

@ -57,8 +57,6 @@ mtd_dev_t *mtd0 = (mtd_dev_t *)&weact_nor_dev;
void board_init(void)
{
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
}

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_set(LED0_PIN);

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* initialize the LEDs */
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -26,8 +26,6 @@ void board_init(void)
/* initialize the boards LEDs, this is done for debugging purpose */
leds_init();
/* initialize the CPU */
cpu_init();
}
/**

View File

@ -24,9 +24,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -24,8 +24,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the on-board red LED on pin PA17 */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -26,8 +26,6 @@ void board_init(void)
gpio_init(LED1_PIN, GPIO_OUT);
gpio_clear(LED1_PIN);
/* initialize the CPU */
cpu_init();
}
/** @} */

View File

@ -26,8 +26,6 @@ static inline void leds_init(void);
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
leds_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs and turn them off */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU core */
cpu_init();
/* initialize and turn off the on-board RGB-LED */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_set(LED0_PIN);

View File

@ -28,8 +28,6 @@ void board_init(void)
SIM->SCGC5 |= SIM_SCGC5_PORTA_MASK;
PORTA->PCR[18] &= ~(PORT_PCR_ISF_MASK | PORT_PCR_MUX(0x07));
/* initialize the CPU core */
cpu_init();
/* initialize and turn off the on-board RGB-LED */
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU core */
cpu_init();
/* initialize and turn off the on-board RGB-LED */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_set(LED0_PIN);

View File

@ -28,6 +28,4 @@ void board_init(void)
/* initialize the on-board LED */
gpio_init(LED0_PIN, GPIO_OUT);
/* initialize the CPU */
cpu_init();
}

View File

@ -24,9 +24,6 @@
void board_init(void)
{
/* Initialize CPU and clocks */
cpu_init();
/* Configure GPIOs for LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -24,9 +24,6 @@
void board_init(void)
{
/* Initialize CPU and clocks */
cpu_init();
/* Configure GPIOs for LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -23,6 +23,4 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
}

View File

@ -56,9 +56,6 @@ mtd_dev_t *mtd0 = (mtd_dev_t *)&ikea_tradfri_nor_dev;
void board_init(void)
{
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* initialize the LEDs */
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -23,6 +23,4 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -22,8 +22,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(EN3V3_PIN, GPIO_OUT);
}

View File

@ -28,8 +28,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialization of on-board LEDs */
#ifdef AUTO_INIT_LED0
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -23,6 +23,4 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LED */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -45,8 +45,6 @@ void board_init(void)
{
/* initialize core clocks via CMSIS function */
SystemInit();
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
leds_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the on board buttons */
gpio_init(BTN0_PIN, BTN0_MODE);
gpio_init(BTN1_PIN, BTN1_MODE);

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the micro:bit's buttons */
gpio_init(BTN0_PIN, BTN0_MODE);
gpio_init(BTN1_PIN, BTN1_MODE);

View File

@ -25,9 +25,6 @@ static void gpios_init(void);
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpios_init();
}

View File

@ -113,8 +113,6 @@ void board_init(void)
/* Turn on AVDD for reading voltages */
gpio_set(MULLE_POWER_AVDD);
/* initialize the CPU */
cpu_init();
/* NVRAM requires xtimer for timing */
xtimer_init();

View File

@ -39,6 +39,4 @@ void board_init(void)
gpio_init(BTN2_PIN, BTN2_MODE);
gpio_init(BTN3_PIN, BTN3_MODE);
/* initialize the CPU */
cpu_init();
}

View File

@ -28,6 +28,4 @@ void board_init(void)
gpio_init(LED1_PIN, GPIO_OUT);
gpio_init(LED2_PIN, GPIO_OUT);
/* initialize the CPU */
cpu_init();
}

View File

@ -33,6 +33,4 @@ void board_init(void)
gpio_init(LED2_PIN, GPIO_OUT);
gpio_set(LED2_PIN);
/* initialize the CPU */
cpu_init();
}

View File

@ -33,6 +33,4 @@ void board_init(void)
gpio_init(LED2_PIN, GPIO_OUT);
gpio_set(LED2_PIN);
/* initialize the CPU */
cpu_init();
}

View File

@ -33,6 +33,4 @@ void board_init(void)
gpio_init(LED2_PIN, GPIO_OUT);
gpio_set(LED2_PIN);
/* initialize the CPU */
cpu_init();
}

View File

@ -37,6 +37,4 @@ void board_init(void)
gpio_init(LED3_PIN, GPIO_OUT);
gpio_set(LED3_PIN);
/* initialize the CPU */
cpu_init();
}

View File

@ -29,6 +29,4 @@ void board_init(void)
NRF_GPIO->DIRSET = (LED0_MASK | LED1_MASK | LED2_MASK);
NRF_GPIO->OUTSET = (LED0_MASK | LED1_MASK | LED2_MASK);
/* initialize the CPU */
cpu_init();
}

View File

@ -37,7 +37,4 @@ void board_init(void)
gpio_init(BTN1_PIN, BTN1_MODE);
gpio_init(BTN2_PIN, BTN2_MODE);
gpio_init(BTN3_PIN, BTN3_MODE);
/* initialize the CPU */
cpu_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -21,9 +21,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -24,8 +24,6 @@ void board_init(void)
{
/* initialize the boards LEDs */
leds_init();
/* initialize the CPU */
cpu_init();
/* The boot pin must be set to input otherwise it may lock the bootloader */
gpio_init(BOOT_PIN, GPIO_IN);

View File

@ -24,9 +24,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the board's LED */
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;

View File

@ -24,9 +24,6 @@
void board_init(void)
{
/* initialize the CPU core */
cpu_init();
/* initialize and turn off LEDs */
LED0_OFF;
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -46,6 +46,4 @@ void board_init(void)
RF24_SWITCH_AT86RF215_ON;
#endif
/* initialize the CPU */
cpu_init();
}

View File

@ -29,6 +29,4 @@ void board_init(void)
gpio_init(LED2_PIN, GPIO_OUT);
gpio_init(LED3_PIN, GPIO_OUT);
/* initialize the CPU */
cpu_init();
}

View File

@ -23,9 +23,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);

View File

@ -66,6 +66,4 @@ void board_init(void)
modem_clock_init();
/* initialize the CPU core */
cpu_init();
}

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU core */
cpu_init();
/* initialize and turn off LEDs */
#ifdef LED0_PIN
gpio_init(LED0_PIN, GPIO_OUT);

View File

@ -29,8 +29,6 @@ void board_init(void)
LED3_OFF;
LED4_OFF;
/* initialize the CPU */
cpu_init();
/* Stop the linker from throwing away the PIC32 config register settings */
dummy();

View File

@ -61,9 +61,6 @@ mtd_dev_t *mtd0 = (mtd_dev_t *)&pinetime_nor_dev;
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize pins */
gpio_init(VCC33, GPIO_OUT);
gpio_init(BUTTON0_ENABLE, GPIO_OUT);

View File

@ -25,9 +25,6 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize LED */
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -68,6 +68,4 @@ void board_init(void)
gpio_init(BTN1_PIN, BTN1_MODE);
gpio_init(BTN2_PIN, BTN2_MODE);
/* initialize the CPU */
cpu_init();
}

View File

@ -29,6 +29,4 @@ void board_init(void)
NRF_P1->DIRSET = (LED_MASK_P1);
NRF_P1->OUTSET = (LED_MASK_P1);
/* initialize the CPU */
cpu_init();
}

View File

@ -33,8 +33,6 @@ void board_init(void)
gpio_init(LED1_PIN, GPIO_OUT);
gpio_init(LED2_PIN, GPIO_OUT);
/* initialize the CPU */
cpu_init();
/* initialize the 2.4GHz RF switch */
rf_switch_init();

View File

@ -31,8 +31,6 @@ void board_init(void)
{
/* initialize the boards LEDs */
leds_init();
/* initialize the CPU */
cpu_init();
/* initialize the 2.4GHz RF switch */
rf_switch_init();
}

View File

@ -31,8 +31,6 @@ void board_init(void)
{
/* initialize the boards LEDs */
leds_init();
/* initialize the CPU */
cpu_init();
/* initialize the 2.4GHz RF switch */
rf_switch_init();
}

View File

@ -22,8 +22,5 @@
void board_init(void)
{
/* initialize the CPU */
cpu_init();
gpio_init(LED0_PIN, GPIO_OUT);
}

View File

@ -36,6 +36,4 @@ void board_init(void)
gpio_init(GPIO_PIN(PA, 24), GPIO_IN_PU);
gpio_init(GPIO_PIN(PA, 25), GPIO_IN_PU);
/* initialize the CPU */
cpu_init();
}

View File

@ -30,6 +30,4 @@ void board_init(void)
/* initialize the on-board button */
gpio_init(BTN0_PIN, BTN0_MODE);
/* initialize the CPU */
cpu_init();
}

View File

@ -33,6 +33,4 @@ void board_init(void)
/* initialize the on-board button */
gpio_init(BTN0_PIN, BTN0_MODE);
/* initialize the CPU */
cpu_init();
}

View File

@ -73,6 +73,4 @@ void board_init(void)
/* initialize the on-board button */
gpio_init(BTN0_PIN, BTN0_MODE);
/* initialize the CPU */
cpu_init();
}

View File

@ -31,9 +31,6 @@ void led_init(void);
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
led_init();
}

View File

@ -41,9 +41,6 @@ void board_init(void)
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
/* initialize the CPU */
cpu_init();
/* initialize the on-board antenna switch */
if (IS_USED(MODULE_AT86RF233)) {
gpio_init(RFCTL1_PIN, GPIO_OUT);

View File

@ -42,9 +42,6 @@ void board_antenna_config(uint8_t antenna)
void board_init(void)
{
/* initialize the CPU */
cpu_init();
/* initialize the boards LEDs */
led_init();

Some files were not shown because too many files have changed in this diff Show More