*
* \sa config_kern.h
*/
-#define CONFIG_KERNEL 0
+#define CONFIG_KERN 0
/**
* \name Serial driver parameters
*
* \sa config_kern.h
*/
-#define CONFIG_KERNEL 0
+#define CONFIG_KERN 0
/**
* \name Serial driver parameters
#define CONFIG_ADC_STROBE 0
/// Enable watchdog timer.
-#define CONFIG_WATCHDOG 0
+#define CONFIG_WATCHDOG 0
/// EEPROM type for drv/eeprom.c
#define CONFIG_EEPROM_TYPE EEPROM_24XX256
#define CONFIG_MD2_BLOCK_LEN 16
/// Use standard permutation in MD2 algorithm.
-#define CONFIG_MD2_STD_PERM 0
+#define CONFIG_MD2_STD_PERM 0
/// Define a size, in byte, of entropy pool.
#define CONFIG_SIZE_ENTROPY_POOL 256
#include <io/arm.h>
-#if CONFIG_KERNEL
+#if CONFIG_KERN
#include <cfg/module.h>
#include <kern/proc.h>
#include <kern/signal.h>
ADC_IER = BV(ADC_DRDY);
}
-#endif /* CONFIG_KERNEL */
+#endif /* CONFIG_KERN */
/**
{
ASSERT(!(ADC_SR & ADC_EOC_MASK));
- #if CONFIG_KERNEL
+ #if CONFIG_KERN
adc_process = proc_current();
#endif
// Start convertion
ADC_CR = BV(ADC_START);
- #if CONFIG_KERNEL
+ #if CONFIG_KERN
// Ensure IRQs enabled.
ASSERT(IRQ_ENABLED());
sig_wait(SIG_ADC_COMPLETE);
ADC_MR |= ((ADC_COMPUTED_SHTIME << ADC_SHTIME_SHIFT) & ADC_SHTIME_MASK);
LOG_INFO("shtime[%ld]\n", (ADC_COMPUTED_SHTIME << ADC_SHTIME_SHIFT) & ADC_SHTIME_MASK);
- #if CONFIG_KERNEL
+ #if CONFIG_KERN
//Register and enable irq for adc.
adc_enable_irq();
#endif
#define ADC_AVR_AVCC 1
#define ADC_AVR_INT256 2
-#if CONFIG_KERNEL
+#if CONFIG_KERN
#include <cfg/module.h>
#include <kern/proc.h>
#include <kern/signal.h>
{
sig_signal(adc_process, SIG_ADC_COMPLETE);
}
-#endif /* CONFIG_KERNEL */
+#endif /* CONFIG_KERN */
/**
* Select mux channel \a ch.
// Start convertion
ADCSRA |= BV(ADSC);
- #if CONFIG_KERNEL
+ #if CONFIG_KERN
// Ensure IRQs enabled.
ASSERT(IRQ_ENABLED());
adc_process = proc_current();
/* Disable Auto trigger source: ADC in Free running mode. */
ADCSRB = 0;
-
+
/* Enable ADC, disable autotrigger mode. */
ADCSRA = BV(ADEN);
- #if CONFIG_KERNEL
+ #if CONFIG_KERN
MOD_CHECK(proc);
ADCSRA |= BV(ADIE);
#endif
LOG_INFO("KFILE setup..ok\n");
LOG_INFO("Check if kernel is enable (if enable you should see the assert message.)\n");
- SILENT_ASSERT("bertos/drv/dataflash_test.c:119: Assertion failed: !CONFIG_KERNEL");
- ASSERT(!CONFIG_KERNEL);
+ SILENT_ASSERT("bertos/drv/dataflash_test.c:119: Assertion failed: !CONFIG_KERN");
+ ASSERT(!CONFIG_KERN);
/*
* This test use a kfile_test module,
IRQ_ENABLE;
kdbg_init();
- #if CONFIG_KERNEL
+ #if CONFIG_KERN
proc_init();
#endif
/** Maximum number of layers. */
#define LCD_LAYERS 6
-#if CONFIG_KERNEL
+#if CONFIG_KERN
/** Semaphore to arbitrate access to the display. */
static struct Semaphore lcd_semaphore;
#define LOCK_LCD sem_obtain(&lcd_semaphore)
#define UNLOCK_LCD sem_release(&lcd_semaphore)
-#else /* !CONFIG_KERNEL */
+#else /* !CONFIG_KERN */
#define LOCK_LCD do {} while (0)
#define UNLOCK_LCD do {} while (0)
-#endif /* !CONFIG_KERNEL */
+#endif /* !CONFIG_KERN */
DECLARE_LIST_TYPE(Layer);
layer->addr = addr;
}
-#if CONFIG_KERNEL
+#if CONFIG_KERN
void lcd_lock(void)
{
UNLOCK_LCD;
}
-#endif /* CONFIG_KERNEL */
+#endif /* CONFIG_KERN */
/**
* Sanity check for config parameters required by this module.
*/
#if !defined(CONFIG_KERN) || ((CONFIG_KERN != 0) && CONFIG_KERN != 1)
- #error CONFIG_KERNEL must be set to either 0 or 1 in cfg_kern.h
+ #error CONFIG_KERN must be set to either 0 or 1 in cfg_kern.h
#endif
#if !defined(CONFIG_SER_RXTIMEOUT)
#error CONFIG_SER_TXTIMEOUT missing in cfg_ser.h